Quote:
Originally Posted by digitalpoint
It's using the normal is_member_of() function built into vBulletin which does factor in secondary groups... But I'm not sure how that would cause conflicts... if someone is a member of group A, and then a secondary member of group B, and you wanted to hide ads from group B, you wouldn't want to hide ads from that member?
|
Thanks for the reply ...
I think it's the NOT a member of logic which is exclusive as opposed to an INCLUDE logic that causes our problems.
We only want ads to display for Primary Usergroup ID's 1,2,3,4,6,13:
Currently we use code like this for our ads and it works fine:
Quote:
<vb:if condition="is_member_of($bbuserinfo,1,2,3,4,6,13)" >
<center><script type="text/javascript"><!--
google_ad_client = "pub-99999999999999999"";
/* 728x90, created 1/4/10 */
google_ad_slot = "xxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center>
</vb:if>
|
I even tried to leave our own include condition shown above in the ad HTML and leave your NOT include field blank, but it still showed ads for incorrect groups, so I'm not sure what I'm doing wrong. Shouldn't this latter approach effectively negated your field and used what we put in with the ad code as groups, since your field was blank and we would only show the ad if it met our own "is_member_of($bbuserinfo,1,2,3,4,6,13)" condition?
Thanks for your help ...
Regards,
Badger