PDA

View Full Version : Show CMS Widget and Forum Blog to All But One Usergroup


David Karol
05-01-2012, 02:08 AM
I'm having trouble making an advertisement hidden for a specific user group (user group id=27)

Is there an easier way to do this than the method below? Is there anything obviously wrong?

Here is my code:

<vb:if condition!=is_member_of($bbuserinfo, 27)">
<div align='center'>
<!-- Forum_Listings_Sidebar_VerticalRectangle_TopRight_ 240x400 -->
<div id='div-gpt-ad-xxxxxxxxxxxxx-x' style='width:240px; height:400px;'>
<script type='text/javascript'>
googletag.cmd.push(function() { googletag.display('div-gpt-ad-xxxxxxxxxxxxx-x'); });
</script>
</div>
</div>
</vb:if>