So I have this in a PHP block but its showing not even a block for any membergroup. The idea is it only shows to normal registered members.
The code I put in was in a normal HTML block, but I understand it has to be in a php block now.
Here is what I tried... but nothing yet
PHP Code:
if+(is_member_of(vB::$vbulletin->userinfo,+2))+{
$my_output+=+"<script type="text/javascript"><!--
google_ad_client = "ca-pub-2764312150803413";
/* sideblock */
google_ad_slot = "1598615235";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>";
}+else+{
$my_output+=+"";
}
return+$my_output;
--------------- Added [DATE]1350506546[/DATE] at [TIME]1350506546[/TIME] ---------------
dunno why there are +'s there.. tey are spaces normally
--------------- Added [DATE]1350510449[/DATE] at [TIME]1350510449[/TIME] ---------------
its the speech brackets isnt it... think it messes it up....