can you restrict the Who Is online info 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

    can you restrict the Who Is online info

    Flappypaddles
    Flappypaddles
    Forumember


    Posts : 261
    Reputation : 1
    Language : english

    Solved can you restrict the Who Is online info

    Post by Flappypaddles September 30th 2014, 4:23 pm

    to only be seen by members and not guests
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: can you restrict the Who Is online info

    Post by Ange Tuteur September 30th 2014, 5:46 pm

    Hello Flappypaddles,

    From what I recall I don't think there's permissions for this. You could hide it with CSS, and use a small line of JavaScript to show it for members.

    Administration Panel > Display > Templates > General > index_body

    Find :

    Code:
    <!-- BEGIN disable_viewonline -->
     <!-- BEGIN switch_viewonline_link -->
     <div class="h3"><a href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></div>
     <!-- END switch_viewonline_link -->

     <!-- BEGIN switch_viewonline_nolink -->
     <div class="h3">{L_WHO_IS_ONLINE}</div>
     <!-- END switch_viewonline_nolink -->

    <img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" class="img-whois" />
    <p>{TOTAL_USERS_ONLINE}<br />
    {RECORD_USERS}

    <br />
    {LOGGED_IN_USER_LIST}

    {L_ONLINE_USERS}
    {L_CONNECTED_MEMBERS}<br />
    {L_WHOSBIRTHDAY_TODAY}{L_WHOSBIRTHDAY_WEEK}

    <br />
    <em>{LEGEND}&nbsp;:&nbsp;{GROUP_LEGEND}</em>

    </p>
    <div class="clear"></div>

     <!-- BEGIN switch_statistics_link -->
     <div class="h3"><a href="{U_STATISTICS}" rel="nofollow">{L_STATISTICS}</a></div>
     <!-- END switch_statistics_link -->

     <!-- BEGIN switch_statistics_nolink -->
     <div class="h3">{L_STATISTICS}</div>
     <!-- END switch_statistics_nolink -->

    <p class="page-bottom">
    {TOTAL_POSTS}
    </p>
    <p class="page-bottom">
    {TOTAL_USERS}
    </p>
    <p class="page-bottom">
    {NEWEST_USER}
    </p>
     <!-- BEGIN switch_chatbox_activate -->
     <div class="h3"><a href="{S_JOIN_CHAT}" target="ChatBox">{CHATBOX_NAME}</a></div>
     <div class="page-bottom">
     {TOTAL_CHATTERS_ONLINE}&nbsp;:&nbsp;
     {CHATTERS_LIST}<br />
     </div>
     <!-- BEGIN switch_chatbox_popup -->
     <div id="chatbox_popup"></div>
     <script type="text/javascript">
     insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
     </script>
     <!-- END switch_chatbox_popup -->
     <!-- END switch_chatbox_activate -->
    <!-- END disable_viewonline -->

    Replace by :
    Code:
    <!-- BEGIN disable_viewonline -->
    <div id="viewOnline" style="display:none">
     <!-- BEGIN switch_viewonline_link -->
     <div class="h3"><a href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></div>
     <!-- END switch_viewonline_link -->

     <!-- BEGIN switch_viewonline_nolink -->
     <div class="h3">{L_WHO_IS_ONLINE}</div>
     <!-- END switch_viewonline_nolink -->

    <img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" class="img-whois" />
    <p>{TOTAL_USERS_ONLINE}<br />
    {RECORD_USERS}

    <br />
    {LOGGED_IN_USER_LIST}

    {L_ONLINE_USERS}
    {L_CONNECTED_MEMBERS}<br />
    {L_WHOSBIRTHDAY_TODAY}{L_WHOSBIRTHDAY_WEEK}

    <br />
    <em>{LEGEND}&nbsp;:&nbsp;{GROUP_LEGEND}</em>

    </p>
    <div class="clear"></div>

     <!-- BEGIN switch_statistics_link -->
     <div class="h3"><a href="{U_STATISTICS}" rel="nofollow">{L_STATISTICS}</a></div>
     <!-- END switch_statistics_link -->

     <!-- BEGIN switch_statistics_nolink -->
     <div class="h3">{L_STATISTICS}</div>
     <!-- END switch_statistics_nolink -->

    <p class="page-bottom">
    {TOTAL_POSTS}
    </p>
    <p class="page-bottom">
    {TOTAL_USERS}
    </p>
    <p class="page-bottom">
    {NEWEST_USER}
    </p>
     <!-- BEGIN switch_chatbox_activate -->
     <div class="h3"><a href="{S_JOIN_CHAT}" target="ChatBox">{CHATBOX_NAME}</a></div>
     <div class="page-bottom">
     {TOTAL_CHATTERS_ONLINE}&nbsp;:&nbsp;
     {CHATTERS_LIST}<br />
     </div>
     <!-- BEGIN switch_chatbox_popup -->
     <div id="chatbox_popup"></div>
     <script type="text/javascript">
     insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
     </script>
     <!-- END switch_chatbox_popup -->
     <!-- END switch_chatbox_activate -->
    </div>
    <script type="text/javascript">if (document.getElementById('logout')) document.getElementById('viewOnline').style.display = 'block'</script>
    <!-- END disable_viewonline -->

    Save and publish.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51500
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: can you restrict the Who Is online info

    Post by SLGray October 4th 2014, 8:16 pm

    Since this is marked with the solved icon, the topic will be archived.



    can you restrict the Who Is online info Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.