The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Any way to quickly reset an user's info with one SQL command? Like that it restores everything to their default setting.
I need to reset items_user table for specific userid with 1 command to it's default values but don't know how. ![]() Would be something like... PHP Code:
|
#2
|
|||
|
|||
![]()
No idea how to reset a row to default values except the user id? :/
|
#3
|
||||
|
||||
![]()
Couldn't you just use DEFAULT?
|
#4
|
|||
|
|||
![]()
I could write you the sql statement, but I know the itemshop works similar to profilefields so in order to reset all of them I would need to know exactly what your sql structure for that table is. If you do a backup for the items_user table to get its structure I will gladly write you the sql.
Cheers, g-force2k2 |
#5
|
|||
|
|||
![]()
Ok here it is for the current data.
|
#6
|
|||
|
|||
![]()
DarkSavior try this code:
PHP Code:
|
#7
|
|||
|
|||
![]()
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\www\forums\member.php on line 1245
Getting that one... Line 1245 is the first line of that code. I just added it after the partial reset add-on. |
#8
|
|||
|
|||
![]()
Try making $bbuserinfo['userid'] just $bbuserinfo[userid]
Regards, g-force2k2 |
#9
|
|||
|
|||
![]()
Ok that one worked. Thanks, gotta add it to reset the Icon too though, but I think I can manage it with this now.
![]() Thanks again g-force2k2! |
#10
|
|||
|
|||
![]() Quote:
Cheers, g-force2k2 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|