I have the Template Conditionals Installed.
This code is right?
<if $mybb->usergroup['cancp'] != 9>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tbody>
<tr>
<td class="trow2" align="center">
To remove the ads <a href="http://mysite.com/forum/subscribe.php" target="_blank">click here</a>.
<br />
<img src="http://mysite.com/forum/images/MyAds/vf3.png" />
</td>
</tr>
</tbody>
</table>
</if>
Try this:
Only one group:
<if $GLOBALS['mybb']->user['usergroup'] == x then>
Ads code here
</if>
The code above will display the ads only for members in usergroup x.
More than one usergroup:
<if in_array($GLOBALS['mybb']->user['usergroup'], array(a,b,c,d,e,f)) then>
Ads code here
</if>
The code above will display the ads only for members in usergroup a,b,c,d and f.
No, you don't need to put the php tag (<?php ?>).
(2010-01-12, 05:27 PM)RateU Wrote: [ -> ]No, you don't need to put the php tag (<?php ?>).
Thank you. I used the second one.