vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=260263

Hide Ads from multiple usergroups
by iHatton
12 Mar 2011 19:42

Hello,

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?

Thanks.

wpeloquin 13 Mar 2011 14:48

you could make a duplicate ad for each usergroup, but depending on how many usergroups you want to do, that could become tedious.

Xtrigit 14 Mar 2011 02:25

Conditionals, my friend, conditionals.

Quote:

<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>

wpeloquin 14 Mar 2011 21:01

1 Attachment(s)
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.


All times are GMT. The time now is 14:09.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.