View Full Version : Permission based control of ad placement
satfix
Sun 25th May '08, 12:49pm
Good morning.
I'd like to add ads to our forum area - but 'blank' them for our paid subscribers. I can do this on our front page, but would like to also do this in the Blog and Forum.
Is there a way this can be accomplished?
Thanks
rich
www.kickrunners.com
Jake Bunce
Mon 26th May '08, 12:47am
You can use conditional code in the templates like this:
<if condition="!is_member_of($bbuserinfo, X)">
BANNER CODE
</if>
Where X is the usergroupid of your paid group. That will make it so the banner code only shows for non-paid members.
satfix
Sat 31st May '08, 10:15am
You can use conditional code in the templates like this:
<if condition="!is_member_of($bbuserinfo, X)">
BANNER CODE
</if>
Where X is the usergroupid of your paid group. That will make it so the banner code only shows for non-paid members.
Thanks, this worked
satfix
Sat 31st May '08, 12:00pm
You can use conditional code in the templates like this:
<if condition="!is_member_of($bbuserinfo, X)">
BANNER CODE
</if>
Where X is the usergroupid of your paid group. That will make it so the banner code only shows for non-paid members.
Also, if I wanted to exclude two groups, how would I list both? I tried - X,Y but that didn't work.
thanks
mikem
Sat 31st May '08, 12:19pm
You can read this. I found this which I have forgotten myself that I was going to use for the vBlog, and remembered where I read the tutorial at which is here:
http://www.vbulletin.org/forum/showthread.php?t=72556&highlight=%24bbuserinfo
To be precise of this Q&A you should read thread:
http://www.vbulletin.org/forum/showpost.php?p=579394&postcount=5 which would be the single post of the current link above and answer to your question. I hope this helps :) You can also see more info and tutorials on this in the vBulletin Documentation area.
Jake Bunce
Mon 2nd Jun '08, 6:56pm
Also, if I wanted to exclude two groups, how would I list both? I tried - X,Y but that didn't work.
thanks
Use this:
<if condition="!is_member_of($bbuserinfo, X, Y, Z)">
BANNER CODE
</if>
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.