The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
UKBL ~ Auto Rotating Avatars Details »» | |||||||||||||||||||||||||||||
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 Code:
<Files rotate.gif> ForceType application/x-httpd-php </Files> 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 PHP Code:
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.. Code:
http://www.myforum/avatars/rotate.gif 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
Screenshots
Show Your Support
|
Comments |
#12
|
|||
|
|||
Quote:
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 |
#13
|
|||
|
|||
Quote:
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 |
#14
|
|||
|
|||
Quote:
I'm all for improvement :up: |
#15
|
||||
|
||||
Verry nice ,
Thanks , installed Thank you ... رمضان مبارك للجميع |
#16
|
|||
|
|||
Quote:
Wait till you see my Rotating "Clickable" Signature hack here goes https://vborg.vbsupport.ru/showthread.php?t=220807 Have fun |
#17
|
|||
|
|||
Quote:
Quote:
We are all waiting for that change. Thank you very much! |
#18
|
|||
|
|||
Is there a limit on how many avatars will rotate?
Sorry I'm a bit confused lol Does this mean a member can add their own avatars to rotate or just the ones provided by me? |
#19
|
||||
|
||||
Need help i did as you told to do but its not works goterror when i submit link in usercp
http://www.mysite.com/avatar/rotate.gif got this message Imageinfo Failed: |
#20
|
||||
|
||||
At last step, when I put the link to rotate.gif following error apears:
"Imageinfo Failed: " what could be wrong? Thanks Edit: Ops, I see the same post above mine, sorry |
#21
|
|||
|
|||
Quote:
Quote:
Likewise- I get the "Imageinfo Failed: " error message as soon as I try to upload the rotate.gif (/php'd file) |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|