The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Advertisements disappear with usergroup
Hello,
In order to make some money for web hosting, I am curious if there is a way to disable advertisements for a usergroup. So say I have a site supporter usergroup, if a user is a member of that group all of the advertisements disappear. Not even sure if this is possible. Thanks Chris |
#2
|
||||
|
||||
It is very possible, just use a template conditional like this one...
HTML Code:
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"></if> |
#3
|
|||
|
|||
So say for the advertisements in the default vbulletin template, would I enter your code, and then my banner coding in say the navbar_below advertisement template?
Then that would make it where it would show up for certain usergroups and not others? Or where do you recommend? Thanks Chris |
#4
|
||||
|
||||
You would use this code to show for the usergroups you want to show it to
HTML Code:
<if condition="is_member_of($vbulletin->userinfo, 1, 2, 3)"> YOUR BANNER CODE </if> HTML Code:
<if condition="!is_member_of($vbulletin->userinfo, 1, 2, 3)"> YOUR BANNER CODE </if> |
#5
|
||||
|
||||
Thanks ..this is very helpful and i was looking for this coding.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|