View Full Version : Restrict ad templates to certain usergroups
Audentio
12-06-2008, 09:33 PM
Hey!
Is there a way I can restrict my ad templates (that display my google ads) so only certain usergroups can/can't see the ads?
Thanks!
Audentio
Lynne
12-07-2008, 02:41 AM
Either put this around the code in the plugin:
if (in_array($vbulletin->userinfo['usergroupid'], array(x.y.z)))
{
stuff only members of group x,y,z can see
}
Or this around the code in the template:
<if condition="is_member_of($bbuserinfo, x, y, z)">
stuff only members of group x,y,z can see
</if>
Audentio
12-08-2008, 02:33 AM
Oh, I thought about the if conditions, but I always thought there was an acp setting. Thanks Lynne!
Lynne
12-08-2008, 03:07 AM
Hmmmm, I have never seen any options with regards to ads in the admin cp. But, to be honest, I've never gone looking for any either. However, if they were there, I'd think I would have at least seen them and then just ignored them, but I don't recall ever seeing them.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.