Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'how to hide pages'

Viewing 25 results - 101 through 125 (of 205 total)
  • Author
    Search Results
  • #153645
    findly01
    Participant

    Thanks for the link

    Any idea how to change the link in the navigation from ‘Members’ to ‘Your Profile’, so the user doesn’t have to trawl through profiles each time?

    Also, how can I hide the Activity pages etc. until the user loggs in?

    #152779
    Florence
    Participant

    Ahh, I wanted to achieve something like this as well. Like you, I’m using S2members (which I absolutely love – lets you hide/text menu items, text, posts, pages, downloadable content ect based on user role).

    This is what I’ve done: For the registration process I’m using BAW invitation codes. Users need to register for a health course (using Event Espresso), and in the confirmation email they recieve an invitation code they can use to log in and access course materials.

    #151497
    transmission
    Participant

    Thanks for all the help. Fixed it now, I had missunderstood and had my pages set-up wrong. Thanks again.

    http://www.ridetromso.com

    danbpfr
    Participant

    Go to your admin > Pages and delete the register and empty the trash

    Do the same if you have a Login page.

    Then go to settings > buddypress.

    – Tab Component and check the one you want.

    – Tab Pages and create a page from there for each component.

    Save.

    Now BP is correctly configured.

    Check also settings > permalinks and choose something other as default.

    If you created some custom menus before installing BP, double check them to have the new pages.

    Done !

    #149207
    Hugo Ashmore
    Participant

    Doesn’t look neat

     

    Really? Please explain. If you mean that they display on all pages that’s what they are meant to do, if you are building your site using WP pages for everything I suggest you copy page.php rename it page-plain.php give it template headers so it’s selectable in the create page view and then strip out all but the content loop .

    #149192
    saukgp
    Participant

    @mercime thank you for replying, please check the page, http://eragenx.com and also other pages like http://eragenx.com/faq etc, date and permalink is being displayed on all pages. I am using chrome browser, infact, the result is same with opera or safari.

    #148940
    Michael4fm
    Participant

    Just thought I’d add another suggestion – there’s a plugin called Member Access (http://www.chrisabernethy.com/wordpress-plugins/member-access/) which controls access to pages based on whether a visitor is logged in or not. I’m using it successfully on a BuddyPress site. I think you’d have to disable access to the “Member Directory” page as well for it to work ‘out of the box’, but with some php tweaking  you may be able to have the directory page show but restrict access to more detailed profile information.

    #148316
    ckchaudhary
    Participant

    @Chouf1 thanks. works like a charm.
    Since i didn’t want anything (even the avatar image) to be displayed to non-logged in users, i added the code in home.php instead (and plugins.php, since i have 2-3 custom pages added to users profile).

    Many thanks.

    #145524
    drill_sgt.lewis
    Participant

    Another simpler approach would be to created a bp-custom.php and place it in the plugins directory and add the following code
    `<?php
    function bp_guest_redirect() {
    global $bp;
    if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
    // enter the slug or component conditional here
    if(!is_user_logged_in()) { // not logged in user
    wp_redirect( get_option(‘siteurl’) . ‘/register’ );
    } // user will be redirect to any link to want
    }
    }
    add_filter(‘get_header’,’bp_guest_redirect’,1);
    ?>`
    This code will work to hide buddypress pages and group forums as is, if your using sitewide forums in line 4 remove the comments around:
    || bbp_is_single_forum()
    Save and refresh. Works in current versions.

    #144902
    aaclayton
    Member

    Hey @candeed, thanks for the compliment! I’ve worked hard to integrate BP into my theme as naturally as possible and to keep pages lightweight. However, I would definitely benefit from the advice and collaboration of someone who has more development experience. I hide it pretty well through constant research and lots of hard work, but I’m actually still a huge noob when it comes to this stuff. If you have any friends who are experienced developers and interested in ESO I would definitely like to get a chance to talk to them.

    #139846
    tvanes
    Participant

    Sigh, I can’t get member-access to work, and can’t believe there isn’t an easier way to restrict pages to members/non-members. In my case I’d like to restrict the member listing page to members only. Was hoping to find some non-hacks here. I’ll keep looking but this appears to require code changes…

    #139432
    @mercime
    Participant

    @mairaj know that if user disables styles in browser, they will see the search form. But should you still want to proceed with your method, these two lines should do it via CSS

    `/* Hide search form in ALL pages */
    #search-form { display: none; }

    /* Then show search form on this page only (change page ID to your installation’s page ID) */
    body.page-id-25 #search-form { display: block; }`
    You might have to add some width or float after display block depending on how you’ve styled the child theme.

    #139349

    @formbi,The simplest way without code edit or plugin is to use css to hide it. look for the page ID and write something like: .page-item-78{ display: none ! important;} where 78 is your page ID you can hide as may pages as you want by adding a coma

    #136931
    billzy
    Participant

    I took a different approach to this that worked… I was looking to hide content from people who are not friends… In any pages that friends are not connected I did this..

    ?php if ( bp_is_friend() != ‘is_friend’ ) {
    if (bp_current_user_id() != bp_loggedin_user_id()):
    locate_template( array( ‘members/single/not-friends.php’), true )
    endif;
    }
    php if (bp_current_user_id() == bp_loggedin_user_id() || ( bp_is_friend() == ‘is_friend’ ) ): ?>
    // add page content for friends
    ?php endif; ?>

    for groups you can do the similar with bp_group_is_member()

    naturally you would need to create;
    members/single/not-friends.php

    but this way you take away the permissions settings from your users and control them yourself with your theme…. With a little bit of configuring you can do the same with users who are not logged in.

    Hope this helps…

    Cheers

    #135545
    Mqlte
    Participant

    Okay, at least you can “hide” or remove the sidebar with some CSS:

    /*Hide sidebar*/
    #sidebar { display:none !important; }
    /*Full-width posts and pages*/
    #custom, #container, #post-entry {width:100% !important;}
    /*Full-width BP components*/
    #custom #container #content {width:100% !important;}
    #custom #container .padder, #custom .directory #container .padder {width: 96% !important; padding:0 2%;}

    Source: http://premium.wpmudev.org/forums/topic/buddy-press-sidebar-on-some-pages

    Regards

    #135511

    I have tried to push ahead and test the install on a test site, I followed these steps:

    1. Installed WordPress on main site – mainsite.net
    2. Installed and setup WP Multi Network
    3. Created my child sites – site1.mainsite.net, site2.mainsite.net, site3.mainsite.net etc – all works fine
    4. Installed Buddypress on mainsite.net (network install, couldn’t install on child sites which was expected)

    At this stage I noticed the mainsite.net had buddy press (I figure I can hide the bits on this site if I don’t want to have social networking on the main site) .. but I also noticed the sub sites have buddypress but just linking back to the mainsite, they are not social networks in there own right, each separate, which is what I need…. so

    5. I installed BP Multi Network – to have separate networks

    This didn’t do what I expected, the sites still all appear to link from the main site, the sub sites do not have pages for:
    Activity
    Blogs
    Groups
    Members

    I could create these but they will all go back to the main site, they need to be site specific, separate for each site…. which is what I expected BP Multisite to do..?

    Any ideas?

    I can put up with buddypress on the main site, although I hoped not to have so I could have a good newspaper/magazine theme on the main site, but if thats the only way to have all the user databases connected I can hide what I need to.

    Any help please?

    #135449
    Hugo Ashmore
    Participant

    which makes it look unprofessional

    Really? considering BP is developed by professional web developers that’s a sightly surprising statement to be making.

    The titles you refer to on pages such as ‘Forums’, ‘Groups’, ‘Activity’ are heading tags, h# tags are a semantic tag that defines the document outline there are six levels and you use them to assign document section headings, these tags are mandatory and it’s very unprofessional not to have them so take care in removing them and also remember that search engines look for and use these tags for index information.

    If you are removing these tags then you need to locate these sorts of lines in your index files `

    ` and simply delete them, this is basic level stuff so as an IT literate person should be within your means as it’s simple editing of text files but it is going to help you enormously to learn some absolute basics where CSS and HTML are concerned.

    Lastly you are going to need to make these changes in a child theme otherwise whenever you upgrade your changes will be overwritten, a clear step by step guide to setting up a child theme can be found in the BP codex.

    #135446
    @mercime
    Participant

    == currently all pages display the page name ==

    Just so we’re on the same page, could you go to http://testbp.org/ and post URL’s of pages with titles you are referring to here?

    #135425
    tibbles
    Member

    Theme is: BuddyPress Default

    When clicking on a tab of the menu – (not blog posts) currently all pages display the page name – which makes it look unprofessional. The contents of the page clearly indicate what the page should be – no need for a display of the page name. How does one ‘hide’ this? If deleting it is too complex for me then I’ll settle for just hiding the name.

    Thank you for the response.

    @mercime
    Participant

    == but doesn’t hide the tabs. ==

    You mean hide the main navigation links to the BuddyPress pages?

    #132550
    Mary Jane
    Member

    I do that on jbsocial.com using the following plugins

    Member Access
    PC Hide Pages
    Peter’s Login Redirect
    Simple Access Control

    #132241
    DRAGUIAN
    Member

    Yes, it finally works. Thank you so much for that! I do have more questions, but i’ll leave that for another day. Feel guilty constantly asking. But yea good advice, thanks again.

    #132239
    aces
    Participant

    You need to create both menus. Without it wordpress has it’s own default menu which you have been relying on

    A good guide for understanding wordpress menus is http://justintadlock.com/archives/2010/06/01/goodbye-headaches-hello-menus

    #132238
    DRAGUIAN
    Member

    It’s frustrating because that’s almost it. I leave the Header navigation as blank because my buddypress/wordpress pages automatically fill in that menu. So when I am logged in all the pages I want to see are there. I only made my homepage and about page available to the nonmembers, and that works fine too. However, when a user is logged off, they can still see all the pages available to a logged in user aswell as the pages which are available to them. So instead of having one smooth menu for the non member, theres the members menu and below it a non members menu. Note this is only for logged out members everything is fine as far as signed in users are concerned.

    #132236
    aces
    Participant

    Yes!

    Which menu is served depends on whether they are logged in or not and that is the point to decide…

    and please use backticks ` ` ` when quoting code

Viewing 25 results - 101 through 125 (of 205 total)
Skip to toolbar