MyBB Hacks

Full Version: Logged in, not logged condition
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I don't know what condition for get user not logged in and user logged in. I want to use them to switch 2 html codes like Forum Promotion - http://forumpromotion.net/ (the homepage)

Please help, thanks in advanced.
To verify that the user is logged in can do so:

PHP Code:
<if $mybb->user['uid'] != 0 then>
	Logged in
<else>
	Not logged in
</if>

Thanks you so much! It's work like a charm Biggrin
(09-29-2012 01:26 AM)NNT_ Wrote: [ -> ]Thanks you so much! It's work like a charm Biggrin

+1. It worked well. Thank you.
Reference URL's