Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Top 10 Thread Stats v1.0 Details »»
Top 10 Thread Stats v1.0
Version: 1.00, by wolfe wolfe is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 10-17-2002 Last Update: Never Installs: 136
Supported
 

Top 10 Thread Stats V1.0

Right here you got took me alot of time to figure it out but i have finnaly done it .

I have made this little hack called Top 10 Stats.

Features.

Top 10 Posters.

Displays the Top 10 new members.
Displays there posts.
Displays the Top 10 Posters.
Displays a option to find more/all posts by the user.
Displays there posts.

Top 10 Newest Members.

Displays the Top 10 new members.
Displays there posts.

Top 10 Threads

Displays how many replies the thread has
Displays top 10 newest replies.
Displays the Thread Starters Name.
Displays the Thread Replies Name.
Displays how many views it has.

Displays Most Popular Thread
And how many replies it has

Displays Most Rated Thread.
And how many votes it has.

Thats all for now i will be adding extra stuff in version 2.0

Show Your Support

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

Comments
  #32  
Old 11-22-2002, 06:59 AM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^^^

not to mention winrar has far better compression and speed

WInzip is old and out of date now.
Reply With Quote
  #33  
Old 11-22-2002, 07:17 AM
Mathiau's Avatar
Mathiau Mathiau is offline
 
Join Date: Jan 2002
Location: Costa Rica and toronto
Posts: 227
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OKay Question:


How easy would it to be to add other "top" list?

Lets say i want a "Top News reporter" and such? (possibly in a new table right below the 3 top stats already there.

i was trying to do it myself but just did not seem to come out right.......


P.S - Great job to BOTH guys who did this - the originator and the improved
Reply With Quote
  #34  
Old 11-25-2002, 06:06 AM
GMeadows GMeadows is offline
 
Join Date: Jun 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to stop certain forums frmo being displayed in the "top 10 recent posts" box...i.e. posts to a hidden/moderator area.

Gary
Reply With Quote
  #35  
Old 11-27-2002, 10:46 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tes like in the original one

in index.php find

Code:
$pop = $DB_site->query('SELECT title,threadid,postusername,lastpost,lastposter,views FROM thread ORDER BY lastpost DESC LIMIT 10');
and replace it with

Code:
$pop = $DB_site->query("SELECT replycount,title,threadid,lastpost,postusername,lastposter,views FROM 
thread WHERE forumid<>'XX' AND forumid<>'XX' ORDER BY lastpost DESC LIMIT 10");
replace the XX with the forum id if the forum id is 1 number delete both X's and put the forum id number

and if you have more forums you want to add than whats there

add this

Code:
 AND forumid<>'XX'
after

Code:
AND forumid<>'XX'
hope it helps
Reply With Quote
  #36  
Old 11-27-2002, 10:47 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mathiau
OKay Question:


How easy would it to be to add other "top" list?

Lets say i want a "Top News reporter" and such? (possibly in a new table right below the 3 top stats already there.

i was trying to do it myself but just did not seem to come out right.......


P.S - Great job to BOTH guys who did this - the originator and the improved

will look into it d00d
Reply With Quote
  #37  
Old 12-12-2002, 06:19 PM
zahrani zahrani is offline
 
Join Date: Jan 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wanted to make reated threads 5 instead of 1, so I changed
$rated = $DB_site->query('SELECT title,threadid,votenum FROM thread ORDER BY votenum DESC LIMIT 1');

to be:

$rated = $DB_site->query('SELECT title,threadid,votenum FROM thread ORDER BY votenum DESC LIMIT 5);

but all threads came in one line, not in 5 lines.

for example, I need it to be like this:

thread === user name === number of voting === thread rating



thanks
Reply With Quote
  #38  
Old 12-13-2002, 01:34 AM
Kinox Kinox is offline
 
Join Date: Mar 2002
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

add <br>

$thread .= "$rated[title]<br>"; :P
Reply With Quote
  #39  
Old 12-17-2002, 01:06 AM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like this hack, but i want people to see only threads/forums they have access to... for instance, i have moderators that have access to some forums and not others, while i also have admins that have access to all threads and some lower moderators with access to other forums.. so it would be cool for a user to only see threads/forums under their access level.
Reply With Quote
  #40  
Old 01-12-2003, 11:26 PM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I remove the "Displays how many replies the thread has". I removed $popreplycount from the template, but that only disabled the link. The [0] still shows up.
Reply With Quote
  #41  
Old 01-13-2003, 01:02 AM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone zipped this up yet? Or even easier, posted the install.txt as an attachment?

I've got WinRAR, but get an error when trying to extract the install file.
Reply With Quote
Reply

Thread Tools

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 04:32 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
  • Page Generation 0.06142 seconds
  • Memory Usage 2,303KB
  • Queries Executed 25 (?)
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_code
  • (1)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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