Skip to:

Search Results for 'how to hide pages'

Viewing 25 results - 1 through 25 (of 276 total)
  • Author
    Search Results
  • #265687
    Profile photo of threwthenevrthrewthenevr

    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

    Profile photo of JohninbcJohninbc

    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?

    Profile photo of ryanb898ryanb898

    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

    Profile photo of djstevebdjsteveb

    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.

    Profile photo of djstevebdjsteveb

    @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.

    Profile photo of mw93mw93

    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;
    Profile photo of give2getgive2get

    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!

    Profile photo of mkricardmkricard

    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.

    Profile photo of VenutiusVenutius

    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.

    Profile photo of anthonylawtonanthonylawton

    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

    Profile photo of seo-daveSEO Dave

    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

    Profile photo of ademeloademelo

    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?

    Profile photo of staxracingstaxracing

    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

    Profile photo of fakurkrRon 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!

    Profile photo of jbboro3jbboro3

    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:

    Profile photo of VenutiusVenutius

    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.

    Profile photo of jowydsjowyds

    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?

    Profile photo of NormadSoulNormadSoul

    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

    Profile photo of siparkersiparker

    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.

    Profile photo of bertl11bertl11


    I habe some profile fields at the registration eg. address, email.
    Now I want them not to show at the registration and only under the profile tab. I tried it with css but then it dissappears at both pages 🙁

    .editfield.field_8.field_e-mail.optional-field.visibility-public.alt.field_type_textbox {display: none;}
    With the code above it’s hidden everywhere. How can I only hide it at registration page? Would be great if someone can help me!

    Thanks for yout help

    Profile photo of bryanbatcherbryanbatcher

    I want to remove “Notifications”, “Messages”, and “Settings” from the first nav bar on user pages.

    I’d also like to hide the user header (the profile pic, username, and cover photo section) on certain user pages.

    Any help would be appreciated.

    BP 2.5.3
    WP 4.5.2

    Profile photo of damagomezdamagomez

    Hello, im having problems with the registration and activity pages on my website, im new at this, so i dont know if i’ve made a mistake and where i might have made it…

    I installed buddypress through wordpress plug-in search engine, and then went to settings and set up everything as i wanted, edited the profile fields as i needed, and then when i tried to visit the pages i only get the title of the page and the rest is blank, as if it where a normal page.

    I’ve been searching different forums about people having the same problem, but i haven’t been able to find a solution, they’ve either been posted a lot of years ago, or they just say solved and do not share how they solved it.
    If anyone can help, i will appreciate it a lot!!

    I have read the codex as many suggested, but it did not help because i did everything as it indicate to do it.
    I created the register and activate page and then assigned them under Settings/Buddypress/Pages, how the codex indicates so. (i did not edit in any way the pages, i only created and assigned them.
    I made sure that in Settings/General under membership the “anyone can register” is checked.
    I’ve checked if the register.php and activate.php files do exist.
    I read that it might be a bug, so i tried uninstalling this version (V2.5.2) and installing V2.5.1 and V2.3.5, just in case that would fix it…

    I truly don’t know what else to do.
    Its my first website and i do not know a lot of coding, im learning as i go.
    Could it be a bug in the plug-in? if so… how can i fix it?

    Just in case it helps, my host company is hostgator, WordPress is updated to the lates version, so is buddypress.

    I have the following plug-ins installed (i know they are a lot, but since i do not know how to code, i sort of need them…) :

    Admin Custom Login
    Black Studio TinyMCE Widget
    Black Studio Touch Dropdown Menu
    BP Registration Options
    BuddyPress Cover Photo
    BulletProof Security
    Confirm User Registration
    Contact Form 7
    Duplicate Post
    Hide Admin Bar From Non-admins
    Lightbox Plus Colorbox
    Meta Slider
    No Right Click Images Plugin
    Page Builder by SiteOrigin
    PMPro KISSmetrics
    Protect My Contents
    Quick Page/Post Redirect Plugin
    SB Welcome Email Editor
    SiteOrigin Widgets Bundle
    Title Remover
    Wordfence Security
    WordPress Access Control
    WP Bouncer
    WP Maintenance Mode

    Thanks in advance for your help!

    Profile photo of giorginho10495giorginho10495

    Hi, i installed Capa plugin to hide some pages to unlogged users. I also used two page (friends and activity) of buddypress that automatically hide themselves when an user is unlogged. Unfortunately Capa plugin has problem to these two page, probably is not supported. Can you give me an advice or a supported plugin to hide pages? Thanks

    Profile photo of SwennetSwennet

    I’ve done a lot of searching but did not find a complete answer on how to do this.

    Basically, I want users to sign up with a Username, Email and Password. I want to disable the BuddyPress “Name” field (which is required).

    The Display Name for every user will be the same as their username.

    Every answer I found suggests using Javascript to hide this field. This seems like a terrible solution to me.

    How can I completely disable the required Name field from the registration and profile pages?

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