Quote:
Originally Posted by crazlunatic
Is there any feature to display ads to certain usergroups and not display for others?
|
in the general settings there are
however, in the manual it describes how to set variables and conditions
http://redtyger.co.uk/manual.php?pro...t&version=5.02
PHP Code:
<if condition="in_array($forum, array(2,3))">
Hello
<if condition="in_array($forum, array(2))">
and welcome to my forum
</if>
</if>
Note that each opening <if condition tag must also have a closing </if>tag each. Comparing to the forum ID is not the only condition you can evaluate, you can also make use of other values:
* $bbuserinfo[usergroupid], which is the current user's usergroup.
* Various other subdivisions of $bbuserinfo such as $bbuserinfo[userid], which is the current user's ID.
* $threadinfo[threadid], the current thread ID.
* THIS_SCRIPT, the current definition of THIS_SCRIPT.
There are many many more, but you can evaluate any value of any kind against any other. If a value is not set such as when evaluating $threadinfo[threadid] when outside a thread or when spelling a value incorrectly, it will default to being defined as 0. Lets see some examples.