Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Directory Submission Service   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 10-22-2003, 06:33 PM   #1 (permalink)
Inactive
 
Join Date: 10-13-03
Location: South Africa
Posts: 843
iTrader: 0 / 0%
Latest Blog:
None

Coffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really nice
Send a message via AIM to Coffeee™ Send a message via MSN to Coffeee™ Send a message via Yahoo to Coffeee™
Rotating avatar script

Hey everyone,

Due to a big demand for the script I will post it here. Be ready!

1. Create a new directory in you public_html named something like "avatars".
2. Create a text file called "avatar.txt".
3. Paste the following into avatar.txt:
[code:1:57bd26f20b]<?php
$dh = opendir(".");
while (false !== ($file = readdir($dh)))
{
if (preg_match('/.(jpg|gif|png)$/i', $file) and $file != "avatar.gif")
{
$filelist[] = $file;
}
}

srand((double)microtime()*1000000);
$picnum = rand(0, sizeof($filelist) - 1);

header("Location: " . $filelist[$picnum]);

closedir($dh);
?>[/code:1:57bd26f20b]
4. Create another new text file, this time called ".htaccess". That is the actual file name, not just an extension. In .htaccess, paste the following:
[code:1:57bd26f20b]<FilesMatch avatar.gif>
SetHandler application/x-httpd-php
</FilesMatch>[/code:1:57bd26f20b]
5. Upload avatar.txt and .htaccess to the directory you created.
6. Rename avatar.txt to avatar.gif.
7. Upload images (jpg, gif, png) to your avatars directory.
8. Make sure file permissions for avatar.gif are set to 644 and the avatars folder is set to 755 (not sure if this makes a difference or not).
9. load http://www.yoursite.com/avatars/avatar.gif

PLEASE ONLY ASK SUPPORT IN THIS TOPIC AND NOT VIA PM!

There you got and enjoy!
-Rabid Bird
Coffeee™ is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 10-22-2003, 06:41 PM   #2 (permalink)
Contributing Member
 
Pimpen 2010's Avatar
 
Join Date: 10-13-03
Location: Pffffft
Posts: 8,857
iTrader: 0 / 0%
Latest Blog:
None

Pimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nicePimpen 2010 is just really nice
Send a message via AIM to Pimpen 2010 Send a message via Yahoo to Pimpen 2010
Sweet. I'm prob not gonna use it but its nice, I like it
__________________
Hummer Forums
Trick It Out
Pimpen 2010 is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-22-2003, 06:44 PM   #3 (permalink)
v7n Mentor
 
fishfreek's Avatar
 
Join Date: 10-13-03
Location: Virginia
Posts: 2,021
iTrader: 0 / 0%
Latest Blog:
None

fishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of light
Send a message via ICQ to fishfreek Send a message via AIM to fishfreek Send a message via MSN to fishfreek Send a message via Yahoo to fishfreek
The reason this does not work on this site is because your code seems to assume the avatar files are on the same webserver as the avatar.gif file. Yet here JS does not allow you to link to your avatar from your webspace so you hve to upload it here and that act breaks your code.
fishfreek is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-22-2003, 06:52 PM   #4 (permalink)
Inactive
 
Join Date: 10-13-03
Location: South Africa
Posts: 843
iTrader: 0 / 0%
Latest Blog:
None

Coffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really nice
Send a message via AIM to Coffeee™ Send a message via MSN to Coffeee™ Send a message via Yahoo to Coffeee™
No, there is a place that shows linking isnt there
Coffeee™ is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-22-2003, 06:55 PM   #5 (permalink)
v7n Mentor
 
fishfreek's Avatar
 
Join Date: 10-13-03
Location: Virginia
Posts: 2,021
iTrader: 0 / 0%
Latest Blog:
None

fishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of lightfishfreek is a glorious beacon of light
Send a message via ICQ to fishfreek Send a message via AIM to fishfreek Send a message via MSN to fishfreek Send a message via Yahoo to fishfreek
Nope. You can either upload your avatar from your pc, upload it from a remote server or use one from the gallery.

JS has that feature disabled
fishfreek is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-22-2003, 06:57 PM   #6 (permalink)
Inactive
 
Join Date: 10-13-03
Location: South Africa
Posts: 843
iTrader: 0 / 0%
Latest Blog:
None

Coffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really nice
Send a message via AIM to Coffeee™ Send a message via MSN to Coffeee™ Send a message via Yahoo to Coffeee™
Oh damn, so I can't have a rotating avatar script... or how can I change the location?

Like he has to fetch the avatars out of http://www.wickedpuppy.net/images/avatars
Coffeee™ is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 01:46 PM   #7 (permalink)
Inactive
 
Join Date: 10-12-03
Posts: 356
iTrader: 0 / 0%
Latest Blog:
None

Bubo is a jewel in the roughBubo is a jewel in the roughBubo is a jewel in the roughBubo is a jewel in the roughBubo is a jewel in the roughBubo is a jewel in the rough
Basically, JS has it set so that when you select an avatar you transmit the image file to IMR. IMR uses the copy of the image from it's own cache, not the one on your source site.
Bubo is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 03:14 PM   #8 (permalink)
Inactive
 
Leader of Men's Avatar
 
Join Date: 10-12-03
Location: Minnesota, USA
Posts: 2,207
iTrader: 0 / 0%
Latest Blog:
None

Leader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really niceLeader of Men is just really nice
Send a message via AIM to Leader of Men Send a message via MSN to Leader of Men Send a message via Yahoo to Leader of Men
Why aren't we allowed remote avatars? Wouldn't that save this forum a little space and bandwidth?
Leader of Men is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 07:46 PM   #9 (permalink)
Inactive
 
Join Date: 10-13-03
Location: South Africa
Posts: 843
iTrader: 0 / 0%
Latest Blog:
None

Coffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really nice
Send a message via AIM to Coffeee™ Send a message via MSN to Coffeee™ Send a message via Yahoo to Coffeee™
Yea but it will also give the forum a lot of red x's in a white box
Coffeee™ is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 07:47 PM   #10 (permalink)
Inactive
 
Join Date: 10-13-03
Location: School....
Posts: 842
iTrader: 0 / 0%
Latest Blog:
None

GEWbert is just really niceGEWbert is just really niceGEWbert is just really niceGEWbert is just really niceGEWbert is just really niceGEWbert is just really niceGEWbert is just really niceGEWbert is just really nice
Send a message via AIM to GEWbert
true, but see, that would be funny
GEWbert is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 08:02 PM   #11 (permalink)
JohnScott's Lovechild
 
Join Date: 10-12-03
Posts: 9,994
iTrader: 0 / 0%
Latest Blog:
None

Brian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest order
If John doesn't mind, I can turn remote avatars on.
Brian is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 08:09 PM   #12 (permalink)
Banned
 
gecko's Avatar
 
Join Date: 10-13-03
Posts: 436
iTrader: 0 / 0%
Latest Blog:
None

gecko is a jewel in the roughgecko is a jewel in the roughgecko is a jewel in the roughgecko is a jewel in the roughgecko is a jewel in the roughgecko is a jewel in the rough
Send a message via AIM to gecko
you could turn them off long enough for us to set it, then turn t back off
wed still have our avtars in there
gecko is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 08:27 PM   #13 (permalink)
Inactive
 
Join Date: 10-13-03
Location: South Africa
Posts: 843
iTrader: 0 / 0%
Latest Blog:
None

Coffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really nice
Send a message via AIM to Coffeee™ Send a message via MSN to Coffeee™ Send a message via Yahoo to Coffeee™
Good idea Gecko! Now would be a good time
Coffeee™ is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 08:28 PM   #14 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Peer pressure. Just say no, Brian
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 08:31 PM   #15 (permalink)
Inactive
 
Join Date: 10-13-03
Location: South Africa
Posts: 843
iTrader: 0 / 0%
Latest Blog:
None

Coffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really nice
Send a message via AIM to Coffeee™ Send a message via MSN to Coffeee™ Send a message via Yahoo to Coffeee™


Why not? IT would look nice!

Ps. Sara thought of a character yet?
Coffeee™ is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 08:31 PM   #16 (permalink)
JohnScott's Lovechild
 
Join Date: 10-12-03
Posts: 9,994
iTrader: 0 / 0%
Latest Blog:
None

Brian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest orderBrian is a web professional of the highest order
No, I will not have drug.. err, we'll have to wait for Johns answer
Brian is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-23-2003, 08:36 PM   #17 (permalink)
Inactive
 
Join Date: 10-13-03
Location: South Africa
Posts: 843
iTrader: 0 / 0%
Latest Blog:
None

Coffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really nice
Send a message via AIM to Coffeee™ Send a message via MSN to Coffeee™ Send a message via Yahoo to Coffeee™
w/e
Coffeee™ is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-24-2003, 03:56 AM   #18 (permalink)
Inactive
 
Join Date: 10-13-03
Location: School....
Posts: 842
iTrader: 0 / 0%
Latest Blog:
None

GEWbert is just really niceGEWbert is just really niceGEWbert is just really niceGEWbert is just really niceGEWbert is just really niceGEWbert is just really niceGEWbert is just really niceGEWbert is just really nice
Send a message via AIM to GEWbert
come on JS, where are you
GEWbert is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-24-2003, 04:51 AM   #19 (permalink)
Inactive
 
Join Date: 10-13-03
Location: South Africa
Posts: 843
iTrader: 0 / 0%
Latest Blog:
None

Coffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really niceCoffeee™ is just really nice
Send a message via AIM to Coffeee™ Send a message via MSN to Coffeee™ Send a message via Yahoo to Coffeee™
Everyone will using my script?
Coffeee™ is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotating a .mov jg_v7n Computers & Internet 2 08-06-2007 03:50 AM
Ad Rotating Script jj2005 Coding Forum 1 07-14-2005 01:35 PM
Rotating Text/Quotes Script? amyinomaha Coding Forum 4 07-16-2004 12:06 PM
Rotating ppc ads busy_brain Google Forum 4 07-13-2004 11:28 PM
Rotating avatar Coffeee™ Coding Forum 11 10-22-2003 08:26 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 08:25 PM.
© Copyright 2008 V7 Inc