Home › Forums › Community Support Forum › WordPress Plugins › Other Plugins › Never Delete Admin
- This topic has 10 replies, 2 voices, and was last updated 10 years, 6 months ago by schwarzaufweiss.
-
AuthorPosts
-
April 17, 2014 at 5:51 pm #1979schwarzaufweissParticipant
I’m using “Never Delete Admin” together with BuddyPress (WP 3.8.3 single and BP 1.9.2). Is it possible for you to correct the counter for the number of Members / Users. ID 1 is now hidden but the counter in the front-end tab of BP still includes that user what is confusing.
Thanks for help, Hans- This topic was modified 10 years, 7 months ago by .
April 17, 2014 at 7:32 pm #1981Slavi MarinovKeymasterHi Hans,
oh, ok. So you’d like the user number to decrease. Make sense and will make the plugin even more stealthier.
Slavi
April 24, 2014 at 7:18 am #1997schwarzaufweissParticipantHi Slava,
Any chance to get an update with that “counter fix”?
Hans
April 24, 2014 at 1:10 pm #1998Slavi MarinovKeymasterHi Hans,
Yes, just pushed a new version.
You should be prompted to update soon.Slavi
April 24, 2014 at 1:11 pm #1999Slavi MarinovKeymasteroh, forgot to that you’ll have to go in the settings and click on the Save button again (without doing any changes).
April 24, 2014 at 1:30 pm #2001schwarzaufweissParticipantHello Slavi,
I have just installed 1.0.1 what is working nicely for WP itself re user count in the backend but not for BuddyPress. In the BP frontend I still have that hidden admin user included in the user (member) count. Can you fix that? Would be absolutely great!
April 24, 2014 at 1:37 pm #2002schwarzaufweissParticipantbtw: I’m using the «stable» version of BuddyPress 1.9.2 and not the just released 2.0 – your plugin is really the last missing part in my project called XTRABOX: http://www.xtrabox.ch
April 24, 2014 at 1:44 pm #2003Slavi MarinovKeymasterHans,
It seems you’re using the plugin in an even more interesting way. Cool.
Can you post the direct link to the members page where that admin shows up?Slavi
April 24, 2014 at 1:55 pm #2004schwarzaufweissParticipantSlavi,
You will see that the admin account with ID 1 is hidden, it’s only the counter in the BP Members tab what still includes that «Superadmin».
May 4, 2014 at 9:06 am #2028schwarzaufweissParticipantHi Slavi,
Put the following code in bp-custom.php to make your plugin BuddyPress 2.x compatible:
add_filter( 'bp_core_get_active_member_count', 'devb_exclude_in_members_count' ); function devb_exclude_in_members_count( $count ){ return $count -1; } add_filter( 'bp_before_has_members_parse_args', 'devb_filter_members_args', 10, 3 ); function devb_filter_members_args( $r ){ //for friends etc if( isset($r['user_id'])) return $r; //otherwise $options = get_option('orbisius_never_delete_admin_options'); $user_login = $options['system_account']; $user = get_user_by( 'login', $user_login ); if( $user ){ $r['exclude'] = array_merge( (array) ($user->ID), (array)$r['exclude']); //print_r($r); } return $r; }
May 6, 2014 at 10:50 am #2032schwarzaufweissParticipantHi Slavi,
I can see…
“<!– Powered by Orbisius Never Delete Admin | URL: http://orbisius.com/products/wordpress-plugins/orbisius-never-delete-admin/?utm_source=orbisius-never-delete-admin&utm_medium=plugin-header&utm_campaign=product –>”
…in the source of my pages. I don’t like something like that in a premium plugin. -
AuthorPosts
- You must be logged in to reply to this topic.