Hi please help I have this code and it works but it shows when logged in how to make it show only for guests?
<if $mybb->user['uid'] then>
my code goes here
</if>
<if $mybb->user['uid'] <= '1' then>
my code goes here
</if>
(2013-07-02, 03:11 AM)effone Wrote: [ -> ]<if $mybb->user['uid'] <= '1' then>
my code goes here
</if>
Doesn't work can you please incorporate this code $mybb->user['uid'] > 0
I changed 1 to 0 and it works
<if $mybb->user['uid'] <= '0' then>
my code goes here
</if>
I'm sorry,
The code should be:
<if $mybb->user['usergroup'] <= '1' then>
my code goes here
</if>
Also, 1 is the guest group, so, > 0 will not work if you target usergroup.
You may try like this too:
<if $mybb->user['uid'] == '' then>
my code goes here
</if>
Or may be (not sure):
<if !$mybb->user['uid'] then>
my code goes here
</if>
Simple enough,
<if !$mybb->user['uid'] then>
my code goes here
</if>