The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Userfield messed up ?? heres the fix
AFter a lot of pruing etc i found that my USER table had 33799 rows but my userfield table ahd 134,786 rows. Now we had deleted 3 years worth of zero posters to get these figures - but what about the bloated userfield db ?
i'm sure VB should have prined this up auto - well if it does it didnt in this case - and i doubt it could do it faster than this script. The script checks that the userid in userfield table exists in user table. If it doesnt it deletes it. After 30 seconds I have 33799 User and 33799 userfield heres the code - maybe of some use to someone ? PHP Code:
|
#2
|
||||
|
||||
hmm, looks good so
(i have deletet out your dbname and password btw) just, a question: are you sure you haven't messed up your admin/user.php normally the entries in userfield are deleted: PHP Code:
|
#3
|
||||
|
||||
You may need to repair your userfield table.
|
#4
|
||||
|
||||
I had the opposite problem. I had missing userfield entries that needed to be added and it was messing up the admin "search for user" form. I would get no results when searching for a member who didn't have a userfield entry. I made a couple small changes to your script and it worked great. Thanks
PHP Code:
make sure to change servername, dbusername, dbpassword, & dbname to your settings. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|