Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Top Posters per Forum (shown in forumdisplay) Details »»
Top Posters per Forum (shown in forumdisplay)
Version: 1.00, by Gary King Gary King is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-31-2003 Last Update: Never Installs: 21
 
No support by the author.

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!

Modifications

Change Log

version 1.1
  • enables you to specify how many top posters you want to have displayed per forum
  • adds commas in between usernames in the top posters list

Screenshots
forumdisplay v1.1
forumdisplay v1.0

Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 11-14-2003, 10:38 AM
dgtlchlk dgtlchlk is offline
 
Join Date: Nov 2003
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've installed this hack, and got no errors back but it only displays this "This forum's top posters are:", no number of top posters or the top posters. Any clues as to why?
Reply With Quote
  #43  
Old 11-14-2003, 11:12 AM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dgtlchlk
I've installed this hack, and got no errors back but it only displays this "This forum's top posters are:", no number of top posters or the top posters. Any clues as to why?
Are you viewing a forum, and not a category?
Reply With Quote
  #44  
Old 12-03-2003, 10:27 PM
dave777 dave777 is offline
 
Join Date: Jan 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack....

Is there anyway to make it count only the previous 24 hours? (top 10 posters for the day)
Reply With Quote
  #45  
Old 12-05-2003, 07:11 AM
dave777 dave777 is offline
 
Join Date: Jan 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dave777
Great hack....

Is there anyway to make it count only the previous 24 hours? (top 10 posters for the day)
Nevermind, I worked out how to do this myself....

I simply added the following to forumdisplay.php:
$datecut=time()-(86400);

and then added "AND post.dateline>=$datecut" to the "where" line, like so:
WHERE forum.forumid=$forumid AND post.dateline>=$datecut

and it worked like a charm.

I also added this to the topposters template so the usernames were linked to their profiles:
<a href="member.php?s=$session[sessionhash]&amp;action=getinfo&amp;userid=$top[userid]">
(closed with a </a> after $top[username])
Reply With Quote
  #46  
Old 12-06-2003, 01:06 AM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dave777
Nevermind, I worked out how to do this myself....

I simply added the following to forumdisplay.php:
$datecut=time()-(86400);

and then added "AND post.dateline>=$datecut" to the "where" line, like so:
WHERE forum.forumid=$forumid AND post.dateline>=$datecut

and it worked like a charm.

I also added this to the topposters template so the usernames were linked to their profiles:
<a href="member.php?s=$session[sessionhash]&amp;action=getinfo&amp;userid=$top[userid]">
(closed with a </a> after $top[username])
Glad to see some people modifying my hack to their board's liking
Reply With Quote
  #47  
Old 06-06-2004, 03:05 PM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this be available for VB3?
Reply With Quote
  #48  
Old 06-06-2004, 11:44 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lifesourcerec
Will this be available for VB3?
You get what you ask for
https://vborg.vbsupport.ru/showthrea...021#post520021
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05047 seconds
  • Memory Usage 2,272KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete