How to Make an Element in My Portal Only Appear Logged in Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
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 25/2/2015, 03:09

    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 25/2/2015, 05:52; 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_ 25/2/2015, 03:50

    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 25/2/2015, 04:39

    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 25/2/2015, 04:51

    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 25/2/2015, 04:52

    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 25/2/2015, 05:04

    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 25/2/2015, 05:54

    @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_ 25/2/2015, 07:01

    Topic solved and archived