MyBB Community Forums

Full Version: Make header link only show to guests?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys, I want to make my code here:
Quote:<div id="guestwelcome">
<span style="color: #E8B546"><i class="fa fa-asterisk fa-3x pull-left"></i></span> Hey there Guest, it seems that you aren't logged in yet. You are more than welcome to view the board as a guest but we encourage you to take a moment and <a href="http://mediaforums.net/member.php?action=register"><b>register</b></a> an account so you can participate in our community.
</div><br />

To guests only. I have PHP conditionals or whatever it is called installed but I don't know how to code the IF statement.
Thank you.
If you have this plugin: http://mybbhacks.zingaburga.com/showthread.php?tid=260 use:

<if !$mybb->user['uid'] then>
<div id="guestwelcome">
<span style="color: #E8B546"><i class="fa fa-asterisk fa-3x pull-left"></i></span> Hey there Guest, it seems that you aren't logged in yet. You are more than welcome to view the board as a guest but we encourage you to take a moment and <a href="http://mediaforums.net/member.php?action=register"><b>register</b></a> an account so you can participate in our community.
</div><br />
</if>
(2014-06-04, 04:23 AM)Destroy666 Wrote: [ -> ]If you have this plugin: http://mybbhacks.zingaburga.com/showthread.php?tid=260 use:

<if !$mybb->user['uid'] then>
<div id="guestwelcome">
<span style="color: #E8B546"><i class="fa fa-asterisk fa-3x pull-left"></i></span> Hey there Guest, it seems that you aren't logged in yet. You are more than welcome to view the board as a guest but we encourage you to take a moment and <a href="http://mediaforums.net/member.php?action=register"><b>register</b></a> an account so you can participate in our community.
</div><br />
</if>

UID= User Identification right?
I want it to be for guests, suspended, vacation etc. Except for admin, mod, registered etc.
Thank you.

Ah I see.
Thank you Smile