The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#8
|
||||
|
||||
![]()
To make it remove just that secondary usergroup, try this:
Code:
UPDATE user LEFT JOIN userfield on (user.userid = userfield.userid) SET user.membergroupids = TRIM(BOTH ',' FROM REPLACE(CONCAT(',', user.membergroupids, ','), ',SECONDARYUSERGROUPID,', ',')) WHERE !FIND_IN_SET(userfield.fieldXXXX,'1,2,3') Code:
WHERE !FIND_IN_SET(userfield.fieldXXXX,'1,2,3') Code:
WHERE !FIND_IN_SET(userfield.fieldXXXX,'1,2,3') AND user.userid = USERIDHERE |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|