The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Execute SQL Query- What is the code to select multiple usergroups/users? [SOLVED]
http://www.vbulletin.com/forum/forum...tions-en-masse
Show Reputation On: UPDATE user SET options=options + 1024 WHERE NOT(options & 1024) AND usergroupid = X; Off: UPDATE user SET options=options - 1024 WHERE options & 1024 AND usergroupid = X; What is the coding so I can select multiple UsergroupIDs/UserIDs? |
#2
|
|||
|
|||
PHP Code:
|
2 благодарности(ей) от: | ||
akz645, Brandon Sheley |
#3
|
|||
|
|||
Yes that was precisely what I was looking for.
Thank you ------------------------------------------------------------------------------------------------------------------------------------------------------ A quick summary/guide for anybody reading: What I'm about to show you below, allows you to change 'Display Reputation' forcefully for any usergroup(s) or user(s) using Execute SQL Query. If they have been given permission to Hide Reputation from Others, then they can change Hide/Show reputation from the UserCP later. This just hides/shows reputation from the postbit. Show Reputation for a single usergroup: On: Code:
UPDATE user SET options=options + 1024 WHERE NOT(options & 1024) AND usergroupid = X; Code:
UPDATE user SET options=options - 1024 WHERE options & 1024 AND usergroupid = X; On: Code:
UPDATE user SET options=options + 1024 WHERE NOT(options & 1024) AND usergroupid IN(X,X,X); Code:
UPDATE user SET options=options - 1024 WHERE options & 1024 AND usergroupid IN(X,X,X); Where X = UsergroupID (can be seen from usergroup manger). If you just want it for multiple users instead of multiple usergroups, then change: Code:
usergroupid Code:
userid X= userid number. ------------------------------------------------------------------------------------------------------------------------------------------------------ Note: This is an issue within vbulletin postbit_legacy coding: If a usergroup doesn't have permission to show/hide reputation from their UserCP, even if you set it as no (manually), their reputation will still display (green bars). If you want to fix this, look at my guide here: Step A (adds one more condition) which makes it disappear completely (if Display Reputation is set to No by the admin) even if they don't have permission to edit from the UserCP. You don't have to check out the rest of the thread. You only need to do Step A. Note 2: http://www.vbulletin.com/forum/forum...tions-en-masse If you want to change other UserCP settings, look at that thread. |
2 благодарности(ей) от: | ||
Brandon Sheley, Lynne |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|