Close We have just updated BuddyDev for better performance. If you note a glitch, please let us know by using the feedback button on the left.

BuddyDev

Stealth Mode for Buddypress Site Admin Plugin

Jotted by Brajesh Singh in Buddypress, Buddypress Premium Plugins, Buddypress Tricks, Plugins, premium on December 26, 2009
26th Dec

Well, thanks goes to mercime for the idea of this plugin. As he suggested to create something which will allow site admins to anonymously do updates/testing on site without appearing in the recent online members list/ who is online members list.

Checkout the suggestion of mercime here http://buddydev.com/forums/topic/stealth-mode-for-site-admins

So, I came up with this plugin, called BpDev Stealth Mode for Site admins(s)

What It Does

  • It allows Site Admins to control whether they want to appear in the online members/ recently active members list or not.

How It works

  • When A user logs in, If the User is one of the SiteAdmin(In case you have multiple site admin account), The plugin puts the User in Stealth Mode. Here stealth mode is nothing, but simply stops buddypress for recording the last activity time of the user.
  • From the admin bar drop down, the site admin and turn off/on the stealth mode.  The stealth mode will be toggled and the user will be redirected back to the page, where he was earlier.

Download

Download this plugin from here http://buddydev.com/plugins/bp-stealth-mode-for-site-admin/

Installation

1. Download bpdev-stealth-mode-for-siteadmin.zip, if you have not yet downloaded

2. Unzip the plugin

3. Upload bpdev-stealth-mode-for-siteadmin to wp-content/plugins

4. Login as Site Admin and Go to Dashboard->Plugins->Installed

5.  Activate “BpDev Stealth Mode for Site admin” Sitewide

How to Use

When You are logged in as one of the Site Administrator, you will see and extra menu appearing in the admin bar. Here is a screenshot.

Stealth Mode menuBy clicking the option from Drop Down, you can toggle the stealth mode. here is what happens, if you toggle the stealth mode.

sm-off-notification-redirectYou will receive a message, something similar to the above and will be redirected back to the page, where you had tried to toggle the option. You can see from the drop down, that the option is toggled .

Note: Please Note, for every time, a site admin is logged, the stealth mode is always set to On, so you must disable it from the drop down to appear in the who is online widget/ recently active members list.

Special thanks Goes to mercime for the Idea.

Another Alternative, with less features

Ok,  Now for all of you who have yet not joined, buddydev Premium, well, you can use an alternative.

Put this code in bp-custom.php and None of the site admin activity ime will be recorded.So if you are a site admin, you will never appear in the Who is Online/ recently active members widget.


add_action("plugins_loaded","bpdev_init_sm_mode");
function bpdev_init_sm_mode(){
if(is_site_admin())
remove_action("wp_head","bp_core_record_activity");//id SM is on, remove the record activity hook
}

btw, If you have not yet joined buddydev, Please have a look at out premium plugins and I will appreciate you joining the buddydev premium. It costs just $30 for 3 months.

Thanks

Brajesh

Related posts:

  1. Remove Buddypress admin bar from all blog except the main buddypress site
  2. Branded Login Plugin for your Buddypress Powered site
  3. Introducing Global sitewide forums plugin for Buddypress
  4. Playing With buddypress and WordPress, some codes for the site admins
  5. Bp Gallery: The ultimate photo gallery for your buddypress powered site

16 Responses to Stealth Mode for Buddypress Site Admin Plugin

  • Pingback: Buddypress for WPMU » Blog Archive » Stealth Mode for Buddypress Site Admin Plugin | Buddy Dev

  • Pingback: Stealth Mode for Buddypress Site Admin Plugin | Buddy Dev Admin China

  • Very cool! Thank you for the plugin and the props, Brajesh.
    I’ve already uploaded it and it’s working great. Happy Holidays!

  • Just a quick comment: admin bar space is very limited on regular screens (which I have noticed, developers rarely use :) ), so I would take it out of there and just place it in options or so.

    Thinking about this: how about a plugin that offers either private names for the admin bar options or even just symbols like the main admin menu?

    Not saying I can make this, but an idea for all of you that can :)

    • hi Harry
      Thanks for the suggestions. Since this is for siteadmin only plugin, so it is not even visible to the normal users, so not affecting their space. My point was making it quickly available and the admin bar was the best option, since once you activate the stealth mode, it will redirect back to the page where you were already browsing.

      I am a little bit confused by private names, do you mean, a replacement of admin bar with the symbolic menu or something ?

      Thanks
      Brajesh

  • Hi Brajesh,

    Can you update the plugin so that it doesn’t crash the upgrade process of buddypress ?
    thks

    Eric

  • I have installed this but it doesn’t seem to work on the latest versions of WP/BP (3.1 / 1.2.8). Are there any plans to upgrade this plugin so it’s compatible?

  • Hi,

    I just installed the plugin and when i click on “Put ON” I receive a “page not found”.

    Any suggestions?

    Thanks in advance

    • Hi AH,
      when you activated the plugin, did you get the notice that the Stealth Mode component need to be assigned to a page. Please create a page in wordpress and assign it to stealth mode component from BuddyPress->pages screen. after that it will work.

  • dosnt work for me at all

    stealth mode is off no matter what i toggle

  • Your Stealth Mode plugin works great! This is just what I needed to keep my “admin” alias from showing at the top of my Recently Active Members widget each time I logged in to my site.

    I’m running WordPress 3.5.1 with BuddyPress 1.6.4 with the BuddyBoss custom theme.

    This plugin was a great idea, mercime. Very good work, Brajesh Singh. This is great!

  • Hi Brajesh and congrats for all the work you do in buddypress.

    I purchased the plugin, installed it but no luck. I can’t see the stealth mode options.

    I have a MU WordPress installation where one subdomain is buddypress.

Leave a Reply

Your email address will not be published. All the fields marked as * are required.


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>