Random Avatar

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Random Avatar

Post by d3ad1ysp0rk »

I got my page ( http://www.404-design.net/rpic/img.php ) to display a random image (either 0.jpg or 1.jpg for now, to keep it simple), but i'm not sure how to include it in my avatar, cuz when i link to my page, it never works.. :?
jason
Site Admin
Posts: 1767
Joined: Thu Apr 18, 2002 3:14 pm
Location: Montreal, CA
Contact:

Post by jason »

Just use the code I use, it's pretty simple.

http://www.devnetwork.net/forums/images ... mages.phps

And, when you want to use it on the forums, you simple point the avatar URL to:

http://www.devnetwork.net/forums/images ... hp/sig.jpg

Notice the /sig.jpg

That makes the forums think it's grabbing an image so it let's it in.
Post Reply