vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Top 10 Thread Stats v1.0 (https://vborg.vbsupport.ru/showthread.php?t=44719)

Mathiau 11-22-2002 06:59 AM

^^^^

not to mention winrar has far better compression and speed :)

WInzip is old and out of date now.

Mathiau 11-22-2002 07:17 AM

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 :)

GMeadows 11-25-2002 06:06 AM

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

wolfe 11-27-2002 10:46 PM

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 :D

wolfe 11-27-2002 10:47 PM

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 :D

zahrani 12-12-2002 06:19 PM

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

Kinox 12-13-2002 01:34 AM

add <br>

$thread .= "$rated[title]<br>"; :P

Sebastian 12-17-2002 01:06 AM

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.

lifesourcerec 01-12-2003 11:26 PM

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.

X-Fan 01-13-2003 01:02 AM

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.


All times are GMT. The time now is 06:48 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.01115 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete