![]() |
Top Posters per Forum (shown in forumdisplay)
What does this hack do?
This hack shows the top poster in each forum, in the forumdisplay template (so when viewing the forum, you can see the top poster for that forum). The line that displays the top poster for the forum is in the template, so you can move it anywhere you want it to show up! :) View screenshots for examples! Instructions Open forumdisplay.php and find PHP Code:
PHP Code:
HTML Code:
$navbar HTML Code:
<td><span class="smallfont">This forum's top $topposterno2 posters are: $topposters</span></td> HTML Code:
$and<b><a href="member.php?$session[sessionurl]u=$top[userid]">$top[username]</a></b> with <b>$top[posts]</b> posts$final If you want it to work faster (on large boards especially), then run the following query on your database: [sql] ALTER TABLE post ADD INDEX (username); [/sql] |
Thanks! Now, is there a way to put it in a table (something simple like the "attached thumbnails" box). would make them look more organized.
|
I'm not one for cosmetics; so if someone wants to give some HTML code on where it should go, then be my guest, and please share it as well :) I just provide the functionality :p
|
Installed it without problems :)
|
Nice one Gary ;) Thanks for releasing
|
Removed this hack as it does a number on server load.
|
Quote:
|
I installed it but I removed it because it doesn't look nice for my style..
|
wow thanks... This is such a great hack... Thank you so much!!!!
|
Thanks for the hack, install clicked........ and now is the time to play with some cosmetics here :laugh:
|
All times are GMT. The time now is 03:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|