Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'how to hide pages'

Viewing 25 results - 176 through 200 (of 290 total)
  • Author
    Search Results
  • #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

    #132235
    DRAGUIAN
    Member

    OK alternative menu etc is all set up on menus page. I am using the Elbee Elgee child theme at the moment. Do I still have to do the first step of implementing that code in the headers menu (<?php
    // https://codex.wordpress.org/Function_Reference/wp_get_current_user
    $current_user = wp_get_current_user();……

    #132234
    aces
    Participant

    You should make a child of bp-default and backup files and db just in case…

    You don’t add or remove any pages from the code. The point is that it works from the built in wordpress default menu system. ( https://codex.wordpress.org/Navigation_Menus )

    To get the second menu to appear – In your child theme’s functions.php file add:
    `function register_my_menus() {
    register_nav_menus( array(
    ‘primary’ => __( ‘Header Navigation’ ),
    ‘secondary-menu’ => __( ‘Alternative Menu’ ),
    ‘another-menu’ => __( ‘Another Menu’ )
    ) );
    }
    add_action( ‘init’, ‘register_my_menus’ );
    `

    #132233
    DRAGUIAN
    Member

    Which should result in a nonmember/non logged not being able to see my activities page.

    #132232
    DRAGUIAN
    Member

    for example wp_nav_menu( array( ‘container’ => false, ‘100’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ” ) );
    } else {

    #132231
    DRAGUIAN
    Member

    Just buddypress original for now. So in the ‘menu_ID’ do I just replace that with a ‘(then my page ID’ then im guessing a comma, then ‘(page Id)’ right?

    #132229
    aces
    Participant

    You shouldn’t touch wp or bp core files.

    What theme are you using?

    In your child theme’s header.php file you replace the `wp_nav_menu` section with either of the above ( not both ).

    Then you can define two menus on appearance > menus ( primary and secondary-menu on the above example ) Set one for logged in users and one for everyone else.

    #132225
    DRAGUIAN
    Member

    I am guessing that I need to make a change in the wordpress-includes pluggable.php

    #132223
    DRAGUIAN
    Member

    I prefer the first option of serving different menus whether the user is logged in or not. Should I put that code into the themes header or funtion.php? Do I need to add to the given code it to specify which pages I want to hide from logged out users. Using latest version of wordpress and buddypress

    #132195
    aces
    Participant

    One way of doing that is by serving different menus depending whether someone is logged in or not such as
    `
    <?php
    // https://codex.wordpress.org/Function_Reference/wp_get_current_user
    $current_user = wp_get_current_user();
    if ( 0 == $current_user->ID ) {
    wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘secondary-menu’, ‘fallback_cb’ => ” ) );
    // Not logged in.
    } else {
    wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ” ) );
    // Logged in.
    }
    ?>
    `
    or another approach:
    `
    <?php
    if ( is_user_logged_in() ) {
    wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ” ) );
    } else {
    wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘secondary-menu’, ‘fallback_cb’ => ” ) );
    }
    ?>
    `
    replacing the `wp_nav_menu` bit in the ( child ) theme’s header.php file. It may need adapting depending on theme etc. Remember to make backups before editing!

    Then use the walled garden or similar techniques to redirect users if they try to reach the page directly…

    #28597
    DRAGUIAN
    Member

    I want to know how to hide pages from anyone who visits my site that is not a member/logged in. So far if I go onto my site as a ‘non-member’ I can still see the pages ‘activity’ ‘groups’ ‘members’ etc. I would like to know how to make these invisible to anyone not logged on. But obviously visible the second you sign in. By invisible I don’t mean a redirect to homepage/login if someone clicks on the page. But so as you don’t even see the option on the homepage.

    Christian Kramer
    Participant

    Hi,

    I use BP 1.5.5 in a WP 3.3.1 Multisite. BP should be used only in a sub site with a subdomain. All the other sub sites and the primary site should not use BP.
    In the network plugin section the BP-plugin could only activate for the entire WP-installation; I cannot activate it in a specific blog.

    The reasons for deactivating are…
    1) hide the error message “The following active BuddyPress Components do not have associated WordPress Pages: Activity Streams, Discussion Forums, Members.”
    2) prevent wrong sender-ID in notification mails

    Thanks for a hint.
    Chris

    #131024
    aledmann
    Member

    I’m really sorry for dragging up an old thread but I just cannot get this to work! I also want to hide the home tab and make the forum tab default in the group pages.

    I’m running WP 3.3.1 and BuddyPress 1.5.4 and have tried every code on here to no avail! Any help would be huuuugely appreciated!!

    Thank you very much! :)

    myfaith20
    Member

    I would like to remove the last active time (i.e. “active 2 hours, 34 minutes ago”) from groups and members pages all across site. Can anyone please help? I did it before the latest upgrade but I can’t find the previous tutorial on how to do it.

    #130121
    Hugo Ashmore
    Keymaster

    A child theme uses as it’s core the parent theme, it references any template pages you copy over from parent theme to child theme. The child theme files are used in preference to the same named file in parent theme likewise any functions files are read in order of child theme first then parent theme. All you need for a child theme to work is the style.css file with appropriate header block.

    I would follow mercims advise to copy over header.php and simply remove the physical markup or enclose it in php comments, display: none simply hides the visual display but doesn’t remove markup so technically it’s still there.

    aces
    Participant

    On Buddypress > Settings select No for Hide admin bar for logged out users?

    See: https://codex.buddypress.org/getting-started/configure-buddypress-components/#bp-settings

    sheffieldlad
    Member

    hi all.
    My users find it confusing to have 2 menus once they have entered forums page or groups page.
    I’ve added the activity, groups, forums etc pages to my admin bar but I want to hide the top menu on the default buddypress admin theme.

    Can anyone point me in the right direction please?

    Many thanks.

    #128815
    @mercime
    Keymaster

    Pagelines has video about this http://www.pagelines.com/docs/buddypress or get a free forum account there at http://www.pagelines.com/launchpad/signup.php?price_group=-128&product_id=128&hide_paysys=free or do a search in theme’s forums

    There’s also a year-old solution which you might want to check out https://wordpress.org/support/topic/problem-with-buddypress#post-1796598

    #27048
    ZHT3
    Member

    Hey Guy’s,
    I have a problem.
    I Installed Buddypress and start a forum look here

    http://onlysico.eu/forum/

    but if you scroll down you can see Meta Archives and Pages
    How I hide it ?
    I got the same problem under Member and Groups.
    Would be fine if you help me

    Sorry for my school english

    Best Regards,

    ZHT3
    Member

    Hey Guy’s,
    I have a problem.
    I Installed Buddypress and start a forum look here
    http://onlysico.eu/forum/
    but if you scroll down you can see Meta Archives and Pages
    How I hide it ?
    I got the same problem under Member and Groups.
    Would be fine if you help me

    Sorry for my school english

    Best Regards,

    #127837

    Ok good buddy…….I downloaded and installed BP-column, but here’s the strange thing………After the install, BP-column appears in my database, but not in my wordpress dashboard with my other themes. Likewise, bp-default appears in my wordpress dashboard with the rest of my themes, but not in my database.

    I tried doing a custom.php, but I must be doing it wrong because it’s not working either. I used the plugin “hide pages,” which took the pages off the top and cleared the view of my custom header (except for a weird link labeled “home” at the end~ no idea why it’s there or where it came from). Anyway, the problem with the “hide pages” plugin is that it hides the pages from EVERYWHERE, not just the top.

    I figure I can just add the left sidebar and put my pages in there…….or another thought that I had was to figure out a way to remove the “author box” (with my name and all that) and put my pages in where that is instead.

    I’m not sure what would look better, or be the easiest way to go about it……..I’m gladly open to any suggestions you may have……..all I ask is that you take a “for dummies” approach…….lol

    #127484
    aces
    Participant

    I put it in bp-custom-php – actually it also worked in functions.php

    I’m not sure if you want the same functionality. Wrapping in `is_admin` was so that the following lines only worked on the admin pages. `remove_action` shouldn’t be necessary.

    The `define` line tells buddypress to use the wp adminbar. This adds the personal menu under your name like on this page and gets rid of some blank space under the menu bar. It also stops the buddybar being rendered (behind the WP admin bar – see WP bug mentioned above). I can not find a simple way to use the buddybar instead of the wp adminbar on the admin page – but I think that’s the way WordPress wants it to work…

    For the public facing side I have selected Hide admin bar for logged out users? so you only see the buddybar when logged in.

    What are you trying to achieve?

    Hi, Mercime. I am using Salutation by para.llel. us It has been recently revamped for use with Buddypress and I can see that many members seem to be doing fine. I am sure it is something I have done. I have changed only one setting under buddypress and that is ‘hide admin bar for logged out users’. I messed up initially on my pages set-up, so had to go back and re-install bp to get the permalinks working right. Now everything but this section works – it throws me out to google and says it is a broken link:

    Oops! This link appears to be broken.
    Suggestions:
    Go to http://www.­atlantagardening­forum.­com
    Search http://www.atlantagardeningforum.com for members admin settings general

    I will try switching back to bp default and see what happens.

    #26524
    Emily-G
    Member

    I’m currently building a new activity stream layout with a left navigation (facebook style).

    I moved the activity stream tabs (all members, friends, groups ect.) to the left sidebar and since i wanted to leave the styles for the tabs on other pages (such as on the profiles), i renamed the item-list-tabs div class that wraps around the links to <div class="left-tabs and created my styles.

    The links work fine, the ajax correctly loads the page up properly. But now i’m having issues with the loading button and the li.selected styles. It seems to be confused, not realizing that the page is loaded as the loading icon doesn’t hide itself after the page is loaded, and the selected styles doesnt change when i’ve switched tabs – i can select ALL the links on the page (somethings wrong with my styles as simply changing it back to ‘item-list-tabs’ works correctly.)

    I’ve gone through the default styles five times and short of doing a display:none on the loading styles, i dont know what i’m missing.

    Here are the styles i have for the tabs – http://www.pastebucket.com/1243
    If someone has afew spare seconds to let me know what else i may need, i’d really appreciate it. (now i can see why all the themes in the repo here use the default horizontal style navigation :p )

    Here is an image of what happens [JJJ – no IMG shortcodes?]
    http://i41.tinypic.com/2zjkec6.png

Viewing 25 results - 176 through 200 (of 290 total)
Skip to toolbar