Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
UKBL ~ Auto Rotating Avatars Details »
UKBL ~ Auto Rotating Avatars
Mod Version: 1.00, by UKBusinessLive (Designer) UKBusinessLive is offline
Developer Last Online: Feb 2012 I like it Show Printable Version Email this Page

vB Version: 3.8.3 Rating: (3 votes - 4.67 average) Installs: 13
Released: 12 Aug 2009 Last Update: Never Downloads: 65
Not Supported Additional Files Re-usable Code Translations Is in Beta Stage  

UKBL ~ Auto Rotating Avatars


Heres a nice hack which will let you, your moderators, and perhaps as a treat for your members, the ability to rotate their avatars on every frefresh.

Imagine having an avatar directory and a nice collection of avatars, which will automatically refresh every time you open a new page or refresh your screen.

You can use this just for yourself, your staff and perhaps offer it as a paid item to your members.

Interested ? Lets get going............

Step 1

First step is to create a .htaccess file,add the following line to it


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

What this does is, it makes the PHP file parse as a graphic file readable by VBulletin, If you just added the rotate.php as a url in your upload avatar box it would simply come back as invaild file.

The Apache Web server provides a feature called .htaccess file, which provides commands to control a Web site. This file is simply a text file containing Apache directives. Those directives apply to the documents in the directory where the file is located, and to all subdirectories under it as well. Other .htaccess files in subdirectories may change or nullify the effects of those in parent directories.

You can use any text editor to create or make changes to .htaccess files. Keep in mind that commands in these files should be placed on one line only, so if your text editor uses word-wrap, make sure it's disabled. Be sure .htaccess file is uploaded in ASCII mode, not BINARY, or it won't work.

Your text editor or operating system may probably not allow to save file as .htaccess. The solution is to save the file as htaccess.txt and upload it to your server. After doing that, you should use your FTP client and rename the file to it's proper name.


Referance: .htaccess file - short tutorial and the most notable and useful htaccess examples. http://www.buildwebsite4u.com/advanc...ess-file.shtml

Ok guys, thats part one done

Now Lets get the coding done..

Step 2

Open Notebook or a similar text editor on your PC and copy the following .PHP code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save the file as rotate.gif. Once thats done, Just make a new directory on your server, called "avatar" and upload all your Avatar graphics to this directory using your FTP package or even Cpanel, whatever your comfortable with.

I have made this for Gif files only, you need to make sure the avatar files are all in gif format, any others will not load, if you want to use a diffent graphics format, you need to edit the .htaccess code as well as changing the gif referance in the php code.

Now we need to upload our rotate.gif file (the one with the php code in) Our graphics and our .htaccess file all to the avatar directory.

Then all we need to do is go to our UserCP and enter our Avatar directory url, pointing to our rotate.gif file, something like this..


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Just add your url to your box shown below.



Remember you also need to keep within the avatar rules of the site, if the rules state 70 x 70 px avatars, it won't work if you upload 80 x 80 or even a larger file file than is permissable.

Thats its, I've no screenshots, but if you would like your site to be listed as a demo site please PM me, First 3 requests only please

As always please click install and i'll support you 100%

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	Rotating Avatars.png
Views:	34
Size:	35.1 KB
ID:	103145  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Forum Home Enhancements UKBL ~ Timed Rotating Ad Banners UKBusinessLive vBulletin 3.7 Template Modifications 7 05 Oct 2012 02:16
Forum Home Enhancements UKBL ~ Timed Rotating Ad Banners UKBusinessLive vBulletin 3.8 Template Modifications 20 17 Apr 2010 16:19
UKBL ~ Timed Rotating Ad Banners UKBusinessLive vBulletin 3.5 Template Modifications 2 14 Aug 2009 03:42
Forum Home Enhancements UKBL ~ Timed Rotating Ad Banners UKBusinessLive vBulletin 3.6 Template Modifications 3 29 Jan 2009 15:47

Comments
  #2  
Old 12 Aug 2009, 19:56
vB Tree vB Tree is offline
 
Join Date: Dec 2008
Real name: Alex
Congratulations on the release of this, and a thumbs up for getting this in 4 versions

Definitely will use this soon.

Thanks for the effort.
Reply With Quote
  #3  
Old 12 Aug 2009, 20:04
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by vB Tree View Post
Congratulations on the release of this, and a thumbs up for getting this in 4 versions

Definitely will use this soon.

Thanks for the effort.
Thanks VB Tree, Its pretty bog standard should work on any version really, Never forget the 3.5 guys

Last edited by UKBusinessLive; 12 Aug 2009 at 20:25.
Reply With Quote
  #4  
Old 13 Aug 2009, 00:30
Manoel Júnior's Avatar
Manoel Júnior Manoel Júnior is offline
 
Join Date: Feb 2009
Real name: Manoel Júnior
Very good .. Congratulations!

But I want something different, I would turn this option only for users who have no avatar.

It would be possible to include this option?
Reply With Quote
  #5  
Old 13 Aug 2009, 00:38
dengbej's Avatar
dengbej dengbej is offline
 
Join Date: Aug 2008
very good.i will try.thanks.
Reply With Quote
  #6  
Old 13 Aug 2009, 00:47
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Originally Posted by Manoel Júnior View Post
Very good .. Congratulations!

But I want something different, I would turn this option only for users who have no avatar.

It would be possible to include this option?
That would be cool
__________________
VB5-- WHO HAS VISITED TODAY(last 24h) PLEASE VOTE HERE
VB5--FIRST POST ON EVERY PAGE PLEASE VOTE HERE
Reply With Quote
  #7  
Old 13 Aug 2009, 06:47
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
The only way i could think of anything like that would be if you used it with that hack that adds an avatar for members that don't have one??

i guess that would be cool
Reply With Quote
  #8  
Old 13 Aug 2009, 06:57
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Real name: Brooks
Originally Posted by Manoel Júnior View Post
Very good .. Congratulations!

But I want something different, I would turn this option only for users who have no avatar.

It would be possible to include this option?
Originally Posted by UKBusinessLive View Post
The only way i could think of anything like that would be if you used it with that hack that adds an avatar for members that don't have one??

i guess that would be cool
Well, I have something else is mind for getting this to work. I might work on this tomorrow if I have time.
Reply With Quote
  #9  
Old 13 Aug 2009, 15:12
Saint_I_Am Saint_I_Am is offline
 
Join Date: Aug 2008
Couple questions

1 - How can we have both gif and jpg images allowable?

2 - Can avatars be uploaded using the "Browse" button?

Thanks
Reply With Quote
  #10  
Old 13 Aug 2009, 15:20
valdet's Avatar
valdet valdet is offline
 
Join Date: Feb 2007
Real name: Valdet
Gerry this is a great hack. I was rotating avatars through a simple plugin on April 1-st last year. Everyone liked it.

But your version is much better and there is still room for more improvement.
Reply With Quote
  #11  
Old 13 Aug 2009, 18:22
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by valdet View Post
Gerry this is a great hack. I was rotating avatars through a simple plugin on April 1-st last year. Everyone liked it.

But your version is much better and there is still room for more improvement.
Hi Val,

Great to see your still about buddy and that fatherhood has not kept you from your friends here

This was just a quick get together, using a .htaccess file so that the PHP file could be read as a gif file.

I have been looking at another way of making this work, but by using it for Signatures, Its slightly different in the code and you don't need an .htaccess file, so i guess you could use either code for the same purpose, i'll list it later and peeps can decide which to go for.

By all means use this code for any improvements, you can do, afterall we're all for helping each other

Hope that lovely Daughter of yours is letting you sleep
Reply With Quote
  #12  
Old 13 Aug 2009, 18:25
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by Saint_I_Am View Post
Couple questions

1 - How can we have both gif and jpg images allowable?

2 - Can avatars be uploaded using the "Browse" button?

Thanks
Hi Buddy,

You can pic and mix your graphics in this one, but the hack i'm uploading tonight which does auto rotating signatures, you'll be able to use that for your avatars, and upload whatever graphics allowed by the site admin

Avatars are held in the "Avatar" directory and the filename which you need to add in your Avatar Url box is the one called rotate.gif - which really is the .php code
Reply With Quote
  #13  
Old 13 Aug 2009, 18:26
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by Redlinemotorsports View Post
Well, I have something else is mind for getting this to work. I might work on this tomorrow if I have time.
Be my guest

I'm all for improvement
Reply With Quote
  #14  
Old 13 Aug 2009, 18:30
4nawadir.com's Avatar
4nawadir.com 4nawadir.com is offline
 
Join Date: May 2009
Real name: Abdallah
Verry nice ,
Thanks , installed
Thank you ...
رمضان مبارك للجميع
__________________
لا اله الا الله محمد رسول الله
Facebook Me!
Université Abdelhamid Ibn Badis Mostaganem
Reply With Quote
  #15  
Old 13 Aug 2009, 18:34
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Real name: Gerry
Originally Posted by 4nawadir.com View Post
Verry nice ,
Thanks , installed
Thank you ...
رمضان مبارك للجميع
Your Welcomed Abdallah,

Wait till you see my Rotating "Clickable" Signature hack here goes http://www.vbulletin.org/forum/showthread.php?t=220807

Have fun

Last edited by UKBusinessLive; 13 Aug 2009 at 19:23.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 13:07.

Layout Options | Width: Wide Color: