The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditional in header
ok we have ad code in the header part of our templates, but I want to make a if/then so staff dont get to see ad's... how would one go about doing that.. (shame php is not allowed, I know that)
|
#2
|
||||
|
||||
Quote:
This would hide it for admins (usergroupid = 6) Code:
<if condition="$bbuserinfo[usergroupid] != 6"> //DISPLAY AD TEXT HERE </if> |
#3
|
||||
|
||||
you could make an array in the phpinclude template
$staffgroups = array(6,7,8,9); and then change the if condition to: Code:
<if condition="!in_array($bbuserinfo[usergroupid], $staffgroups)"> //DISPLAY AD TEXT HERE </if> |
#4
|
|||
|
|||
something like this would be easier!
PHP Code:
|
#5
|
||||
|
||||
This is cool, some of my problem users might get a few more popup ads soon
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|