Not Solved PHP in Templates and Template Conditionals
Not Solved
I'm trying to debug a if statement that doesn't shows a script (ads) only to 4 groups, to the other groups it should show normally.

I'm using the following:

Quote:<if !in_array($GLOBALS['mybb']->user['usergroup'], array(13,3,6,4)) then>
<script src="http://ads33751.hotwords.com.br/show.jsp?id=33751&cor=005F00"></script>
</if>

I happens that an user i gave the additional group 4 to it is still showing the ads (it has the script). I would like then to show the $GLOBALS['mybb']->user['usergroup'] at the page to be able to debug and see what is going on that my plan doesn't work.

How can I do that? And if someone would have some idea about what am I doing wrong that the script is showing for the group id 4 would be highly appreciated Wink
Reply


Messages In This Thread
RE: PHP in Templates and Template Conditionals - by blogantinom - 2012-12-15, 04:17 AM
RE: Template conditionals - by expat - 2015-01-31, 05:28 AM

Forum Jump:


Users browsing this thread: 93 Guest(s)