Ok Matt, I'm asking...
#1
I was beginning to think you had some "issues" being that every time I loaded a page your avatar was different... After a little bit of thought I realize you just have an image randomizer installed...

How are you accomplishing this, if I may ask? Smile
Reply
#2
N1 has a tutorial on it: http://www.n1studios.net/tutorials/php/r...vatar.html

Just good use of PHP Toungue
Reply
#3
I'm so lost.. hahaha..
So basically, you'll create an image called "whatever.png" and upload it.. That filename must then match what is in the htacess file?

Hmm.. that doesn't seem to make sense either.. man. I'm stupid sometimes.
Reply
#4
I would think he would have used shuffle() or array_rand() instead. Their's just so many ways to do things. Toungue
Reply
#5
Try explaining this to a 5 year old for a second.. I don't understand PHPingo.. Toungue

Basically, this is not a feature that could be used by a regular user then?
Reply
#6
(2009-02-24, 04:25 PM)atomicj Wrote: Try explaining this to a 5 year old for a second.. I don't understand PHPingo.. Toungue

Basically, this is not a feature that could be used by a regular user then?

Yes it is. You're simple using PHP to generate a png or whatever image using an image that has been randomly selected from your array.
Reply
#7
This is the one I use:

.php   randomavatar.php (Size: 5.75 KB / Downloads: 934)

Change line 109 to the path of the folder that contains the images you want to use, and that's it. Then when you change your avatar, give the link to this PHP file.

Smile
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#8
You just have an array of images URIs, pick one at random using rand_array and output it as image data.
[Image: MiNT.png]
Reply
#9
(2009-02-24, 05:07 PM)MiNT Wrote: You just have an array of images URIs, pick one at random using rand_array and output it as image data.

I think you mean array_rand Toungue
Reply
#10
(2009-02-24, 05:08 PM)Imad Jomaa Wrote:
(2009-02-24, 05:07 PM)MiNT Wrote: You just have an array of images URIs, pick one at random using rand_array and output it as image data.

I think you mean array_rand Toungue

maybe, its been a while since i did any web programming.
[Image: MiNT.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)