bartek24m
07-30-2008, 03:26 AM
hello i have in my bbcode some java script code (it's adsense)
and i woud like to hide this one agains specified user groups
accually i have this code in my costum bbcode: [test.] [./test]
<table><tr>
<td>{param}<br></td>
<td>
Google adsense ;)
</td>
</tr>
</table>
<br>
when i try to hide the Google adsense by this...
<if condition="in_array($bbuserinfo['usergroupid'], array(6))">
Google Adsense ;)
<else />
other stuff here :)
</if>
or
<if condition="is_member_of($bbuserinfo, 2, 6, 7)">
it does't work
of course it works fine when i add up it in my templates
but i need to hide the javascript in bbcode :(
any ideas how to solve this issue ?
--------------- Added 1217439502 at 1217439502 ---------------
bump
and i woud like to hide this one agains specified user groups
accually i have this code in my costum bbcode: [test.] [./test]
<table><tr>
<td>{param}<br></td>
<td>
Google adsense ;)
</td>
</tr>
</table>
<br>
when i try to hide the Google adsense by this...
<if condition="in_array($bbuserinfo['usergroupid'], array(6))">
Google Adsense ;)
<else />
other stuff here :)
</if>
or
<if condition="is_member_of($bbuserinfo, 2, 6, 7)">
it does't work
of course it works fine when i add up it in my templates
but i need to hide the javascript in bbcode :(
any ideas how to solve this issue ?
--------------- Added 1217439502 at 1217439502 ---------------
bump