Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 12 Mar 2011, 19:42
iHatton iHatton is offline
Join Date: Oct 2008
Hide Ads from multiple usergroups


When adding advertisements, I have the option to only 'show the adverts to users who belong to this group...'

How do I add multiple usergroups to that? For example, I can only show the advertisements to registered users, how do I show them to registered users, users awaiting moderation AND unregistered users? And hide the advertisements for the rest of the groups, such as moderators, administrators and VIP?

New website coming soon!
Reply With Quote
Old 13 Mar 2011, 14:48
wpeloquin wpeloquin is offline
Join Date: May 2006
you could make a duplicate ad for each usergroup, but depending on how many usergroups you want to do, that could become tedious.
Reply With Quote
Old 14 Mar 2011, 02:25
Xtrigit's Avatar
Xtrigit Xtrigit is offline
Join Date: Jan 2010
Conditionals, my friend, conditionals.

<vb:if condition="is_member_of($bbuserinfo, 1,2,30)">This ad will be shown to usergroups 1(guests), 2(registered users), 30(additional UG)</vb:if>
Have been very sick...
Reply With Quote
Old 14 Mar 2011, 21:01
wpeloquin wpeloquin is offline
Join Date: May 2006
Thumbs up

I believe he is talking about using the built in ad management in the admincp. But yes, that would be another way of doing it! Place it directly into the template location you want using a conditional.
Attached Images
File Type: png managead.png (35.6 KB, 50 views)
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 17:27.

Layout Options | Width: Wide Color: