PDA

View Full Version : Random user and Avatar in block?


gwon
10-04-2004, 09:19 AM
I'm completely lost when it comes to PHP, and I wad wondering if it is possible to display a random username, along with their avatar in a block on vba cmps..

If anyone could help me with this at all, it would be greatly appreciated.

Thanks

Wordplay
10-05-2004, 06:02 PM
i requested this at vbulletin.org once, no luck. hope somebody here is able to come up with a module for it.

Our Sponsors
 

Zachery
10-05-2004, 06:23 PM
Random how? like random as in once a day, once every page load, once every hour?

Once every page load would be insanely, and i mean INSANELy intensive on any medium to large forum due to it would need to scan the member table (at least i think...)

Wordplay
10-07-2004, 07:00 AM
that's right, that would seriously trash your bandwith. too bad...

Our Sponsors
 

restless
05-07-2005, 09:36 PM
i can't believe that this addon hasn't been made yet. you'd think there would be a huge demand for a featured member profile.

once a day would be fine. the avatar/username of a random featured member with a link to their profile is what i've been looking for.

mholtum
05-07-2005, 09:38 PM
How is it different than pulling a random image from a large gallery?

SmashinYoungMan
05-09-2005, 06:20 PM
I have a block that shows a random member image on the homepage on every page view. It's not pulling anything from member info, however. I used a seperate PHP script and asked members who wanted their image to appear to submit a pic they'd like to use.

GrrrlRomeo
05-10-2005, 08:19 PM
I had this when my board was phpBB and it did it every page view. It needn't scan the entire user's table. Users have numbers...it would just need to pick a random number between 1 and the highest user id number you have then fetch the user name an info associated with the number.

absolutepunknet
10-03-2005, 06:18 PM
This would be a great addition.

KW802
10-03-2005, 06:31 PM
How is it different than pulling a random image from a large gallery?Not much. :o

But, in regards to the avatar thing... unless the site is adhering to unique avatars per user I'm not sure what good it would be to display it in the module.