The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to Make an Element in My Portal Only Appear Logged in

3 posters

Go down

Solved How to Make an Element in My Portal Only Appear Logged in

Post by FineryWorkshop February 24th 2015, 9:09 pm

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:

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
FineryWorkshop
FineryWorkshop
Forumember

Female Posts : 48
Reputation : 1
Language : English
Location : USA

http://NOTREADY.forumotion.com

Back to top Go down

Solved Re: How to Make an Element in My Portal Only Appear Logged in

Post by _Twisted_Mods_ February 24th 2015, 9:50 pm

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 -->
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: How to Make an Element in My Portal Only Appear Logged in

Post by FineryWorkshop February 24th 2015, 10:39 pm

Yes
FineryWorkshop
FineryWorkshop
Forumember

Female Posts : 48
Reputation : 1
Language : English
Location : USA

http://NOTREADY.forumotion.com

Back to top Go down

Solved Re: How to Make an Element in My Portal Only Appear Logged in

Post by Fierce Star February 24th 2015, 10:51 pm

Are you editing the script of a widget or the template of the portal?
avatar
Fierce Star
Forumember

Male Posts : 110
Reputation : 17
Language : English
Location : United States

http://inactivesite.onlyhelpwithothersnow.com

Back to top Go down

Solved Re: How to Make an Element in My Portal Only Appear Logged in

Post by FineryWorkshop February 24th 2015, 10:52 pm

Fierce Star wrote:Are you editing the script of a widget or the template of the portal?
The script, I can't do it in the template since it's a custom widget
FineryWorkshop
FineryWorkshop
Forumember

Female Posts : 48
Reputation : 1
Language : English
Location : USA

http://NOTREADY.forumotion.com

Back to top Go down

Solved Re: How to Make an Element in My Portal Only Appear Logged in

Post by Fierce Star February 24th 2015, 11:04 pm

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 ( Perms ); then uncheck "guests".
avatar
Fierce Star
Forumember

Male Posts : 110
Reputation : 17
Language : English
Location : United States

http://inactivesite.onlyhelpwithothersnow.com

Back to top Go down

Solved Re: How to Make an Element in My Portal Only Appear Logged in

Post by FineryWorkshop February 24th 2015, 11:54 pm

@Fierce Star Thank you so much Very Happy Solved now. It was originally one big code but I separated it and made one of the parts private. Thank you Smile
FineryWorkshop
FineryWorkshop
Forumember

Female Posts : 48
Reputation : 1
Language : English
Location : USA

http://NOTREADY.forumotion.com

Back to top Go down

Solved Re: How to Make an Element in My Portal Only Appear Logged in

Post by _Twisted_Mods_ February 25th 2015, 1:01 am

Topic solved and archived
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Back to top

- Similar topics

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