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

Reply
 
Thread Tools
Thread Count Details »»
Thread Count
Version: 1.00, by GeekyDesigns GeekyDesigns is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.0.5 Rating:
Released: 01-15-2005 Last Update: 01-15-2005 Installs: 36
DB Changes
 
No support by the author.

This is a small hack that will add a thread count to the postbit, but it makes it avaible to any varible that gets the whole user table, such as $bbuserinfo and $userinfo.

Included is an update function that will allow you to update the threads counts for any reason.

Shouldn't take more than 5 min to install

It was tested on two dev boards, there shouldn't be any issues.

Thanks to Matt and Chris Padfield

Supporters / CoAuthors

Show Your Support

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

Comments
  #92  
Old 07-18-2005, 01:28 AM
mrpibbny mrpibbny is offline
 
Join Date: Feb 2005
Location: Albany, NY
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have 2,600 threads, that isn't the problem. I wish I was better at this stuff. :ninja:
Reply With Quote
  #93  
Old 10-12-2005, 02:01 AM
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Location: Switzerland
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

also works under 3.5.0 ?
Reply With Quote
  #94  
Old 10-12-2005, 04:02 PM
MajorFm.com MajorFm.com is offline
 
Join Date: Dec 2004
Location: UK
Posts: 402
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Was the ever a fix for this? we cant all be wrong...?
Reply With Quote
  #95  
Old 12-20-2005, 07:44 AM
hotwheels hotwheels is offline
 
Join Date: May 2005
Location: Cheyenne, wy
Posts: 1,380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just installed it tonite on 3.07 and it worked perfectly....

Quote:
Join Date: Jul 2005
hotwheels's Garage
Location: Cheyenne, Wyoming
Last Seen: 1 Minute Ago (04:34 AM)
Posts: 8,079
Threads: 1205
Time spent in forums: 2 Weeks 2 Days 14 hours 16 minutes 44 seconds
Average time: 2 hours 24 minutes 11 seconds
when you guy's are running the update counter, are you going mysite.com/forum/admincp/misc.php?do=threadcount ? I ran it this way and it has you log in, then it does an automatic update. Mine was forums/admincp but it worked.

hotwheels

here is a random member i checked, just to see if it is working:
Quote:
Join Date: Oct 2005
1993SE's Garage
Location: Laramie, Wy
Last Seen: 18 Minutes Ago (04:28 AM)
Posts: 510
Threads: 28
Time spent in forums: 1 Day 23 hours 50 minutes 19 seconds
Average time: 56 minutes 57 seconds
Reply With Quote
  #96  
Old 12-30-2005, 06:18 PM
PIKenPIK PIKenPIK is offline
 
Join Date: Feb 2005
Location: Netherlands
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

same probs here on VB 3.07.
like the others same DB error:
Quote:
Invalid SQL: SELECT userid FROM user ORDER BY userid DESC LIMIT -1000, 1000
mysql error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1000, 1000' at line 1

mysql error number: 1064

Date: Friday 30th of December 2005 08:53:55 PM
Script: http://www.www.xxxxxxxx.xx/forums/ad...ge=1000&page=2
Referer: http://www.xxxxxxxx.xx/forums/adminc...do=threadcount
Username: PIKenPIK
IP Address: XXXXXXXXXXX
First page seems to go well, starting with the 2nd 1.000 threads doesn't work.

Changing in misc.php: $perpage = 1000 into $perpage = 250 gives the same ...

I'm sure it's no memory prob ..... I've done major hacks and 20.000 members on the forum (done lots of maintenance with +1.000 "things" without problems) ...

Can this be fixed?

Really need the hack for further (promotion)plans.

XXX
PnP

//edit: i don't have a table prefix. (so that's not the prob).
Reply With Quote
  #97  
Old 01-02-2006, 11:12 PM
b00k b00k is offline
 
Join Date: Feb 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
d'oh how could i forget that

for now use this

Code:
<div>
						$vbphrase[posts]: $post[posts]
					</div>
add under

Code:
<div>
						$vbphrase[threads]: $post[threads]
					</div>

for those unsure, add this to your postbit_template. Once you do this and run the update it wil start counting NEW THREADS.
Reply With Quote
  #98  
Old 04-02-2006, 06:00 PM
sybakaos sybakaos is offline
 
Join Date: Mar 2006
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those having problems with thread updates (misc.php step) set

$perpage = 1000;

To the number of threads you have. For example, I have a forums with 140k threads. I changed the code to:

$perpage = 140000;

This is -not- a fix for this hack but a way to omit the (possible) faulty code for forums over 1000 threads..

Enjoy!
Reply With Quote
  #99  
Old 06-03-2006, 06:12 PM
mrpibbny mrpibbny is offline
 
Join Date: Feb 2005
Location: Albany, NY
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get the following error when I access the last instruction -

Quote:
Database error in vBulletin 3.0.8:

Invalid SQL: UPDATE user SET threads = 0 WHERE userid = 180
mysql error: Unknown column 'threads' in 'field list'

mysql error number: 1054

Date: Saturday 03rd of June 2006 03:06:41 PM
Script: http://c0h0rt.org/forum/admincp/misc.php?do=threadcount
Referer:
Username: stackzilla
IP Address: 24.195.194.67
Any thoughts as to what I did wrong?
Reply With Quote
  #100  
Old 11-21-2006, 11:20 PM
4Prometheus 4Prometheus is offline
 
Join Date: Oct 2006
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is INSTALL?

Thank you very much for taking the time and trouble to share a working hack.

Happy Holidays!

Peace.
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 12:50 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.07218 seconds
  • Memory Usage 2,300KB
  • 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
  • (2)bbcode_code
  • (5)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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