The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Can someone please tell me how I would go about changing the Usergroupid for the "Banned by Moderators" usergroupid from 9 to 8? Mine is set at nine and it is supposed to be set at 8 for default vbulletin, isn't it?
|
#2
|
|||
|
|||
![]()
[sql]
UPDATE usergroup SET usergroupid = 8 WHERE usergroupid = 9; UPDATE user SET usergroupid = 8 WHERE usergroupid = 9; [/sql] Might cause unpredictable results though, for all I know. |
#3
|
||||
|
||||
![]()
What is the default Banned by Moderators group? I had a usergroup I set up called Banned at usergroup 8 because I never saw the Banned by Moderators group until I test banned someone from the mod cp. It never showed up until then. That was the only reason I made a special banned group. If this is the default one, then I don't need the other one. But since it was usergroup 8, this one seemed to move up to usergroup 9. Can anyone verify or dispel filburt's possibility?
|
#4
|
||||
|
||||
![]()
you have to upgrade the forumpermission table, too.
but it's not needed, the val of the id is irrelevant. here for example it's 9, too. |
#5
|
||||
|
||||
![]()
So I'd probably be better off to just go change the usergroupid for the banned group in the php files where I have coded things for that group instead of changing the actual usergroupid number then?
|
#6
|
||||
|
||||
![]()
yes
![]() i won't make those things hardcoded.... just create a function isbanned() and use this function everywhere instead of $bbuserinfo[usergroupid]==8.. |
#7
|
||||
|
||||
![]()
Ok, how would I go about making that function? That sounds like a better idea, anyway. But there are certain areas where it will not work. Like if you have USERGROUPID NOT IN (5,6,7,9). How would you do it then?
|
#8
|
||||
|
||||
![]()
you're right some problems are still there...
add this to functions.php: PHP Code:
so you can use $bannedusergroupid in your usergroupid NOT IN (5,6,7,$bannedusergroupid) ![]() |
#9
|
||||
|
||||
![]() Quote:
|
#10
|
||||
|
||||
![]()
right and no it doesn't matter
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|