The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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 ' ![]() ![]() If they have been given permission to ![]() 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 ![]() 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 ( ![]() If you want to fix this, look at my guide here: Step A (adds one more condition) which makes it disappear completely (if ![]() 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 | ||
![]() |
|
|