Forum Replies Created
-
AuthorPosts
-
schwarzaufweissParticipant
Hi 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.schwarzaufweissParticipantHi 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; }
schwarzaufweissParticipantSlavi,
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».
schwarzaufweissParticipantbtw: 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
schwarzaufweissParticipantHello 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!
schwarzaufweissParticipantHi Slava,
Any chance to get an update with that “counter fix”?
Hans
schwarzaufweissParticipantPerfect! :-)
schwarzaufweissParticipantschwarzaufweissParticipantHi Slavi,
The backend told me that there is an update, but automatic update wouldn’t be available. So I tried to download here what’s not allowed for me. Please help.
HansschwarzaufweissParticipantHello Slavi,
did you have the time to implement the new setting?schwarzaufweissParticipantPlease keep it simple. I would prefer the way bbpress is handling the Subscribe button: show New Topic only for logged in users. Thanks.
-
AuthorPosts