How to Make an Element in My Portal Only Appear Logged in
3 posters
Page 1 of 1
How to Make an Element in My Portal Only Appear Logged in
Hey! So I'm trying to make it where you can only see part of the code if you're logged into the site, so I used:
But it didn't work, so then I tried it as:
And it still didn't work, so I was wondering what am I messing up?
- Code:
<!-- BEGIN switch_user_logged_in -->
<!-- END switch_user_logged_in -->
But it didn't work, so then I tried it as:
- Code:
<strong><!-- BEGIN switch_user_logged_in --></strong>
<strong><!-- END switch_user_logged_in --></strong>
And it still didn't work, so I was wondering what am I messing up?
Last edited by FineryWorkshop on February 24th 2015, 11:52 pm; edited 1 time in total
Re: How to Make an Element in My Portal Only Appear Logged in
you put the code you dont want them to see between those tags?
- Code:
<!-- BEGIN switch_user_logged_in -->
html not to be seen
<!-- END switch_user_logged_in -->
Re: How to Make an Element in My Portal Only Appear Logged in
Are you editing the script of a widget or the template of the portal?
Re: How to Make an Element in My Portal Only Appear Logged in
The script, I can't do it in the template since it's a custom widgetFierce Star wrote:Are you editing the script of a widget or the template of the portal?
Re: How to Make an Element in My Portal Only Appear Logged in
If it's a custom widget, place it in the portal, press save, then scroll back down to where the widget is on the portal modifications page and press the permission button ( ); then uncheck "guests".
Re: How to Make an Element in My Portal Only Appear Logged in
@Fierce Star Thank you so much Solved now. It was originally one big code but I separated it and made one of the parts private. Thank you
Similar topics
» Make code for guest/logged out users
» How do I make it so that guests must be logged in to view my forum and any of its content?
» How can i make my portal
» How to make ads and forums in portal?
» How to make portal visible only to certain group members?
» How do I make it so that guests must be logged in to view my forum and any of its content?
» How can i make my portal
» How to make ads and forums in portal?
» How to make portal visible only to certain group members?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum