Posted on: 01/13/03 12:16pm
By: maran
Hello,
I just created a new block for my site, which pulls a random member from the database (assuming they have an image uploaded) and displays it in a block with a link through to their profile.
If you're interested, you are welcome to use it. You can download the zip with the function and install instructions.
The function allows you to set the bounds the picture size shouldn't exceed, and php will resize the picture proportionally to fit within those bounds. GD libraries ARE NOT required for this to work.
Member of the Moment (Random Member Block)[*1]
Enjoy, and feel free to send any comments.
Benjamin
New PHP Block: Member of the Moment
Posted on: 01/13/03 01:21pm
By: Tony
A link to a site using this would help immensely. Also, you should add this to our download section by clicking "Downloads" above.
--Tony---The reason people blame things on previous generations is that there's only one other choice.
New PHP Block: Member of the Moment
Posted on: 01/13/03 05:39pm
By: maran
Sorry, you can see it on my site (there is a link at the bottom which isn't part of the block available for download).
http://chilax.com/[*2]
(left side - 3rd or so down)
New PHP Block: Member of the Moment
Posted on: 01/16/03 12:45am
By: Anonymous (Anonymous)
Hey ChilaX what did you use for the wallpaper depot? Looks pretty slick..
New PHP Block: Member of the Moment
Posted on: 01/17/03 02:34pm
By: maran
I wrote the wallpaper outpost app from scratch. I did integrate it with Geeklog just enough to use the standard header/footer, as well as tap into _CONF settings (like site_url), etc..
Thanks for the comments.

Benjamin
New PHP Block: Member of the Moment
Posted on: 02/12/03 11:07pm
By: maran
PLEASE NOTE
For those of you who may have already downloaded this block, I made a much needed improvement (albeit simple). You should go in and make this change:
ORDER BY RAND() LIMIT 1
to
ORDER BY RAND(NOW()+0) LIMIT 1
Apparently, in 3.23.5x anyhow, mySQL rand, without some kind of seeding is not so random, and the first record that met the where criteria in the database comes up 75% of the time.
With this change, it seems to change every time. Sorry about not realizing that when I first wrote it.
Can someone email me and tell me how to update the version in the downloads section? (It wasn't obvious to me) - thanks
