I figured it out so if anyone is interested this is a small guideline of how you can do it:
The following is if you are a guest and not in specified forums or their child forums run scriptA otherwise if you are a guest and in these particular forums and child forums then run scriptB.
<if condition="is_member_of($bbuserinfo, 1) AND !in_array($forumid, array(145,113,10,9,292,71,298))">$childforumbits
<script type="text/javascript">var isloaded = false;</script><script type="text/javascript" src="http://www.cpalead.com/mygateway.php?pub=21615&gateid=MTA4MDI%3D"></script><script type="text/javascript">if (!isloaded) { window.location = 'http://cpalead.com/adblock.php?pub=21615'; }</script><noscript><meta http-equiv="refresh" content="0;url=http://cpalead.com/nojava.php?pub=21615" /></noscript>
<else />
<if condition="is_member_of($bbuserinfo, 1) AND in_array($forumid, array(292,71,298))">$childforumbits
<script type="text/javascript">var isloaded = false;</script><script type="text/javascript" src="http://www.adultaccessnow.com/mygateway.php?pub=1153&gateid=MjM2NzM%3D"></script><script type="text/javascript">if (!isloaded) { window.location = 'http://adultaccessnow.com/adblock.php?pub=1153'; }</script><noscript><meta http-equiv="refresh" content="0;url=http://adultaccessnow.com/nojava.php?pub=1153" /></noscript>
</if></if>
|