The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Make something different depending on whether or not the user is logged in

View previous topic View next topic Go down

Solved Make something different depending on whether or not the user is logged in

Post by iamataloss on December 11th 2011, 8:17 am

Is there anyway I can add code for logged in users that doesn't appear when users are logged out and vice versa?


Last edited by iamataloss on December 12th 2011, 1:27 am; edited 1 time in total (Reason for editing : Icon)

iamataloss
New Member

Posts : 17
Reputation : 1
Language : English

Back to top Go down

Solved Re: Make something different depending on whether or not the user is logged in

Post by Guest on December 11th 2011, 8:39 am

Content for members:
Code:
<!-- BEGIN switch_user_logged_in -->
CONTENT
<!-- END switch_user_logged_in -->

Content for guests:
Code:
<!-- BEGIN switch_user_logged_out -->
CONTENT
<!-- END switch_user_logged_out -->

Use this code in templates. Wink

Guest
Guest


Back to top Go down

Solved Re: Make something different depending on whether or not the user is logged in

Post by iamataloss on December 12th 2011, 1:26 am

Gassy wrote:Content for members:
Code:
<!-- BEGIN switch_user_logged_in -->
CONTENT
<!-- END switch_user_logged_in -->

Content for guests:
Code:
<!-- BEGIN switch_user_logged_out -->
CONTENT
<!-- END switch_user_logged_out -->

Use this code in templates. Wink
Perfect! Thank you so much!

iamataloss
New Member

Posts : 17
Reputation : 1
Language : English

Back to top Go down

Solved Re: Make something different depending on whether or not the user is logged in

Post by Sanket on December 12th 2011, 4:55 am

Topic Solved & Locked

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum