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.
The forum of the forums
3 posters

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

    FineryWorkshop
    FineryWorkshop
    Forumember


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

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


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

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


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

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

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

    Yes
    avatar
    Fierce Star
    Forumember


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

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


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

    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
    avatar
    Fierce Star
    Forumember


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

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


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

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


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

    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

      Current date/time is September 22nd 2024, 11:34 pm