Remove 'Currently Active Users'

Discussion in 'vBulletin Discussions' started by BabyDesigner, Sep 4, 2009.

  1. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    How do I remove 'Currently Active Users' so only Admin and Mods can see this.
    Id like to make it so every one can view users active in the past 24 hours, but not 'Currently Active Users' (at the moment every one can see both) but I cant seem to find out how to change the permissions for Currently Active Users.

    I hope that all makes sense?
     
  2. Ryan

    Ryan Regular Member

    Joined:
    May 27, 2009
    Messages:
    522
    Likes Received:
    58
    Mhm... I suppose you would be able to copy the moderator tag...

    Code:
    <if condition="can_moderate()">Whos Online Code Thing Goes Here</if>
    That should work. But I'm not that clever with coding D:
     
  3. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    Oh dear, coding is confusing...
    Where abouts do I do this?
     
  4. Ryan

    Ryan Regular Member

    Joined:
    May 27, 2009
    Messages:
    522
    Likes Received:
    58
    On FORUMHOME find this...

    Code:
    <if condition="$show['loggedinusers']">
    <!-- logged-in users -->
    <tbody>
    <tr>
    <td class="thead" colspan="2">
    <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
    <a href="online.php$session[sessionurl_q]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
    </td>
    </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
    <td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
    <td class="alt1" width="100%">
    <div class="smallfont">
    <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
    <div>$activeusers</div>
    </div>
    </td>
    </tr>
    </tbody>
    <!-- end logged-in users -->
    Wrap the <if condition="can_moderate()"> and </if> around that... Should fix it for how you want it.
     
    2 people like this.
  5. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    Thanks :) Ill let you know how it goes!

    OOH YAY Thank you SOOO much, It worked!
     
  6. Ryan

    Ryan Regular Member

    Joined:
    May 27, 2009
    Messages:
    522
    Likes Received:
    58
    ;D

    Have fun.
     
  7. kneel

    kneel Regular Member

    Joined:
    Jun 25, 2009
    Messages:
    612
    Likes Received:
    16
    ok..can't u just set this in usergroup permissions also? Instead of doing all this coding?

    I think you can just go to guests, members, and whoever else u DoNT want to see and select "see whos online" and turn it off.... im 99% sure u can do this...
     
  8. Ryan

    Ryan Regular Member

    Joined:
    May 27, 2009
    Messages:
    522
    Likes Received:
    58
    Tried that on my board, only stops them from viewing online.php
     
  9. BabyDesigner

    BabyDesigner Adept

    Joined:
    Aug 24, 2009
    Messages:
    246
    Likes Received:
    6
    First Name:
    Meg
    Yep, disabling 'Whos Online' only stops them viewing the Whos Online where it tells who ever is viewing Whos Online what every person who is online is doing on the forums. Which isnt what I wanted.

    Its all good though, Only Mods and Admin can view it now, which is what I wanted, many thanks to Ryan!! I searched EVERYWHERE and couldnt find ANYTHING on it.
     

Share This Page