Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide Admin

Viewing 25 replies - 1 through 25 (of 34 total)
  • I’ve renamed my admin account to get around this. However, i’d like to get a way of hiding the bbpress forum user account for the user listing on the home page. Andy could we get a filter added in for this?

    Avatar of Cyndy Otty
    ceo
    Participant

    @ceo

    Bumping this because I’m curious about the same thing DJPaul mentioned. The need to create a random account for bbPress is fine, but it’s pointless having it listed with the BuddyPress members when it’s not really one.

    Any suggestions?

    Avatar of John James Jacoby
    John James Jacoby
    Keymaster

    @johnjamesjacoby

    There’s something like this in the works, but it won’t be available for a few months yet. :)

    Avatar of johnegg
    johnegg
    Participant

    @johnegg

    Any update on this?

    Avatar of intimez
    intimez
    Participant

    @intimez

    I noticed this topic is marked as resolved. How can I enable this?

    Avatar of Scotm
    Scotm
    Participant

    @scotm

    Still curious about this one. Can we hide the Admin throughout BuddyPress activity sitewide?

    Avatar of Symm2112
    symm2112
    Participant

    @symm2112

    I’m not sure if it hides activity, but I heard a trick to “hiding” admins from the member list was to change their status in the database of the user to “99″ and that prevents it from showing in the member’s list.

    @scotm what are you doing on your BP site with the admin user to generate activity which you don’t want in the activity stream?

    @nuprn1 did you do a plugin to hide the admin account from the members directory, or was that someone else?

    Avatar of Scotm
    Scotm
    Participant

    @scotm

    @DJPaul Any activity that the Admin carries out in my opinion should be hidden. Starting a Group, a forum topic, etc. In my case I am creating a number of groups for members to join and I’d like to hide all of that activity.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    @DJPaul @scotm – I believe @sbrajesh did a plugin to hide admin stuff… let me see if I can find it:

    http://buddydev.com/buddypress/stealth-mode-for-buddypress-site-admin-plugin/

    Avatar of Scotm
    Scotm
    Participant

    @scotm

    Saw that one…premium.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    @scotm – if you read the end of that post, there’s a free solution noted by Brajesh.

    Avatar of Scotm
    Scotm
    Participant

    @scotm

    Tried it, errors.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    The snippet only works on WPMU.

    If you’re using standard WP, replace is_site_admin() with if(current_user_can(‘manage_options’)) (thanks Brajesh).

    Also, you could try adding the function in your theme’s functions.php (omit the add_action line).

    Avatar of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    hi @r-a-y is_site_admin() and is_admin() are very different. is_admin() checks whether you are inside wordpress admin or not.
    @scotm
    How about making the activity of admin user private
    `add_filter(“bp_activity_hide_sitewide_before_save”,”make_admin_activity_private”,10,2);
    function make_admin_activity_private($hide_sitewide,$activity){
    //get the current activity
    if(current_user_can(‘manage_options’))//user is admin
    return 1;
    else
    return $hide_sitewide;

    }
    `
    Hopefully the code goes through this forum.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Hey @sbrajesh, you’re right! Sorry about that! Was thinking off the top ;)

    BP 1.2.3 does provide is_site_admin() in the compat file, FWIW.

    Avatar of Scotm
    Scotm
    Participant

    @scotm

    @sbrajesh I’m going to try that…Thanks

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Yes, you’re right Paul!

    Avatar of Brajesh Singh
    Brajesh Singh
    Participant

    @sbrajesh

    hey @r-a-y :) no prob.
    @scotm looking forward to hear if it works or not.

    Avatar of Scotm
    Scotm
    Participant

    @scotm

    @sbrajesh

    No luck with that code to hide Admin activity. Can you pastebin to make sure I have it clean?

    Avatar of Scotm
    Scotm
    Participant

    @scotm

    Just caught wind of this plugin to hide admin activity: http://wordpress.org/extend/plugins/bp-ninja/

    Avatar of Mark
    Mark
    Participant

    @codeispoetry

    Socialpreneur has a nice snippet here that makes it easy to hide the admin from the members list assuming you know the admin’s login name.

    Place this in your bp-custom.php:


    function my_bp_member_user_login() {
    echo my_bp_get_member_user_login();
    }
    function my_bp_get_member_user_login() {
    global $members_template;
    return apply_filters( 'my_bp_get_member_user_login', $members_template->member->user_login );
    }

    Then in your members-loop.php file, place this just below the while statement (wrapped in php tags!):
    if ( my_bp_get_member_user_login() == 'admin' ) continue ;

    (Supposing your admin’s login is ‘admin’.)

    Avatar of Scotm
    Scotm
    Participant

    @scotm

    Has anyone come up with a clean solution to this one yet? Looking to hide all Admin activity on a BP install.

    Thx

    Avatar of bpinspire
    bpinspire
    Participant

    @bpinspire

    Any new update on this one?

Viewing 25 replies - 1 through 25 (of 34 total)

You must be logged in to reply to this topic.