Is there an IF S_GUEST_LOGGED code ?

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Post Reply
gspark
Registered User
Posts: 13
Joined: Fri Mar 02, 2007 2:39 pm

Is there an IF S_GUEST_LOGGED code ?

Post by gspark »

if this statement - IF S_USER_LOGGED_IN - is for users logged in how would we set something up to display text for guests but when a user logs in it goes way

would it be this ? IF S_USER_LOGGED_OUT
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Is there an IF S_GUEST_LOGGED code ?

Post by Highway of Life »

use

Code: Select all

<!-- IF S_USER_LOGGED_IN -->
display info if the person viewing is logged in (or a bot)
<!-- ELSE -->
otherwise, display info if the person is NOT logged in.
<!-- ENDIF -->

<!-- IF not S_USER_LOGGED_IN -->
display info if the person viewing is NOT logged in
<!-- ELSE -->
otherwise, display info if the person is logged in.
<!-- ENDIF -->
of course, you can omit the ELSE section(s).
Image
gspark
Registered User
Posts: 13
Joined: Fri Mar 02, 2007 2:39 pm

Re: Is there an IF S_GUEST_LOGGED code ?

Post by gspark »

that is truly a work of magic he he thanks, now i feel like a pug because i read the forum rules above saying not to ask for support DOH!!
User avatar
Highway of Life
Registered User
Posts: 1399
Joined: Tue Feb 08, 2005 10:18 pm
Location: I'd love to change the World, but they won't give me the Source Code
Contact:

Re: Is there an IF S_GUEST_LOGGED code ?

Post by Highway of Life »

No worries, glad to help... it was simple enough. :D
But there is limited support offered in the 2.0.x / limited 3.0.x support forum here on area51. ;)
Image
Post Reply