Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-20-2003, 03:56 PM
SatMan2028 SatMan2028 is offline
 
Join Date: Jan 2003
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Total members Incorrect and wont update!

About a month ago I deleted 37 inactive users. The total members never changed which was bad enough. Well then the counter stayed at the same number. The last 94 members are not counted. I then backed up the database and restored it from the backup and my counter is counting new members again but does not reflect the 94 members that fell into the "MEMBERS BLACKHOLE" ..LOL

My question is can you manually reset the members counter to a correct total?
Reply With Quote
  #2  
Old 04-20-2003, 06:16 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So you want it to show how many members there are in the database currently? Or you want to show how many members have registered at your forum so far?
Reply With Quote
  #3  
Old 04-20-2003, 08:11 PM
SatMan2028 SatMan2028 is offline
 
Join Date: Jan 2003
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just how many are in the database! I really dont want it to count the inactive members that I deleted but its only 37 that were deleted. I just want to add the 94 that have registered while it was not working.

Hope that helps and sorry for the delay in response.
Reply With Quote
  #4  
Old 04-20-2003, 10:01 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you modified index.php in anyway? Default vbulletin code in index.php does what you want. What version are you running?
Reply With Quote
  #5  
Old 04-20-2003, 11:12 PM
SatMan2028 SatMan2028 is offline
 
Join Date: Jan 2003
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Version 2.2.9

No I have not modified it at all! Everything was fine until I deleted the inactive members. I even verified through phpmyadmin and the user tables are correct but when the $numbersmembers query in index.php does not count those 94 members.

I'm at a loss! Strangest thing ever!
Reply With Quote
  #6  
Old 04-21-2003, 01:47 AM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think the query counts the number of rows...but i'm not sure, so have you verified that that's correct?
Reply With Quote
  #7  
Old 04-21-2003, 01:55 AM
SatMan2028 SatMan2028 is offline
 
Join Date: Jan 2003
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes it does count the number of rows! my php database is whats causing the trouble all along. I just discovered it a few minutes ago. The rows are there but it is not counting them correctly. I have saved the info for the rows in question into a text file. If I can figure out how to add 94 empty rows, I have a script to insert the info into the empty rows. I can add rows one at a time but I know there's an easier way. Maybe you know an easier way! Thanks
Reply With Quote
  #8  
Old 04-21-2003, 02:00 AM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is very odd, what version of MySQL and PHP are you using?

Please post the relevent lines in index.php pertaining to the # of posts on forumhome too.
Reply With Quote
  #9  
Old 04-21-2003, 02:09 AM
SatMan2028 SatMan2028 is offline
 
Join Date: Jan 2003
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

General server information
cPanel Build 6.4.0-RELEASE #15
Operating system Linux
Apache version 1.3.27 (Unix)
PERL version 5.006001
Path to PERL /usr/bin/perl
Installed Perl Modules Click to View
PHP version 4.3.1
MySQL version 4.0.12

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=number_format($numbersmembers['users']);
Reply With Quote
  #10  
Old 04-21-2003, 02:22 AM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, I really don't understand this, I run the same specs as that ( I think I have build 16 of cPanel though) and I don't have the problem. Try uploading repair.php into your admin folder from the extras folder in the vbulletin files. Run the file.

If that doesn't work, try this query instead of the default vB one:

$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users FROM user');
Reply With Quote
Reply

Thread Tools
Display Modes

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 02:18 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.06043 seconds
  • Memory Usage 2,256KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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