Skip to:
Content
Pages
Categories
Search
Top
Bottom

create new bp_core_load_template for profile page.


  • yadigit
    Participant

    @yadigit

    Okay, I’ve been searching all over for an answer. I just can’t seem to ask the question the right way.
    I’ve created a plugin to that simply loads data onto the profile nav.
    using.. (Yes, I know that small piece of code isn’t going to do anything)

    define('BP_DEFAULT_COMPONENT','nav-name');
    function my_bp_nav_adder()
    {
    bp_core_new_nav_item(
    array(
    'name' => __('NAME', 'buddypress'),
    'slug' => 'SLUT',
    'position' => 10,
    'show_for_displayed_user' => true,
    'screen_function' => 'my_hidden_truths',
    'item_css_id' => 'all-conversations',
    'default_subnav_slug' => false
    ));
    print_r($wp_filter);
    }

    function blah_blah_blah() {
    add_action( 'bp_template_title', 'truth_wall_header_title' );
    add_action( 'bp_template_content', 'truth_wall_content' );
    bp_core_load_template( bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ));****
    }

    Right where the *’s are.. I want to be able to change the template to a different dir..
    In other words, some plugins I want them to be able to have the member-header.php TRUE,
    and some other plugins I want them to be FALSE.

    I’m not really sure on how to explain this.
    If you guys need me to explain more just let me know. I hope I was able to explain it well enough.
    Thank you in advance. – Mike.

Viewing 1 replies (of 1 total)

  • yadigit
    Participant

    @yadigit

    Nvm, i got it..
    I took out the code where the *’s are.. and just included the template I wanted to use.
    I should of tried that before asking this question.

Viewing 1 replies (of 1 total)
  • The topic ‘create new bp_core_load_template for profile page.’ is closed to new replies.
Skip to toolbar