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.

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

View previous topic View next topic Go down

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

Post by FineryWorkshop on 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
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_ on 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_
Helper
Helper

Male Posts : 2032
Reputation : 302
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 on February 24th 2015, 10:39 pm

Yes

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 on February 24th 2015, 10:51 pm

Are you editing the script of a widget or the template of the portal?

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 on 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
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 on 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".

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 on February 24th 2015, 11:54 pm

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

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_ on February 25th 2015, 1:01 am

Topic solved and archived

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.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