The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
^Recheck my post
|
#12
|
|||
|
|||
OK...I see it. Basically just a cleaner way of doing what I had?
As well, do you know what the correct template to call for the login form is? |
#13
|
||||
|
||||
Yeah, aslo there's an EVEN cleaner away of doing it with vB3 conditionals.
|
#14
|
|||
|
|||
Well, I'm cool with conditionals. I wonder if it work to solve the secondary user group issue...I'll have to try it. What value would I be looking for? Same as in the code I've got now?
|
#15
|
||||
|
||||
Yeah, you'd use in the template:
Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(6,11))"> the main stuff here </if> Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(6,11))"> the main stuff here <else /> everything else </if> |
#16
|
|||
|
|||
OK, cool. I want the else to make them go to the login form though...where can I find that bit of code?
|
#17
|
||||
|
||||
Quote:
|
#18
|
|||
|
|||
OK, so far so good. It works nicely.
I wonder if vB 3.x uses a different variable for secondary user group membership... |
#19
|
|||
|
|||
And the answer to that question is YES!
Secondary user groups: membergroupids |
#20
|
||||
|
||||
Ahh , ok
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|