Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Logged in, not logged condition
NNT_ Offline
Junior Member
**
Posts: 18
Joined: Feb 2011
Post: #1
Logged in, not logged condition
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.
(This post was last modified: 09-29-2012 12:09 AM by NNT_.)
09-29-2012 12:08 AM
Find all posts by this user Quote this message in a reply
Steeep Offline
Junior Member
**
Posts: 10
Joined: Aug 2012
Post: #2
RE: Logged in, not logged condition
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>

(This post was last modified: 09-29-2012 12:59 AM by Steeep.)
09-29-2012 12:59 AM
Find all posts by this user Quote this message in a reply
NNT_ Offline
Junior Member
**
Posts: 18
Joined: Feb 2011
Post: #3
RE: Logged in, not logged condition
Thanks you so much! It's work like a charm Biggrin
09-29-2012 01:26 AM
Find all posts by this user Quote this message in a reply
itsmegogo Offline
Junior Member
**
Posts: 8
Joined: Oct 2012
Post: #4
RE: Logged in, not logged condition
(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.
03-25-2013 03:44 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: