PDA

View Full Version : Top 10 posters


Internet
05-24-2005, 05:16 AM
Hello everyone,

How do we show the top 10 or top 20 posters?

Any simple scripts?

Thank you.

Allan
05-24-2005, 05:43 AM
...../forum/memberlist.php?order=DESC&sort=posts&pp=10?

Internet
05-24-2005, 06:50 AM
...../forum/memberlist.php?order=DESC&sort=posts&pp=10?


Link's not working.

Logikos
05-24-2005, 08:29 AM
http://www.YOURSITENAME.com/forum/memberlist.php?order=DESC&sort=posts&pp=10?

Change yoursitename.com to your sites name.

Allan
05-24-2005, 01:48 PM
http://www.YOURSITENAME.com/forum/memberlist.php?order=DESC&sort=posts&pp=10?

Change yoursitename.com to your sites name.

lol ;)

Internet
05-25-2005, 03:04 AM
I need a hack of the top 10 posters to place on the index of website or forum.

Anyone?

Thanks.

Adrian Schneider
05-25-2005, 03:08 AM
Pretty simple to do.. just add something like:

$topposters = $DB_site->query("
SELECT username, userid, posts
FROM user
ORDER BY posts DESC
LIMIT 10
");
$topposter=$DB_site->fetch_array($topposters))
{
eval('$var .= "' . fetch_template('template_name') . '";');
}


Replace $var and template_name with the variable used in FORUMHOME and template_name is your template which repeats for each user found. Customize the HTML in that template however you want it... Key phrases are:
$topposter[userid]
$topposter[username]
$topposter[posts]

oh and the " . TABLE_PREFIX . " was implied.....okay? :) meanies

TCattitude
05-25-2005, 03:34 AM
Or use the new Zero Tolerance's SDK (vbexternal) hack:
https://vborg.vbsupport.ru/showthread.php?threadid=81943
It's easy ;)

Internet
05-27-2005, 04:58 AM
Thanks TCattitude. I think Zero Tolerance requires some files to be uploaded and linked to it. I hope not to do such major changes. Thanks for the link and help. ;)

Thanks TheSpecialist. Your coding is database query. Am not really sure if i am able to get it working. :) Will give it a try.

If there's anyone with codes to share, please feel free to add. Much appreciated. Thank you.