Hiding 'Who's Online Statistics' From Guests 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.

    Hiding 'Who's Online Statistics' From Guests

    avatar
    Muggers
    New Member


    Posts : 12
    Reputation : 0
    Language : English

    Solved Hiding 'Who's Online Statistics' From Guests

    Post by Muggers December 11th 2010, 12:24 pm

    I would like to hide the Who's online statistics from any guests who arn't registered on the forum. Then I would like for those statistics to show for my registered users. I have seen it possible through a friends forum.
    avatar
    Guest
    Guest


    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Guest December 11th 2010, 3:23 pm

    ACP - General - Statistics - Forum Statistics - Authorizations - Registered Users
    avatar
    Muggers
    New Member


    Posts : 12
    Reputation : 0
    Language : English

    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Muggers December 11th 2010, 3:27 pm

    Unfortunetly Gangster15 that didn't get rid of the 'Who's online'. I logged out so I was a guest to the forum and I could still see it.
    avatar
    Guest
    Guest


    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Guest December 11th 2010, 3:40 pm

    I think it just made it as text not link (:
    Its possible with templates editing (:
    avatar
    Muggers
    New Member


    Posts : 12
    Reputation : 0
    Language : English

    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Muggers December 11th 2010, 3:43 pm

    Sad dammit, I would like to know HOW IT'S DONE D:
    avatar
    Guest
    Guest


    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Guest December 11th 2010, 3:44 pm

    What version you use? and do you want to hide only the link that say who is online? :=)
    avatar
    Muggers
    New Member


    Posts : 12
    Reputation : 0
    Language : English

    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Muggers December 11th 2010, 3:48 pm

    The version I'm currently using is phpBB2, and the forum that can hide the who is online thing at the bottom is the same version. That forum basically hides everything except for 'Register, Login, and Forum' when I click the 'Forum' it takes me directly to the login page so I think it hides the homepage of the forum altogether :S
    avatar
    Guest
    Guest


    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Guest December 11th 2010, 3:50 pm

    Now i'm confused Very Happy
    Do you now want to hide the "Who is online" for guests? (:
    avatar
    Muggers
    New Member


    Posts : 12
    Reputation : 0
    Language : English

    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Muggers December 11th 2010, 3:51 pm

    Yes I want to hide the 'Who's Online' for guests.
    avatar
    Guest
    Guest


    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Guest December 11th 2010, 3:53 pm

    Okay then,
    Goto
    ACP - Display - Templates - General - Index_body:
    Find:
    Code:
    <a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a>

    And replace it with:
    Code:
    <!-- BEGIN switch_user_logged_in --> <a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a><!-- END switch_user_logged_in -->
    Save + Publish :=)
    avatar
    Muggers
    New Member


    Posts : 12
    Reputation : 0
    Language : English

    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Muggers December 11th 2010, 4:00 pm

    Wow, it was a struggle to find it but I did, replaced it EXACTLY with what you said and the 'Who's online' still shows up when logged out.
    avatar
    Guest
    Guest


    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Guest December 11th 2010, 4:04 pm

    Can i see your forum Very Happy i'm getting crazy Very Happy
    avatar
    Muggers
    New Member


    Posts : 12
    Reputation : 0
    Language : English

    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Muggers December 11th 2010, 4:05 pm

    haha no problem. http://americanforces.darkbb.com (it's an RPG one SAD RIGHT)
    avatar
    Guest
    Guest


    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Guest December 11th 2010, 4:09 pm

    The link is now only text, "Who is Online ?" so no one can see who is online Very Happy
    Or you want to hide everything like:
    Our users have posted a total of 16 messages, etc? Very Happy
    avatar
    Muggers
    New Member


    Posts : 12
    Reputation : 0
    Language : English

    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Muggers December 11th 2010, 4:11 pm

    Eh, the WHOLE textbox to be hidden from guests would be nice. But unless this is hassling you I'd rather not drive you crazy!
    avatar
    Guest
    Guest


    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Guest December 11th 2010, 4:16 pm

    Its okay with me now lol Very Happy
    in the same place as i noticed above.
    Find this:
    Code:

    <!-- BEGIN disable_viewonline -->
    <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
       <tr>
          <td class="catHead" colspan="2" height="28">   
          <!-- BEGIN switch_viewonline_link -->
          <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span>
          <!-- END switch_viewonline_link -->
          
          <!-- BEGIN switch_viewonline_nolink -->
          <span class="cattitle">{L_WHO_IS_ONLINE}</span>
          <!-- END switch_viewonline_nolink -->
          </td>
       </tr>
       <tr>
          <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
          <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
          {TOTAL_USERS}<br />
          {NEWEST_USER}</span></td>
       </tr>
       <tr>
          <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
          {RECORD_USERS}<br />
          <br />
          {LOGGED_IN_USER_LIST}</span></td>
       </tr>
       {L_CONNECTED_MEMBERS}
       {L_WHOSBIRTHDAY_TODAY}
       {L_WHOSBIRTHDAY_WEEK}
       <tr>
          <td class="row1"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td>
       </tr>
       <!-- BEGIN switch_chatbox_activate -->
       <tr>
          <td class="row1">
             <span class="gensmall">{TOTAL_CHATTERS_ONLINE} :  {CHATTERS_LIST}<br />
                <!-- BEGIN switch_chatbox_popup -->
                <div id="chatbox_popup"></div>
                <script type="text/javascript">
                //<![CDATA[
                insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
                //]]>
                </script>
                <!-- END switch_chatbox_popup -->
             </span>
          </td>
       </tr>
       <!-- END switch_chatbox_activate -->
    </table>
    <!-- END disable_viewonline -->

    And replace it with:
    Code:

    <!-- BEGIN switch_user_logged_in -->
    <!-- BEGIN disable_viewonline -->
    <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
       <tr>
          <td class="catHead" colspan="2" height="28">   
          <!-- BEGIN switch_viewonline_link -->
          <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span>
          <!-- END switch_viewonline_link -->
          
          <!-- BEGIN switch_viewonline_nolink -->
          <span class="cattitle">{L_WHO_IS_ONLINE}</span>
          <!-- END switch_viewonline_nolink -->
          </td>
       </tr>
       <tr>
          <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
          <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
          {TOTAL_USERS}<br />
          {NEWEST_USER}</span></td>
       </tr>
       <tr>
          <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
          {RECORD_USERS}<br />
          <br />
          {LOGGED_IN_USER_LIST}</span></td>
       </tr>
       {L_CONNECTED_MEMBERS}
       {L_WHOSBIRTHDAY_TODAY}
       {L_WHOSBIRTHDAY_WEEK}
       <tr>
          <td class="row1"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td>
       </tr>
       <!-- BEGIN switch_chatbox_activate -->
       <tr>
          <td class="row1">
             <span class="gensmall">{TOTAL_CHATTERS_ONLINE} :  {CHATTERS_LIST}<br />
                <!-- BEGIN switch_chatbox_popup -->
                <div id="chatbox_popup"></div>
                <script type="text/javascript">
                //<![CDATA[
                insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
                //]]>
                </script>
                <!-- END switch_chatbox_popup -->
             </span>
          </td>
       </tr>
       <!-- END switch_chatbox_activate -->
    </table>
    <!-- END disable_viewonline -->
    <!-- END switch_user_logged_in -->

    Hope it helps (:
    avatar
    Muggers
    New Member


    Posts : 12
    Reputation : 0
    Language : English

    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Muggers December 11th 2010, 4:21 pm

    Very Happy Well, we got what we wanted and it hid it from the guests BUT it also hid it from the registered users and I don't want it to be hidden from the registered users.
    avatar
    Guest
    Guest


    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Guest December 11th 2010, 4:24 pm

    Sorry Very Happy
    try this:

    Code:

    <!-- BEGIN switch_user_logged_in -->
    <table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
      <tr>
          <td class="catHead" colspan="2" height="28"> 
          <!-- BEGIN switch_viewonline_link -->
          <span class="cattitle"><a class="cattitle" href="{U_VIEWONLINE}" rel="nofollow">{L_WHO_IS_ONLINE}</a></span>
          <!-- END switch_viewonline_link -->
         
          <!-- BEGIN switch_viewonline_nolink -->
          <span class="cattitle">{L_WHO_IS_ONLINE}</span>
          <!-- END switch_viewonline_nolink -->
          </td>
      </tr>
      <tr>
          <td class="row1" rowspan="6" align="center" valign="middle"><img src="{L_ONLINE_IMG}" id="i_whosonline" alt="{L_WHO_IS_ONLINE}" /></td>
          <td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
          {TOTAL_USERS}<br />
          {NEWEST_USER}</span></td>
      </tr>
      <tr>
          <td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE}<br />
          {RECORD_USERS}<br />
          <br />
          {LOGGED_IN_USER_LIST}</span></td>
      </tr>
      {L_CONNECTED_MEMBERS}
      {L_WHOSBIRTHDAY_TODAY}
      {L_WHOSBIRTHDAY_WEEK}
      <tr>
          <td class="row1"><span class="gensmall">{LEGEND} : {GROUP_LEGEND}</span></td>
      </tr>
      <!-- BEGIN switch_chatbox_activate -->
      <tr>
          <td class="row1">
            <span class="gensmall">{TOTAL_CHATTERS_ONLINE} :  {CHATTERS_LIST}<br />
                <!-- BEGIN switch_chatbox_popup -->
                <div id="chatbox_popup"></div>
                <script type="text/javascript">
                //<![CDATA[
                insertChatBoxPopup('{disable_viewonline.switch_chatbox_activate.switch_chatbox_popup.U_FRAME_CHATBOX}', '{L_CLICK_TO_JOIN_CHAT}');
                //]]>
                </script>
                <!-- END switch_chatbox_popup -->
            </span>
          </td>
      </tr>
      <!-- END switch_chatbox_activate -->
    </table>
    <!-- END switch_user_logged_in -->
    avatar
    Muggers
    New Member


    Posts : 12
    Reputation : 0
    Language : English

    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Muggers December 11th 2010, 4:33 pm

    OH GOD, HOORAY. Finally Very Happy exactly what I wanted, thank you so much, you're a total legend I love you (L) ( I'm a girl, so hopefully that isn't weird, unless you're a girl too.. then ahh) ANYWAYS. Thank you so much!
    avatar
    Guest
    Guest


    Solved Re: Hiding 'Who's Online Statistics' From Guests

    Post by Guest December 11th 2010, 6:14 pm

    hahah Very Happy glad i could help ;D
    Nope.. I'm a boy Razz
    Well, No Problem

    Solved + locked