The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Conditionals
What is the code to use on my forum which will make sure 1 usergroup (the paid people) do not see the adverts:
<if usergroup=2> something like the above one but i've forgot it ould anyone give me the correct code please |
#2
|
||||
|
||||
Quote:
To answer your question, the condition should be as following: HTML Code:
<if condition="!is_member_of($bbuserinfo, 2">Your Ads Go Here</if> |
#3
|
|||
|
|||
i get this error:
Code:
The following error occurred when attempting to evaluate the template 'header': Parse error: parse error, unexpected ';' in /usr/home/yates238/public_html/includes/adminfunctions_template.php(3096) : eval()'d code on line 117 This is likely caused by a malformed conditional statement. |
#4
|
||||
|
||||
A correct tag should be
HTML Code:
<if condition="!is_member_of($bbuserinfo, 2)">Your Ads Go Here</if> |
#5
|
|||
|
|||
yes works fine now, thanks for your help.
that shows the adverts for that group (2) and removes them for everyone else. I need the reverse to that one!! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|