Skip to:
Content
Pages
Categories
Search
Top
Bottom

Understanding Members, Groups and Blogs pages i navigation


  • Ezd
    Participant

    @ezd

    Hi,

    Is the Members, Groups and Blogs pages in the navigtion just bp-member pages? Im trying to figure out how they are created and works. In the theme folder they have their own folders under “directories”. In header.php in the bp-home theme and bp-member theme they are inserted with these codes:

    <div id="header">
    <h1 id="logo"><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></a></h1>

    <ul id="nav">
    <li<?php if ( bp_is_page( 'home' ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?></a></li>
    <li<?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php bp_home_blog_url() ?>" title="<?php _e( 'Blog', 'buddypress' ) ?>"><?php _e( 'Blog', 'buddypress' ) ?></a></li>
    <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_MEMBERS_SLUG ?>" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a></li>

    <?php if ( function_exists( 'groups_install' ) ) { ?>
    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_GROUPS_SLUG ?>" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a></li>
    <?php } ?>

    <?php if ( function_exists( 'bp_blogs_install' ) ) { ?>
    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) {?> class="selected"<?php } ?>><a href="<?php echo get_option('home') ?>/<?php echo BP_BLOGS_SLUG ?>" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a></li>
    <?php } ?>

    <?php do_action( 'bp_nav_items' ); ?>
    </ul>
    </div>

    How do i create pages like Members, Groups & Blogs? With own BP_SLUGS ect. Saying I wanted to make a copy of the the Members page, give it a different name in the navigation and a new layout on the page. How would I do that?

Viewing 4 replies - 1 through 4 (of 4 total)

  • Ezd
    Participant

    @ezd

    What im interested in is actually 2 things:

    – Understanding how these 3 pages works in general. Do they belong to the bp-member or bp-home theme or both.

    – Figuring out how I create a copy of lets say the Member page, then give that page an entire new name/slug.


    Ezd
    Participant

    @ezd

    Just pinging this back to the top in case somebody knows. :)


    developdesign
    Participant

    @developdesign

    Good question. It would be great if there was documentation on how the BP coding works.

    Like what “bp_is_page” means or where “BP_HOME_BLOG_SLUG” comes from.


    r-a-y
    Keymaster

    @r-a-y

    – Understanding how these 3 pages works in general. Do they belong to the bp-member or bp-home theme or both.

    They are styled in the bpmember theme, which is a BuddyPress theme.

    The bphome theme is a WordPress theme.

    – Figuring out how I create a copy of lets say the Member page, then give that page an entire new name/slug.

    Not sure about creating interior BP pages… I know certain BP plugins create their own slug and pages (eg. bpEvents, bpContents).

    But depending on what type of page you are planning on creating, I would just create a new page in WP and assign a WP page template that is setup almost identical to the bpmember component in question. This would be the easiest route if you want total control of the page.

    However, before you do, you might want to consult with a mod who has more experience with BP than I do! :)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Understanding Members, Groups and Blogs pages i navigation’ is closed to new replies.
Skip to toolbar