Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'Hide Admin'

Viewing 25 results - 276 through 300 (of 915 total)
  • Author
    Search Results
  • lyndysmart
    Participant

    Hi Everyone,

    Please, I have been trying for a while now to hide all admin accounts on my site from all activities, member directory and the profile. I followed the suggestion on this thread https://buddypress.org/support/topic/hide-admin-from-members-and-activity/ which worked but for one admin(the first admin account on the site), other admin accounts are still accessible. What could be a solution to this please?

    #244817
    danbp
    Participant

    Hi,

    simply remove the delete group button from group admin. Give this a try, only site admin will see the button. Add snippet to bp-custom.php

    function kwahlquist_remove_group_admin_tab() {
    global $bp;
    	if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) {
    		return;
    	}
    	// Add the admin subnav slug you want to hide in the following array
    	// other admin subnav items are: group-settings, group-avatar, group-invites, manage-members
    	$hide_tabs = array(    		
    		'delete-group' => 1
    	);
            // since BP 2.2
    	$slug = bp_get_current_group_slug() . '_manage'; 
    	
    	// Remove the nav item
    	foreach ( array_keys( $hide_tabs ) as $tab ) {
    		bp_core_remove_subnav_item( $slug, $tab );
    	}
    }
    add_action( 'bp_groups_setup_nav', 'kwahlquist_remove_group_admin_tab', 9 );
    #244703
    Eskymo
    Participant

    I just followed the suggestions in this post to remove Admin from the activity stream and the members list. However it’s not a complete solution.

    https://buddypress.org/support/topic/hide-admin-from-members-and-activity/

    Admin gets removed from the main page members list and activity stream, but I use a ‘members’ widget in my sidebar and the admin still shows up in that.

    How do I remove the admin from the sidebar widget as well?

    jackofallvices
    Participant

    1. Which version of WordPress are you running?

    4.3.1

    2. Did you install WordPress as a directory or subdomain install?

    root directory

    3. If a directory install, is it in root or in a subdirectory?

    root

    4. Did you upgrade from a previous version of WordPress? If so, from which version?

    4.3

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.

    yes

    6. Which version of BP are you running?

    2.3.3 (also with 2.5.8 bbpress)

    7. Did you upgraded from a previous version of BP? If so, from which version?

    no

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    yes

    AG Custom Admin
    All In One WP Security
    bbPress
    bbPress Multi Image Uploader
    bbPress Notices
    BuddyPress
    BuddyPress Forum Editor
    Bug Library
    Coming soon and Maintenance mode WpDevArt
    Content Aware Sidebars
    GD bbPress Tools
    Merge + Minify + Refresh
    Redis Object Cache (currently deactivated and troubleshooting)
    Remove Dashboard Access
    rtMedia for WordPress, BuddyPress and bbPress
    Scrollbar Designer
    Steam News Widget
    WP Change Default From Email
    WP Clone by WP Academy
    WP Super Cache
    WP ULike
    WPS Hide Login

    9. Are you using the standard WordPress theme or customized theme?

    child of Spacious from themegrill

    10. Have you modified the core files in any way?

    a couple small tweaks in child theme

    11. Do you have any custom functions in bp-custom.php?

    not that i am aware of

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?

    yes, 2.5.8

    13. Please provide a list of any errors in your server’s log files.

    [Wed Sep 16 11:20:01.065681 2015] [fcgid:warn] [pid 19091] [client my.ip.address:1024] mod_fcgid: stderr: PHP Notice:  Undefined offset: 0 in /home/mysite/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/functions.php on line 133, referer: http://mysite.com/groups/united-division/forum/
    [Wed Sep 16 11:20:01.065720 2015] [fcgid:warn] [pid 19091] [client my.ip.address:1024] mod_fcgid: stderr: PHP Notice:  Trying to get property of non-object in /home/mysite/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/functions.php on line 133, referer: http://mysite.com/groups/united-division/forum/

    14. Which company provides your hosting?

    Self hosted Debian Jessie with virtualmin

    15. Is your server running Windows, or if Linux; Apache, nginx or something else?

    Debian Jessie

    I have debugging on and when I go to a locked thread in a group forum (open or private so far), the same error is displayed on top as part of wp debug

    
    [16-Sep-2015 18:21:55 UTC] PHP Notice:  Undefined offset: 0 in /home/mysite/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/functions.php on line 133
    [16-Sep-2015 18:21:55 UTC] PHP Notice:  Trying to get property of non-object in /home/mysite/public_html/wp-content/plugins/bbpress/includes/extend/buddypress/functions.php on line 133

    My site is currently locked down for beta testers. I could give you the address in private but I would need your IP address to whitelist you.

    #244254
    djsteveb
    Participant

    @nithin270 – any changes you make for search spiders is going to take weeks (at minimum) before they are reflected in the search results.

    I suggest doing some robots.txt additions (will list mine below) – however realize that long ago google made a decisions that even if your robots.txt says to disallow crawling something, if another page on the web links to your subpage that is blocked by robots.txt, it will still show the url in the search results – but have a description something like “this sites robots.txt prevents google from displaying description of this result”.

    There has been debate about that decision, but it is what it is.

    The only way to really prevent a page showing up in results is to hide it behind a password (like htpasswd) – however google does normally remove results if that page (or header info of images) includes “noindex” in the head of the page (there is a tricky way to add this to images – it was pointed out to me in the google webmaster forums)

    given that bp pages like members are kind of pseudo pages, using something like yoast (currently as far as I know) – will not give you an option to add noindex, nofollow to your member pages..

    you may be able to modify the code I got from wpmudev that checks “if is member page, then add meta description as…” –
    ( http://premium.wpmudev.org/forums/topic/bp-meta-tite-description-for-groups-and-members-pages#post-806736 )
    to… also check “if is members page” – then add “meta name=”robots” content “noindex, nofollow”..
    (something like that)

    that should remove your members pages next time google crawls your site and the crawlers send the info back to the main algo/index..

    I think there is a way to log into google webmaster tools if you have claimed /verified your site and click on urls to ask the big G to remove them as well. (I have not messed with that stuff in a while )

    I also suggest adding a robots.txt file similar to this:

    Disallow: */activity/p/*
    Disallow: /docs/
    Disallow: *send-invites*
    Disallow: */groups/*members*
    Disallow: */groups/*media*
    Disallow: *widget-title*
    Disallow: *members/*activity*
    Disallow: *members/*notifications*
    Disallow: *members/*friends*
    Disallow: *members/*groups*
    Disallow: *members/*docs*
    Disallow: *members/*media*
    Disallow: *acpage*
    Disallow: *messages*
    Disallow: *friends*
    Disallow: *settings*
    Disallow: /*/comment-page*
    Disallow: *register*
    Disallow: *login*
    Disallow: *profile*
    Disallow: *admin*
    Disallow: *includes*
    Disallow: *content*

    to prevent some other quirky indexing issues with bp.

    If your member profile stuff is sacred, then I would hunt the forums here for what others have been messing with that prevents profile info from being displayed if a user is not logged in… as there are plenty of indexing spiders that will not follow the robots.txt or robots index rules in <head> – in fact some specifically look for these things and purposely crawl and scrape stuff that is blocked –

    Disclaimer: I am not an expert, not a real coder. Research these things with other sources, your situation may vary.

    #244207
    danbp
    Participant

    hi,

    first snipppet removes the mention tab.
    Second remove the mention item from the top right usermenu below howdy.

    Condition is set to site admin. If you use custom capabilities, change that to your need.
    Code goes to bp-custom.php

    function bpfr_hide_mention_nav() {
    	//if ( bp_current_user_can( 'bp_moderate' ) )
    	if ( is_super_admin() ) {
    		return;
    	} 
    	bp_core_remove_subnav_item( 'activity', 'mentions' ); 
    }
    add_action( 'bp_ready', 'bpfr_hide_mention_nav' );
    
    function bpfr_admin_bar_remove_activity_mentions(){
    global $wp_admin_bar;
    	if ( is_super_admin() ) {
    		return;
    	}
    	$wp_admin_bar->remove_node('my-account-activity-mentions');
    }
    add_action('wp_before_admin_bar_render','bpfr_admin_bar_remove_activity_mentions');
    

    An alternate (IMO better) solution, is this premium plugin: http://www.philopress.com/products/buddynotes/

    jeremymh
    Participant

    I know before with BuddyPress and Global Hide Admin Toolbar they were not a happy couple and the only way the Global Hide Admin Toolbar would work is if BuddyPress was disabled. Has this been resolved in the new version? Please advise.

    danbp
    Participant

    BuddyPress use bbPress when you allow group forums.
    If the group is private, the attached forum is also hidden ton non members of that group. Same for public or private groups.

    You don’t have to change the group forum setting in the forum list.
    The right steps
    Create a group A
    A is set to private
    Allow a forum for A
    —— The wrong step ——–
    Going to dashboard forum admin, and set forum A to private. If you do this nobody will see it except site admin.

    Groups


    https://buddypress.org/support/topic/hide-buddypress-and-bbpress-items-from-guests/
    https://buddypress.org/support/topic/buddypress-private-group-is-not-visible-in-bbpress/

    atfpodcast
    Participant

    Deactivate and delete the admin bar plugin. Remove also any custom code you have added in the past concerning the toolbar. The idea is to revert back to a fully standard WP install.

    It was already deactivated. I wonder if it left anything altered? that other snip it i added to try does not exist.

    If this doesn’t work, you have to go to your db and check the wp_options table for the toolbar setting.
    Search for option_name hide-loggedout-adminbar where value must contain 1.

    im using godaddy so i guess that would be in myphpadmin?

    danbp
    Participant

    I can confirm that Raindrops theme is working correctly with BP and taht the admin bar is showing up to logged in users.

    Deactivate and delete the admin bar plugin. Remove also any custom code you have added in the past concerning the toolbar. The idea is to revert back to a fully standard WP install.

    If this doesn’t work, you have to go to your db and check the wp_options table for the toolbar setting.
    Search for option_name hide-loggedout-adminbar where value must contain 1.

    atfpodcast
    Participant

    Yes sir the bar is there when are not logged on. I added show_admin_bar( true ); in a function plugin and that did not work. I tried the 2014 theme with the same results. no tool bar. THe one i deactivated was the one from stranger studios hid admin bar to non admins and and I deactivated that.
    https://wordpress.org/plugins/hide-admin-bar-from-non-admins/

    Quinn Goldwin
    Participant

    Hello Buddy Dev team,

    I’m very new to php coding and I’ve been trying very hard to get this to work.

    I’m using wedevs project managment plugin with buddypress integration. There dev team doesn’t have the time to customize the plugin for me at the moment so I’m looking for a quick fix. I feel I’m so close but for some reason I’m not getting it to work.

    I have a “create project” button that I would like to hide for all group memembers accept the Group admin. so I would like it to verify if the user is the group admin and show the “create project link”. But if it is just a group member or user, I would like the “create project link” to be hidden. Only group admins should be allowed to create projects… Here is what I have so far. But its not working. Any help or guidence would be greatly appreciated.

    	<?php if ( BP_Groups_Member::get_is_admin_of( $user_id )) { ?>
    				<style  type="text/css" media="screen">
    				.cpm-projects nav.cpm-new-project a {visibility:visible; }
    				</style>
    				<?php }
    				else { ?>
    				<style  type="text/css" media="screen">
    				.cpm-projects nav.cpm-new-project a {visibility:hidden; }
    				</style>
    			<?php } ?>
    

    Keep in mind that the stylesheet for the plugin has this inside the style sheet.

    .cpm-projects nav.cpm-new-project a {
        background: transparent url("../images/plus.png") no-repeat scroll 50% 50%;
        box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
        height: 80px;
        width: 80px;
        display: block;
        border-radius: 3px;
    }

    For some reason its still showing for all members with this code.

    Any help would be greatly appreciated.

    startershut
    Participant

    Hi,

    I have noticed there are a few fields on the ‘Your Profile’ on the Users admin section. Is there a way from hiding these fields from the users?

    I don’t require biographical information, fax and maybe even addresses.

    Is it possible to hide these so users don’t even need to fill them out or see them on their profile?

    Thanks

    #242490
    kjgbriggs
    Participant

    I am looking to remove my WordPress Admin Bar (hide it completely) as users will not have access to most stuff on there anyway.

    I would however like to keep the BuddyPress notifications area (the thing that says Howdy…) that has all the account options on.

    I want to move this to an independent bar below my main menu as has been done on the BuddyPress site here, the bar that says BuddyPress.org My Sites and has the Howdy account bar on the right.

    Does anyone know how this was done and how to do it?

    jreeve
    Participant

    I’ve been getting weird errors when trying to log an activity item via bp_activity_add():

    WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '( user_id, component, type, action, content, primary_link, date_recorded, item_i' at line 1 for query INSERT INTO ( user_id, component, type, action, content, primary_link, date_recorded, item_id, secondary_item_id, hide_sitewide, is_spam ) VALUES ( 3163, 'members', 'new_member', '', '', '', '2015-07-16 15:47:00', 0, 0, 0, 0 ) made by require('wp-blog-header. php'), require_once('wp-load.php'), require_once('/srv/www/commons/current/web/wp-config. php'), require_once('wp-settings.php'), include('/themes/tuileries/functions.php'), bp_activity_add, BP_Activity_Activity->save

    As you can see, there’s no table name here. It should be INSERT INTO wp_bp_activities... or thereabouts. It looks like BP_Activity_Activity->save() is trying to access $bp->activity->table_name, but $bp->activity doesn’t have a table_name property at this stage. Instead, this is all that is in $bp->activity:

    
    BP_Activity_Component Object
    (
        [name] => Activity Streams
        [id] => activity
        [slug] =>
        [has_directory] =>
        [path] => /srv/www/commons/current/web/app/plugins/buddypress/
        [query] =>
        [current_id] =>
        [notification_callback] =>
        [admin_menu] =>
        [search_string] =>
        [root_slug] =>
        [meta_tables] => Array
            (
            )
    
        [global_tables] => Array
            (
            )
    
        [adminbar_myaccount_order] => 10
    )

    Why isn’t there a table name here? How can I fix this?

    sharmavishal
    Participant

    Hi

    How do i change the Change Order of BuddyBar/ToolBar/AdminBar menu items?

    Viz default view is Activity/Profile/Notifications/Messages

    how can i change the toolbar drop-down menu to lets say Messages/Activity/Profile/Notifications/

    I was able to hide menu items and sub items in the BuddyBar/ToolBar/AdminBar but how do i re-order or change order there?

    Thanks in advance

    djsteveb
    Participant

    @dangthrimble – no matter what you do to hide the admin username, the really good hack teams are running scans to get the admin names by running url checks like “yourdotcom /?author=2
    ?author=3

    and scraping the details wp is providing both on page, and in meta fields.
    Then adding those names to their pass cracking bot nets.
    (look in your raw access logs, you will see it)

    I’ve tried changing names on wp sites many times, the rssn hackers get getting the new names, you can tell if you check your fail log with “limit login attempts” plugin.

    I’ve played with some code to change in wp themes to hide details there, but my php is slightly below beginner and my understanding of what the theme code is doing is same.

    I tried a plugin from the wp-repo that is supposed to hide all that- but it’s not working.

    (you could htaccess geo block ukrain and chna from your site completely and probably prevent 90% of these issues anyway from what I have seen by checking logs)

    I found some htaccess someone posted that is supposed to suppress all requests for “/?auth [nc] or something like that – but since I do not understand what each part is doing, I have not deployed it.

    I think it needs to be htaccess add and include anything with “author” and a number to work well (reg ex for numbers?)

    Until I find a htaccess regex method I understand and trust, I have found that the best combo for prevention is:

    Geo IP Block
    (https://wordpress.org/plugins/ip-geo-block/ )
    (default settings are okay, I think it’s best to change the drop downs to block by country the plugins area, theme area, admin ajax, etc as well – options in settings
    Also some blogs may want to uncheck the “comment post” block by country
    )

    If this geoip block plugin author had a donate link I’d already sent him some bucks, it’s the most useful plugin I’ve found since… “good question”

    and succuri is an informative add on as well
    (shows that some bots have figured out how to bypass the limit login attempts max tries setting)

    The way WP is handling question marks in urls (string queries I think it’s called) and giving up 200 status codes and extra info (including author names) to bots is a big issue for me, this kind of relates to the unanswered support question I posted here:
    https://wordpress.org/support/topic/question-mark-url-return-200-not-404-string-query-noindex-or?replies=1

    shanebp
    Moderator

    Google: buddypress hide admin from members list

    shanebp
    Moderator

    I would like to be able to hide all the information about my site administrators

    What do you mean by ‘hide’?
    Make them invisible?

    If you’ve changed the name of the admin’s account so it doesn’t say ‘admin’, then why do you need to hide it?
    How would a scraper know that it’s the admin’s account?

    Dangthrimble
    Participant

    WordPress: 4.2.2–en_GB
    BuddyPress: 2.3.2.1

    Hi,

    I know there have been threads about this before, but I am new to BuddyPress, not confident with PHP and generally somewhat confused. I would like to be able to hide all the information about my site administrators from anyone other than other site administrators. The reason is that it is advised (e.g. http://wpsecure.net/secure-wordpress/) that you delete your original admin account and change the nickname so that details of the admin account cannot be scraped off the web site. However, BuddyPress makes both the username and the nickname visible.

    I’m surprised, after the number of times this has come up, that there isn’t an option to address this from the BuddyPress menus.

    Can you advise in simple terms how I can achieve this and, if I have to modify code, what I need to do to maintain it when I get subsequent updates to BuddyPress.

    Thanks

    #241200
    Gnostic_Thought
    Participant

    I am not sure. I bought a plugin from codecanyon and am trying to alter it to work with buddypress. I think this is the code I will have to alter

    public function __construct() {
    		$this -> admin = WP_Atr_Admin :: get_instance();
    		# registration hooks:
    		add_action( 'login_enqueue_scripts', array( $this, 'initialize_registration' ) );
    		add_action( 'register_form', array( $this, 'add_checkboxes_to_registration' ) );
    		add_filter( 'registration_errors', array( $this, 'validate_registration' ), 10, 3 );
    
    		# mu
    		add_action( 'signup_header', array( $this, 'initialize_registration' ) );
    		add_filter( 'wpmu_validate_user_signup', array( $this, 'mu_validate_registration' ), 10, 3 );
    		add_action( 'signup_extra_fields', array( $this, 'mu_add_checkboxes_to_registration' ) );
    
    		# add button
    		add_filter( 'the_content', array( $this, 'add_button_to_pages' ) );
    		$this -> register_page_status();
    		if( is_multisite() ) {
    			add_filter( 'all_plugins', array( $this, 'hide_plugin_in_mu_sites' ) );
    		}
    	}
    

    I would figure I would prefix bp_ to some of the code here

    # registration hooks:
    add_action( ‘bp_login_enqueue_scripts’, array( $this, ‘initialize_registration’ ) );
    add_action( ‘bp_register_form’, array( $this, ‘add_checkboxes_to_registration’ ) );
    add_filter( ‘bp_registration_errors’, array( $this, ‘validate_registration’ ), 10, 3 );

    but it like there is more to it than that according to your link.

    Giorrous
    Participant

    Hello,

    I want to hide “Create a Group” button for all user roles except Admin and Editor.I want to make it so that only Admins and Editors are allowed to create groups.
    Any ideas how can i achive this?

    Thank you.

    #239335
    @mercime
    Participant
    Mickey
    Participant

    Im using great codes provided here for admin to be hidden from all members directory, but admin still shows up in groups members list and they can try and add him/here as a friend which is not what many people want.

    jkin
    Participant

    Hi, I am using buddypress + bbpress, with userpro in a theme called Magmik.
    The setting for buddypress, bbpress, and userpro seems to be ok, however, I am don’t know how to make sure for these, although I have released my order to the theme company to set it up for me.

    My question here is that, due to the userpro, the message in the admin board keeps showing:
    The following active BuddyPress Components do not have associated WordPress Pages: Activate, Register. Repair.

    I am told that I am using userpro to replace both the Activate and Register pages, therefore, there is no issue in here, it seems.

    however, my problem is the message in the backend of the website.
    Please advise how could I hide this message in my dashboard for administrator.

    Versions are:
    WordPress 4.2.2
    buddypress: 2-2-3-1
    bbpress: 2.5.7
    The website is: http://www.enihongo.net/

    Please help. thanks.
    Kay

Viewing 25 results - 276 through 300 (of 915 total)
Skip to toolbar