Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'how to hide pages'

Viewing 25 results - 51 through 75 (of 205 total)
  • Author
    Search Results
  • #259228
    Venutius
    Moderator

    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.

    #258619
    jowyds
    Participant

    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

    
    <?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
        //register
        //activate
        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. */
    }
    
    </style>
    

    what can possible went wrong?

    #257573
    NormadSoul
    Participant

    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 ?

    Possible?

    Thank you

    #255613
    siparker
    Participant

    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.

    bertl11
    Participant

    Hello,

    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

    #254614
    bryanbatcher
    Participant

    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

    damagomez
    Participant

    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
    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
    Polylang
    Protect My Contents
    Quick Page/Post Redirect Plugin
    SB Welcome Email Editor
    SiteOrigin Widgets Bundle
    Spacer
    Title Remover
    Wordfence Security
    WordPress Access Control
    WP Bouncer
    WP Maintenance Mode

    Thanks in advance for your help!

    #251562
    giorginho10495
    Participant

    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

    Swennet
    Participant

    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?

    #248412

    In reply to: Private Pages Glitch?

    fscbmwcca
    Participant

    I know the plugin doesn’t address my issue but keeps BuddyPress for members only and hide it from non-logged in users. Privacy is very important to our members. I will upload the members that are truly members from a csv file from a list that is provided for me and give the Contributor Role. What I meant by subscriber is the “Subscriber” Role (vs Contributor, Author, Editor, Administrator).
    I’m sorry I haven’t expressed myself well and now off topic. I was just trying to provide a solution for making pages private.

    #245719
    danbp
    Participant

    Hi guys,

    sorry to jump in, thought you need a little help from a mediapress early adopter.
    But first, about the theme used by @caesarhills.

    About Graphene
    The theme has an option where you can hide child pages. You probably don’t need to show all your site pages listing below BuddyPress content as you use the buddy menu.
    dashboard > appearance > graphene options. Tab General > child page option, select hide listing.

    About Mediapress

    @venutius
    , @caesarhills
    You don’t need to use a shortcode to get a list off existing galleries. This is default behave.

    Caesar, you use BP on network. When you use mediapress, take in account this remark from MP’s author:
    If you don’t want to have a separate MediaPress Installation for all the sites, please do not network activate MediaPress. Only activate it on your Main BuddyPress site.

    Currently, MediaPress does not support BuddyPress Multiblog Mode.

    MediaPress is best suited on a Multisite install if you activate it on main site or network activate if you are using BuddyPress Multi Network plugin.

    1) When you install a directory uploaded on Github (which is the case of mediapress), github add automatically -master to that folder. You have to remove that when you add the directory to wp-content/plugins/. So to get mediapress working correctly, ensure that the plugin path is
    wp-content/plugins/mediapress/ and not wp-content/plugins/mediapress-master like it is setted on trato111.org actually

    2) activate mediapress like any other plugin. When BP is installed, you get a message telling mediapress has no page associated to it. Click on repair and add a page manually. Call it ‘album’. Then assign this page to MediaPress component on BuddyPress > settings > pages. Save.

    Return to front and reload it. Now you should see a menu item called Album beside Activity, Groups, etc. on the main menu.

    Click and you see an empty Album page with the usual search filter for galleries, a sort filter for galleries and a little message telling you “There are no galleries available!”.

    Again, that’s the default behave. Note that i didn’t evoquate mediapress settings. I described you only what happens when you install mediapress by default.

    For more in-deep details, please refer to MediaPress documentation.

    And if you want to use shortcodes, do it after reading this doc.

    Jld142
    Participant

    Is there a way with buddypress to protect normal pages i have created from being viewed by users who are not logged into buddypress ?

    BP is a small part of my website and i want to create 3 form pages which are not viewable by users who are not logged in ?

    #245286
    renatokeuller
    Participant

    Hello @venutius

    As for whether to hide the pages of menus to unregistered users I could already solve using the plugin WORDPRESS ACCESS CONTROL.

    I added the three BP pages that wish is only for users registered on my primary menu and looked like this:

    http://cetps-pa.com.br/menu1.jpg

    When no user is logged in, the menu will be normal so only to common pages without appearing BP pages:

    http://cetps-pa.com.br/menu2.jpg

    Until then, fine. But my biggest challenge is to leave as soon as this I created in Photoshop to simulate how you would like to stay:

    http://cetps-pa.com.br/menu3.jpg

    Ie an extra menu below to display only pages BP.

    Is Possible?

    #244529
    djsteveb
    Participant

    @yespapa – there have been several posts in the forums about restricting views of various pages based upon logged in / logged out. I can’t remember any of the solutions, if there were any at this moment.

    I think you need to establish first which pages will be viewable by public / not viewable unless logged in – and make sure your language is correct / thorough.

    eg – in wordpress world “pages” are like “static pages” – they end up in nav menus, not in the blog “loop” – etc.. blog posts are posts.. and in bp world stuff like profiles, groups, are kind of “pseudo pages” – which are not easy to hide with standard user role / permission plugins like “press permit core” – and I’m not sure if s2member has started to be able to lockdown bp’s psuedo pages..

    there are some details posted by others in the other threads that have alredy discussed this kind of thing.

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

    zoewsaldana
    Participant

    Fixed it!! Okay, for anyone who encounters this issue, the problem was that for some reason (I think perhaps how WP or my server is caching pages) the hooks I was choosing to target for the behavior weren’t working. So instead I added both functions to the “wp” hook, and now it works site-wide!

    
    /* You can add custom functions below, in the empty area
    =========================================================== */
    
    function bp_guest_redirect( $name ) {
        if( ! is_user_logged_in() ) {
            if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_directory() || bp_is_user() || bp_is_members_component() ) 
                wp_redirect( get_option('siteurl') . '/new_member/' );
        }
    }
    add_action( 'wp', 'bp_guest_redirect', 1, 1 );
    function bpfr_hide_rss_feed_to_nonreg_visitor() {
     if ( !is_user_logged_in() ) { 	
       remove_action( 'bp_actions', 'bp_activity_action_sitewide_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_personal_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_friends_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_my_groups_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_mentions_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_favorites_feed' );
       remove_action( 'groups_action_group_feed', 'groups_action_group_feed' ); 
        }
    }
    add_action('wp', 'bpfr_hide_rss_feed_to_nonreg_visitor'); 
    
    

    My theme framework (WPZoom) also recommended I place theme modifying code in the functions/user/ pathway, so I modified functions.php there instead of using bp-custom. I think it would work either place, however.

    Thank you!

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

    djsteveb
    Participant

    @morka – do you have the same issue when using the default “wordpress 2014” or “twenty-twelve” themes?
    If not, I would ask your theme author to add some kind of check on pages for something like “if is register page, turn off comments” / not load the comment hook thing…

    sorry not a php or wp/bp expert, can’t point you in the right direction for those codes and what they are really called. I know with some standard WP pages you can go into the editor and select “comments off / disable trackbacks” – and with some themes you can use a theme option to “display comments off” or hide “comments off” on pages where comments are disallowed.

    danbp
    Participant
    rosyteddy
    Participant

    @minglonaire you can also try https://bp-tricks.com/design/easily-hide-specific-tabs-on-buddypress-member-and-group-pages/ AND remove Activity from Themes > Menu in your wordpress admin dashboard

    danbp
    Participant

    Try this to remove ALL activity feeds

    function bpfr_hide_rss_feeds() {	
       remove_action( 'bp_actions', 'bp_activity_action_sitewide_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_personal_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_friends_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_my_groups_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_mentions_feed' );
       remove_action( 'bp_actions', 'bp_activity_action_favorites_feed' );
       remove_action( 'groups_action_group_feed', 'groups_action_group_feed' );    
    }
    add_action('init', 'bpfr_hide_rss_feeds');

    This snippet will only show logged in users friends activities (on all activity pages of the site)

    
    function bpfr_filtering_activity( $retval ) {
    	$retval['scope'] = 'friends';		
    		return $retval;
    	}
    add_filter( 'bp_after_has_activities_parse_args', 'bpfr_filtering_activity' );

    Add to bp-custom.php or child-theme functions.php

    More details about this on Codex

    #235465
    danbp
    Participant

    my snippet hides buddybar items to non logged user, not BP usermenu items on Toolbar.

    To do that, you have to read the codex document i indicated in one of previous post.

    BuddyMenu is built a la BuddyPress. And you got support for this here.

    Toolbar is built a la WordPress. WP support is here.

    If you had looked a little on the forum (ie. Remove Edit My Profile), you could find this:
    https://buddypress.org/support/topic/remove-edit-my-profile/#post-150939

    And again, the one or other code doesn’t remove BP pages, only items.

    #234287
    Toby
    Participant

    Actually I should clarify, this isn’t happening on members or groups index pages. It’s subpages of these. It seems to be something to do with get_queried_object()? I’m starting to show my hideous ignorance at this point though.

    #233352
    chatty24
    Participant

    @danbp
    I have edited the code a bit and now it is getting displayed on all the pages as I wanted but, How can I hide the modified title when the notification count is 0. By current code is below –

    function bpfr_add_notification_to_page_title( $title, $original_title, $sep, $seplocation  ) {
    	global $bp;
    	if( bp_is_user() && ! bp_get_member_user_id() ) {
            $user_id = 'displayed: '. bp_displayed_user_id();
        } else {
            $user_id = 'get_member_user: '. bp_get_member_user_id();
        }
    
    	if (bp_notifications_get_unread_notification_count( $user_id ) ) {
    
    		$counter = 0;
    			for ( $i = 0; $i < count($notifications); $i++ ) {
    				echo $notifications[$i];
    			$counter++;
    			}	
    
    	
    		
    			$title = "You Have " . bp_notifications_get_unread_notification_count() . " New Notification(s) - ";
        
    		return $title;
    	}
    }
    add_filter( 'wp_title', 'bpfr_add_notification_to_page_title', 9, 4 );
    

    Thanks

    screampuff
    Participant

    Thanks for the reply. I made some changes to the code before reading and was able to accomplish removing the tab from buddypress profiles with this:

    function hide_achievements_from_users() {
    global $bp;
    if ((bp_loggedin_user_id() == bp_displayed_user_id()) || (current_user_can('administrator'))){
    return;
    }
    bp_core_remove_nav_item('achievements');
    }
    add_action( 'bp_setup_nav', 'hide_achievements_from_users', 99 );

    However I’m stuck on how to 404 the pages if they manually type out the URL

    In your code I see:

        // I guess we should 404 this page because this member isn't an admin or the displayed member.
        $wp_query->set_404();
        status_header( 404 );
        nocache_headers();

    How do I get this to apply only when it is http://mysite.com/members/<username>/achievements?

Viewing 25 results - 51 through 75 (of 205 total)
Skip to toolbar