solved Hide {if} Logged in?

mark
mark
@mark-b
10 years ago
41 posts
How do I hide images or text form people who are logged in?
updated by @mark-b: 12/15/14 02:15:34AM
gary.moncrieff
gary.moncrieff
@garymoncrieff
10 years ago
865 posts
{if jrUser_is_logged_in()}
show images/form
{/if}

wrap the elements in your templates with something like that.
mark
mark
@mark-b
10 years ago
41 posts
Thanks for the reply!
This works, but the opposite way...lol The images show for logged in users but hide form users who are not logged in...lol

I want the images to show for people who are NOT logged in and HIDE from people who are.
mark
mark
@mark-b
10 years ago
41 posts
Figure it out! :)

{if jrUser_is_logged_in()== false}
hide images/form
{/if}
douglas
@douglas
10 years ago
2,791 posts
mark:
Figure it out! :)

{if jrUser_is_logged_in()== false}
hide images/form
{/if}

I don't think that is going to work, mainly because the syntax is not right, give this a try instead.

{if !jrUser_is_logged_in()}
hide images/form
{/if}

Hope this helps! :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
mark
mark
@mark-b
10 years ago
41 posts
yeah, it was suppose to say "figured" it out....lol It did the trick.

Tags