Skip to:

Search Results for 'how to hide pages'

Viewing 25 results - 26 through 50 (of 283 total)
  • Author
    Search Results
  • #269758

    Which is best plugin to show particular pages after login from buddypress and hide rest of the pages?


    ok.. it works again.. Not sure which step fixed it but here is what I did..

    In the database area I clicked the Optimize, repair, and reset permission buttons.

    In wordpress I cleared off some of the warning notifications I was getting about “Activity Stream” and “User Links” pages not having pages set for them..

    I had those removed on purpose btw.

    The code to hide the members directory doesn’t work anymore but someone said something about maybe being able to redirect traffic to that page to a password protected or otherwise restricted page.

    So.. That should do it if you have the problem I did.. clear the page missing error for user links and activity and run the one click fixes on the database to reset permissions and such.

    Boone Gorges

    Hi @richardmiller-1 – The purpose of the @username part of the interface is to tell other users how to mention the user when posting new activity items, etc. It’s possible to change the value that’s displayed here, but if you do, and if users then use that text to “mention” others, then things like auto-linking of @-mentions and @-mention notifications will break, since BP doesn’t know by default how to search by display names.

    If you just want to change the display, then you should copy the cover-image-header.php template to your own child theme, and then change the line you’ve referenced to:

    <h2 class=”user-nicename”>@<?php echo bp_core_get_user_displayname( bp_displayed_user_id() ); ?></h2>

    It might be possible to retool some of the @-mention plumbing so that notifications etc work. You’d want to start by filtering bp_activity_mentioned_users(), and copying some of the logic in bp_activity_find_mentions() but with modified regex + user lookup. (This is going to be hard because, among other things, display names are not necessarily unique across a network, so @Richard could refer to multiple people. But that depends on the nature of your network.)

    The h1 at the top of the profile page is generated in a weird way, as part of BP’s theme compatibility system. It’s not directly generated by BP, but comes from your WP theme; BP is faking the theme into thinking that the user’s display name is the title of the WP page, so that your theme’s page.php template outputs it as the_title(). There are various workarounds for this. One is to tap into BP’s template hierarchy, so that WP would use a separate template file for single member pages. See for details. Basically, you’d copy page.php to buddypress/members/single/index.php, and remove the call to the_title(). A simpler solution is to hide with CSS:

    .bp-user .entry-title {
    	display: none;


    JetPack Widget Visibility does not seem to work on BuddyPress pages (Register, Members, Activity, etc.).
    But, when I disable BuddyPress plugin, the visibility options work.

    Example: I’m trying to hide certain widgets on the Register page. But they are still there unless I disable BuddyPress.

    Also, JetPack visibilty works perfectly on all other pages when BuddyPress is enabled, except BuddyPress pages.

    Any help would be appreciated. Thanks in advance!

    WordPress 4.8.3 running Point theme.
    BuddyPress Version 2.9.2


    Hey guys,

    Would anyone know how to hide and disable member pages based on their role type. (e.g.

    Goal: if a member is set to a WordPress Administrator role, we would like to make his/her page inaccessible from the public

    Purpose: while we have been able to hide specific roles from displaying in the member directory, their member/page is still visible if you know the URL.

    Similar to how we can make the WordPress Author page inaccessible, we’d like to do the same for BuddyPress’s equivalent Member page.

    Thanks in advance


    Tyvm for the reply.

    It seems I get redirected to a 404 page when the resend activation email link is clicked.
    Here’s the path that leads to it.
    Most likely a plugin conflict since I hide wp pages from the public.

    I’m trying to do something similar like the code below.
    class=”bp_registration_needs_activation”>Resend Activation Email


    I administer two social sites and both are asking of there is any way to remove notifications of people joining the group and who made friends with whom… It is plugging up the group notification area and users are getting annoyed.
    I have searched for appropriate plugins and found a few but all are depreciated and mess up the site.
    Wordpress 4.7.3
    Buddypress 2.8.2
    Bbpress 2.5.12

    I found a code hack for the functions.php but it can’t be used in the child “guideline” theme. When added to the child, I lose admin pages. code snippet below

    // Remove (hide) various activities from streams.
    function my_hidden_activities($a, $activities) {
    //if admin we want to know
    //if (is_site_admin())
    // return $activities;

    $nothanks = array(“new_blog_post”, “created_group”, “joined_group”, “new_member”, “friendship_created”, “activity_liked”);

    foreach ($activities->activities as $key => $activity) {
    if (in_array($activity->type, $nothanks, true)) {
    $activities->activity_count = $activities->activity_count-1;
    $activities->total_activity_count = $activities->total_activity_count-1;
    $activities->pag_num = $activities->pag_num -1;

    // Renumber the array keys to account for missing items.
    $activities_new = array_values( $activities->activities );
    $activities->activities = $activities_new;

    return $activities;
    add_action(‘bp_has_activities’, ‘my_hidden_activities’, 10, 2 );

    The author suggests adding to functions.php but without using the child theme the code would be lost after an update. It also broke the site… Even after reverting the changes, the menu and page formatting was gone.

    Is there any way that is up to date to filter what activity is reported on the group wall?


    im using a theme called social marketplace by buddyboss, it comes bundled with buddypress.. they have these hideous login and register overlays that are cool in theory but i dont know how to style them in CSS… (im a noobie) so i went into the theme settings and shut them off.. now my login page goes to /wp-login and my register page goes to /my-account

    my account page still looks like the buddypress registration form.. when it should infact look like this

    i use a plugin called wc vendors.. that say they hook into the my-account page ( whatever that means)

    i just want to get my login and register pages looking similar i cant seem to figure it out.. thanks


    interesting recent discussion on the privacy thing here: – hope others can chime in on best practices for the future.

    An easy way to choose that gives put in and what gets left out of the main activity stream is a top issue I think for bp, as well as an easier way to manipulate page titles, meta descriptions, and other content on the bp-psudoe pages likes groups and member profiles is a consistent pain point for many.

    hopefully media handling will get more standardized.


    @johanna75 – We do need some kind of universal “display public ok” field perhaps?

    Some people have fields set to ‘friends only’ – so things in search should only display to them.

    Bp has a thing in it when a user is marked as spam, then they are only visible to admins – so I think this kind of functioning is half in there already.

    Would be nice for the buddyblock and rtmedia plugins to also consider this visibility thing, and for buddyblock to be able to conditionally affect that as well.

    I could see the need for someone to hide certain things from the public and from specific people – what a nightmare it is when things that were assumed secret pop up in search results.. I had this happen with a wp install – pages published but password protected – well either the theme, or the post teaser plugin pulled data from those non public pages and put them smack in the public search results.

    Luckily the bp profile search pluing (that I also use – it’s great!) – is under active development – (I see the author has responded to the support forum on wp repo saying it is an issue that is under consideration, but bp does the same thing – so it’s no different in the privacy regard) wonder if we could ping the other bp peeps and rtmedia and buddyblock peeps tp put some heads together on this..

    I have a similar problem right now with rtmedia not meshing with buddyblock. When a user blocks and enemy on my site – that enemy can not message them or comment on their activity – but they can harass the sh*t out of them via comments on their media.


    Hello, I’m currently using a plugin to show the activity-stream on my home page. I want that if users place an update it always shows up in the stream. Problem is that if i attach an image, it will not show up. Here is the plugin’s code:

     * Plugin Name: BuddyPress Activity ShortCode
     * Description: Embed activity stream in page/post using shortcode
     * Author: BuddyDev
     * Plugin URI:
     * Author URI:
     * Version: 1.0.8
     * License: GPL
    // exit if access directly
    if ( ! defined( 'ABSPATH' ) ) {
    class BD_Activity_Stream_Shortcodes_Helper {
    	private static $instance;
    	private function __construct() {
    	 * Register ShortCode
    	 * @example [activity-stream display_comments=threaded|none title=somethimg per_page=something]
    	private function register_shortcodes() {
    		add_shortcode( 'activity-stream', array( $this, 'generate_activity_stream' ) );
    	 * Get Instance
    	 * @return BD_Activity_Stream_Shortcodes_Helper
    	public static function get_instance() {
    		if ( ! isset( self::$instance ) ) {
    			self::$instance = new self();
    		return self::$instance;
    	public function generate_activity_stream( $atts, $content = null ) {
    		//allow to use all those args awesome!
    		$atts = shortcode_atts( array(
    			'title'            => 'Updates van Leden',//title of the section
    			'pagination'       => 1,//show or not
    			'load_more'        => 0,
    			'display_comments' => 'threaded',
    			'include'          => false,     // pass an activity_id or string of IDs comma-separated
    			'exclude'          => false,     // pass an activity_id or string of IDs comma-separated
    			'in'               => false,     // comma-separated list or array of activity IDs among which to search
    			'sort'             => 'DESC',    // sort DESC or ASC
    			'page'             => 1,         // which page to load
    			'per_page'         => 6,         //how many per page
    			'max'              => false,     // max number to return
    			'count_total'      => true,
    			// Scope - pre-built activity filters for a user (friends/groups/favorites/mentions)
    			'scope'            => false,
    			// Filtering
    			'user_id'          => false,    // user_id to filter on
    			'object'           => false,    // object to filter on e.g. groups, profile, status, friends
    			'action'           => activity_update,    // action to filter on e.g. activity_update, new_forum_post, profile_updated
    			'primary_id'       => false,    // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
    			'secondary_id'     => false,    // secondary object ID to filter on e.g. a post_id
    			// Searching
    			'search_terms'     => false,         // specify terms to search on
    			'use_compat'       => bp_use_theme_compat_with_current_theme(),
    			'allow_posting'    => false,    //experimental, some of the themes may not support it.
    			'container_class'  => 'activity',//default container,
    			'hide_on_activity' => 1,//hide on user and group activity pages
    		), $atts );
    		//hide on user activity, activity directory and group activity
    		if ( $atts['hide_on_activity'] && ( function_exists( 'bp_is_activity_component' ) && bp_is_activity_component() ||
    		       function_exists( 'bp_is_group_home' ) && bp_is_group_home() ) ) {
    			return '';
    		//start buffering
    		<?php if ( $atts['use_compat'] ) : ?>
    			<div id="buddypress">
    		<?php endif; ?>
    			<?php if ( $atts['title'] ) : ?>
    				<h3 class="activity-shortcode-title"><?php echo $atts['title']; ?></h3><hr color="#000000">
    			<?php endif; ?>
    			<?php do_action( 'bp_before_activity_loop' ); ?>
    			<?php if ( $atts['allow_posting'] && is_user_logged_in() ) : ?>
    				<?php bp_locate_template( array( 'activity/post-form.php' ), true ); ?>
    			<?php endif; ?>
    			<?php if ( bp_has_activities( $atts ) ) : ?>
    				<div class="<?php echo esc_attr( $atts['container_class'] ); ?> <?php if ( ! $atts['display_comments'] ) : ?> hide-activity-comments<?php endif; ?> shortcode-activity-stream">
    					<?php if ( empty( $_POST['page'] ) ) : ?>
    						<ul id="activity-stream" class="activity-list item-list">
    					<?php endif; ?>
    							<?php while ( bp_activities() ) : bp_the_activity(); ?>
    								<?php bp_get_template_part( 'activity/entry' ); ?>
    							<?php endwhile; ?>
    							<?php if ( $atts['load_more'] && bp_activity_has_more_items() ) : ?>
    								<li class="load-more">
    									<a href="<?php bp_activity_load_more_link() ?>"><?php _e( 'Load More', 'buddypress' ); ?></a>
    							<?php endif; ?>
    					<?php if ( empty( $_POST['page'] ) ) : ?>
    					<?php endif; ?>
    					<?php if ( $atts['pagination'] && ! $atts['load_more'] ) : ?>
    						<div class="pagination">
    							<div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
    							<div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    					<?php endif; ?>
    			<?php else : ?>
    				<div id="message" class="info">
    					<p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
    			<?php endif; ?>
    			<?php do_action( 'bp_after_activity_loop' ); ?>
    			<form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    				<?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
    		<?php if ( $atts['use_compat'] ) : ?>
    		<?php endif; ?>
    		$output = ob_get_clean();
    		return $output;

    Hi there,

    I hope this topic is in the right sub. If not, please be so kind and move it to the right one ;-).
    Anyway, the matter is the following: We want to run the Buddypress Plugin along the mycred Plugin – operating under the Rehub:recash theme.

    Everything works great and thanks for this nice plugin of BP!
    But there is a thing: We want to hide the mycred points in the public profile section as well as under the public product pages. Just the user himself/herself should be able to see his/her points balance.

    Is there any way to accomplish this?

    If you need any further information, feel free to ask.
    Many thanks in advance,
    best regards!


    Can anymore provide some guidance on hiding BuddyPress user profile fields and custom tabs from non-logged in users?

    I’ve been trying to figure out how to prevent non-logged in users from viewing my BuddyPress pages, but I can’t seem to quite make everything work. So far, I’ve been able to figure out how to restrict access to the Members page and redirect non-logged in users to the login page. I put the following code in my bp-custom.php file, which is in my plugins folder. I got the code from this BuddyPress forum page (

     * Change BuddyPress default Members landing tab.
    define('BP_DEFAULT_COMPONENT', 'profile' );
    /* Prevent logged out users from accessing bp activity page */
    function nonreg_visitor_redirect() {
    global $bp;
    if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_group_forum() || bp_is_page( BP_MEMBERS_SLUG ) ) {
    if(!is_user_logged_in()) { //just a visitor and not logged in
    wp_redirect( get_option('siteurl') . '/wp-login.php' );

    However, non-logged in users can still view each user’s page and their profile tabs. How can I restrict access to those pages as well? I’d rather not use another plugin.


    There’s a few different ways you could go about this, there’s a few privacy plugins that will hide different aspect of the site from public view. One is BP Registration Options, this installs new member moderation (so you can choose who to allow on you site) and BuddyPress privacy, where the BuddyPress pages are all private, but the WordPress pages and posts are still public.

    If that’s not private enough for you then there’s BP Simple Private which allows you to hide all aspects of your site apart from the homepage.


    I really need to exclude some members and none members from accessing the custom link elements eg messages etc

    I can exclude the pages – but the custom links (as submenus) are killing my site

    Can anyone help as this is also kiiling my business model!

    I was thinking of putting the custom links onto a page that I can hide (appropriately) but then I will need code as the custom links are reliant upon buddypress user id?

    I think there must be a fix?

    Please advise – thank you Anthony

    David Cameron Law

    If you install BuddyPress on the main domain you can use the Display Widgets SEO Plus Plugin (I’m the developer) to show/hide widgets on specific sections of a site.

    Just released version 1.1.0 which includes specific widget logic support for BuddyPress/bbPress, could set the widgets for the BuddyPress parts of the site to NOT load on non-BuddyPress sections, this would stop some ‘bleed through’ of content from BuddyPress to the rest of the site.

    That being said, from an SEO perspective (my background is SEO) there are other issues that could leak out to potential Google visitors.

    Check this Google search:

    Note the WordPress Plugin Repository listing (1st result) has six additional indented results (called sitelinks:

    The 6 links for the WordPress Plugin Repository listing are benign, but if there was an adult section of WordPress it could be listed as a sitelink.

    From a WordPress perspective there’s also the core WordPress Search functions. The Static Pages that BuddyPress uses for ‘holding’ the BuddyPress specific output can be found via a search. If you have the default BuddyPress setup try using the WordPress Search Form to search for the word “Members”.

    This will find your BuddyPress Members Directory Holding Page.

    Same result with “Registration”, “Activate” and “Activity”.

    It’s difficult to prevent bleed through of different types of WordPress content, so if your client is conservative I’d suggest a sub-domain/other domain to play it safe and manually add interlinking via Text Widgets and Nav Menu Links.

    David Law


    Hi, i currently have my Buddpress/Wordpress site set to be Private, however, some of the pages were visible even to users awaiting an assigned role. I used the plugin “Buddypress Registration Options”, from that plugin all the buddypress pages except for the Wiki page are hidden.

    Is there some way of hiding the Wiki page from users who have not been assigned a role?


    I have a problem with the Jetpack sharing buttons in combination with buddypress.
    Obviously they don’t make much sense there anyways, it’s not like I want to share my settings page or sth similar, so I am looking for a way to get rid of the sharing buttons on these pages.
    I tried hiding them via custom css, but with no success (I can either hide them globally or not at all, since I can’t find a post-id to use it only there). So I searched the web and found this code:

    function jptweak_remove_share() {
    	if ( bp_is_user_profile() ) {
    	    remove_filter( 'the_content', 'sharing_display',19 );
    	    remove_filter( 'the_excerpt', 'sharing_display',19 );
    	    if ( class_exists( 'Jetpack_Likes' ) ) {
    	        remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
    add_action( 'loop_start', 'jptweak_remove_share' );

    This disabled the sharing buttons when viewing the user profile. I just wonder what to replace the “bp_is_user_profile()” with to get rid of the sharing buttons on the activity site, the user settings page etc.
    Hope you can help me. Thank you in advance


    In reply to: Disable BP reg

    Ron Ashman

    Hi Henry,

    Wow I didn’t expect an answer so quickly. Thanks!

    I wouldn’t feel comfortable opening a ticket because my understanding of developing is quite basic, and this is a free plugin so I’d feel greedy asking for things or “complaining”.

    Would you please tell me if it might cause any trouble if I leave those pages set as blank? I don’t mind the warning or might find a way to hide it.

    I tried setting private pages or assign a password, but they don’t show in the list or even if they’re password protected they still show the content (registration form).

    Disabling registration through BP would be the best option for me, I think.

    Thanks again, have a great day!


    Ah! Now I got it what you’re trying to achieve..

    Well, that is very much doable but then this is no easy task..

    If you want to include images and other styling options, you can replace the plain text form with tinymce rich text editor by putting some codes in bp-templates/bp-legacy/buddypress/groups/create.php. But remember, simply enabling rich editor will not work unless you allow the img & other relevant tags, else it will strip off and data will not be saved..

    You can manage the wp media library to view able to only the person who uploaded the media.. This way it will not mixed up with many other users with their files..

    And for hiding the content or long description, you can use js to show/hide..

    You can also add other template pages if you need other separate pages for description like address, events etc.. Remove the default no-ajax nav items and replace it with your own custom items.. You can also ajax them, if you want them to.. They looks pretty straight but are more complicated that what you just read.. I did the similar kind of work before..

    I’m not sure if you’re looking something like this:


    I think the issue is that most people, when creating a group, want to include in the description page images, videos, proper formatting etc.

    The BP Group description is simply a line or tow of unformatted text that appears at the top of each group.

    Surely any group owner would like to have a page where they can explain in detail about the group, with any information they want, including media? You’d think there would be a solution for that. Group extra’s I think comes the closest, but it hides it’s pages under a subpage and you can’t make it home as far as I can see.


    hello danbp, thanks for your reply.

    I have tried the suggestion to use define('WP_DEBUG', true); in conjuction with define('WP_DEBUG_LOG', true); with a twenty theme. It works fine when buddypress is not activated. No error or logfile whatsover. Then after I tried to activate buddypress, and test again. The media library still cannot load out. I have tried to check for error log and I can’t seems to find any.

    Nevertheless I found the culprit can be my bp-custom.php in which I put it just under /wp-content/plugins/[here]

    if I remove the file and everything seems works fine again with buddypress activated.

    This is the content for my bp-custom.php

    // hacks and mods will go here
     * Make a site Private, works with/Without BuddyPress
     * @author sbrajesh
     * @global string $pagenow
    function buddydev_private_site() {
        //first exclude the wp-login.php
        global $pagenow;
        //do not restrict logged in users
        if( is_user_logged_in() ) {
            return ;
        //if we are here, the user is not logged in, so let us check for exclusion
        //we selectively exclude pages from the list
        //are we on login page?
        if( $pagenow == 'wp-login.php' ) {
            return ;
        //let us exclude the home page
        if( is_front_page() ) {
            return ;
        $exclude_pages = array( 'register', 'activate', 'excelportfolio' );//add the slugs here
        //is it one of the excluded pages, if yes, we just return and don't care
        if( is_page( $exclude_pages ) ) {
            return ;
        $redirect_url = wp_login_url( site_url('/') );//get login url,
        wp_safe_redirect( $redirect_url );
        exit( 0 );
    //add_action( 'template_redirect', 'buddydev_private_site', 0 );
    <style type="text/css">
    #wp-admin-bar-bp-login {
    	display:none; /* JOWY: hide login link for buddypress. */
    #wp-admin-bar-bp-register {
    	display:none; /* JOWY: hide register link for buddypress. */
    #adminloginform {
    	color: #ffffff; /* JOWY: text color on form. */
    #wpadminbar {
    	opacity: 0.7; /* JOWY: Opacity for wpadminbar. */

    what can possible went wrong?


    I’m going to do more with your admin groups .

    For example

    The box administrator with limited opportunities can base your group and take their users, and manage them . But it can not manage other groups.

    Then the administrator and his group can hide posts or publish .

    Group administrator can grant up to the author ’s website , but can not modify pages of other groups ?


    Thank you


    For anyone who is looking for the solution for not being able to save buddypress settings.

    Various plugins cause issues with adding various extra css in the admin area.

    in my case there was a css file from a Codecanyon Woozone plugin which hid the P tags in the buddypress options pages

    use firebug and find the bottom div that cotnains the submit button and disable any css that is hiding it and you can click the submit button.

    after you have done that you might want to tell the plugin developer that caused the issue about it.

    TLDR the button is there its probably just hidden. use firebug or chrome tools to unhide it and click save.

Viewing 25 results - 26 through 50 (of 283 total)
Skip to toolbar