New Avatar Switching Script
Posted: 20 July 2005 08:12 AM     [ Ignore ]  
Board Apprentice
Total Posts:  1095
Joined  2005-07-06

[UPDATE]

Hey everybody, i just remade my older avatar switching script. Here are some new features:

*- Capable of using .gif, .jpg, .bmp, .png
*- Images no longer need to be renamed 1.gif, 2.gif etc.gif…
*- Able to block unauthorized use

You will need a web server with the following:

*- PHP 5
*- EXIF enabled

*- Also, since phpBB does not let u use .php as an extension for image urls, you will need to config .htaccess to have PHP5 parse .gif files as PHP. I have below an example of what you would add to your .htaccess to accomplish this.

AddType x-mapp-php5 .php .php5 .gif

Here is a link to where you can download the script:

__[url=http://www.filipes.com/avatar/avatar.zip]http://www.filipes.com/avatar/avatar.zip
[/url]

To specify allowed hosts, just add them to the following array:

private $AllowedHosts = array(1 => "gearlive");

i.e private $AllowedHosts = array(1 => "gearlive", 2=> "Newhost");

*I use .gif as an example, but you can use any of the other image extensions that phpBB supports if you would like, i.e jpg, png, etc.

Any comments, suggestions appreciated.

Enjoy 😊

Profile
 
Posted: 20 July 2005 08:56 AM   [ # 1 ]     [ Ignore ]   [ # 1 ]  
Board Apprentice
Total Posts:  1619
Joined  2004-09-14

Thanks a lot evilXhwnd. Man, I really have to learn PHP.
Also funny thing happened. I was checking the stats for my website when all of the sudden I realised that there was a referral that I had never seen in my life. Guess what it was? A rat hotlinking my avatar (haven’t really had to put in any hotlink protection but now I will). And this guy had it on a million forums, he was burning up my bandwidth like a motha. So I pulled the old switcheroo . And you don’t want to know what I changed it to :lol:

Profile
 
Posted: 20 July 2005 09:00 AM   [ # 2 ]     [ Ignore ]   [ # 2 ]  
Board Apprentice
Total Posts:  1095
Joined  2005-07-06

[quote author=“ridv3490”]Thanks a lot evilXhwnd. Man, I really have to learn PHP.
Also funny thing happened. I was checking the stats for my website when all of the sudden I realised that there was a referral that I had never seen in my life. Guess what it was? A rat hotlinking my avatar (haven’t really had to put in any hotlink protection but now I will). And this guy had it on a million forums, he was burning up my bandwidth like a motha. So I pulled the old switcheroo . And you don’t want to know what I changed it to :lol:

lol! nice!

Profile
 
Posted: 20 July 2005 09:43 AM   [ # 3 ]     [ Ignore ]   [ # 3 ]  
Board Apprentice
Total Posts:  2345
Joined  2004-12-30

[quote author=“ridv3490”]Thanks a lot evilXhwnd. Man, I really have to learn PHP.
Also funny thing happened. I was checking the stats for my website when all of the sudden I realised that there was a referral that I had never seen in my life. Guess what it was? A rat hotlinking my avatar (haven’t really had to put in any hotlink protection but now I will). And this guy had it on a million forums, he was burning up my bandwidth like a motha. So I pulled the old switcheroo . And you don’t want to know what I changed it to :lol:

what a douche…

i had a guy steal my avatar too and use it as his own…. ON GEAR LIVE
i had to post right after he did to notice it…

Profile
 
Posted: 20 July 2005 10:32 AM   [ # 4 ]     [ Ignore ]   [ # 4 ]  
Board Apprentice
Total Posts:  1687
Joined  2005-02-03

i hate that thing… i usually identify posts by the avatar, and that ruins it :roll:

Profile
 
Posted: 20 July 2005 10:33 AM   [ # 5 ]     [ Ignore ]   [ # 5 ]  
Know It All
Total Posts:  6381
Joined  2004-12-22
[quote author=“benplaut”]i hate that thing… i usually identify posts by the avatar, and that ruins it :roll:

I do it through handles 😊

Profile
 
Posted: 20 July 2005 10:49 AM   [ # 6 ]     [ Ignore ]   [ # 6 ]  
Board Apprentice
Total Posts:  1619
Joined  2004-09-14

[quote author=“illwon”]
what a douche…

i had a guy steal my avatar too and use it as his own…. ON GEAR LIVE
i had to post right after he did to notice it…

You should of pulled the good old switcheroo :lol: . I was laughing so hard when this guy had a weiner for his avatar for a whole day. And what ticked me off even more was that most of my avatars in there are custom made by me from tapings of the show. So not only was he robbing me of bandwidth, he was ripping my work with out asking. Im going to set a .htacess so the next guy that tries to hotlink outside the forums I visit will get a nice weiner instead of the picture he wanted.

Profile
 
Posted: 20 July 2005 10:52 AM   [ # 7 ]     [ Ignore ]   [ # 7 ]  
Board Apprentice
Total Posts:  2345
Joined  2004-12-30

i gave him a picture of the “giant douche” from south park for a while
😛

Profile
 
Posted: 20 July 2005 10:54 AM   [ # 8 ]     [ Ignore ]   [ # 8 ]  
Board Apprentice
Total Posts:  1619
Joined  2004-09-14

[quote author=“illwon”]i gave him a picture of the “giant douche” from south park for a while
😛

:lol:  :lol:  :lol:

Profile
 
Posted: 21 July 2005 07:45 PM   [ # 9 ]     [ Ignore ]   [ # 9 ]  
Board Apprentice
Total Posts:  1619
Joined  2004-09-14

I just found out some sites are hotlinking my av and listing it as their own. One of them got the big weiner. If anyone is intrested in a link to see what I switched the image into pm me or IM me, I’ll give you a link. The guy has about a million hotlinked images in there.

Profile