<if condition="$show['member']">You're a member! A guest won't see this</if>
<if condition="$show['guest']">You're not yet registered/logged in</if>
Note, you can use ! for (isnot) to; Is the user browser the page not a member? Then the guest will only see the text.
<if condition="!$show['member']">You're not a member, but a guest</if>
You can use in_array for example to match against available usergroups a member is member off:
<if condition="is_member_of($bbuserinfo, 5, 7, 19, 16)">You're seeing this because you're a member of a particular usergroup</if>
Or multiple forums in array to check against:
<if condition="in_array($forumid, array(X,Y,Z))">this only shows for forums x y and z</if>
A common conditional is for banners or ads in a template. This is the
most used one I've run into. Each .php file from vB has a defined value
for THIS_SCRIPT, 99% of the time it is the filename minus the .php
part. So showthread.php is: THIS_SCRIPT == 'showthread'. So you can use
<if condition="THIS_SCRIPT == 'page'">This only appears on PAGE</if>
__________________
öLürüm yoLuna öLürümde yine boyun eğmem, yakarım dünyayı uğruna ama sana eğiLmem.. öyLe sInIrsIz öyLe Derin öyLe Çok Severim ki KORKARSIN!! Kuruyup çöLe dönsemde Pare Pare oLsamda YENiLMEM!!..
|