Display content if user is not logged in

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Anti-Spam Guide
Locked
najamd
Registered User
Posts: 15
Joined: Sun May 11, 2008 5:29 am
Location: Toronto, Canada
Contact:

Display content if user is not logged in

Post by najamd » Sun Dec 28, 2008 8:49 am

Hey Guys,
I hope all of you are having a great holidays!
I got something im trying do on my PhpBB forum. I'm interested in showing content to guest users, anyone who is logged in should not see this content. Im guessing, i need to add some kind of condition into the style but not sure how it would look like or the format.
Thanks in advance,

ND

User avatar
prototech
Former Team Member
Posts: 5406
Joined: Mon Mar 19, 2007 2:04 pm
Location: Southern California

Re: Display content if user is not logged in

Post by prototech » Sun Dec 28, 2008 9:14 am

Use the following:

Code: Select all

<!-- IF not S_USER_LOGGED_IN -->
content goes here
<!-- ENDIF -->
Need help with MOD/style installations or other phpBB problems? Contact me for a quote.

najamd
Registered User
Posts: 15
Joined: Sun May 11, 2008 5:29 am
Location: Toronto, Canada
Contact:

Re: Display content if user is not logged in

Post by najamd » Sun Dec 28, 2008 9:29 am

Thanks prototech! :)
Ill give this a try..

Locked

Return to “[3.0.x] Styles Support & Discussion”