Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • nsbrown
    Participant

    @64tees

    I’ve had to another route, I’m trying to add a logged in users nav into all pages, I can do this by adding this code to my page template:

    <div class=”left-nav”>
    <?php bp_get_displayed_user_nav(); ?>
    <?php do_action( ‘bp_get_options_nav’ ); ?>
    </div>

    But all the links then rendered are relative it doesn’t work, is there a way of making this work globally?


    nsbrown
    Participant

    @64tees

    I managed to fix this, basically the page template needs to be in your buddypress directory inside your theme. /your_theme/buddypress/page.php


    nsbrown
    Participant

    @64tees

    It’s a theme, I just thought a plugin might have this code, I will try place that in the header.php

    Cheers


    nsbrown
    Participant

    @64tees

    I see, thanks for the info guys!


    nsbrown
    Participant

    @64tees

    If I create a bp-custom.php in my theme directory will it work then??


    nsbrown
    Participant

    @64tees

    I need it in my theme though, so when I distribute it the file will reset the original function


    nsbrown
    Participant

    @64tees

    Tried pasting the function int my themes functions.php but no joy, hm..


    nsbrown
    Participant

    @64tees

    Ok I will have a go, I’ll post back my results, cheers!


    nsbrown
    Participant

    @64tees

    Thats how I’ve worked it in the example, but I have to go into plugins/buddypress/ directory to edit that, I want to know if I can copy those parameters over to my functions.php and overwrite the core buddypress ones.

    Know what I mean? I have other functions/declarations that I would like to overwrite, this is just one example


    nsbrown
    Participant

    @64tees

    It defines the sizes of the avatars, large and medium, I’ve set medium to be slightly larger than the original. But I don’t like modifying the core.

Viewing 10 replies - 1 through 10 (of 10 total)
Skip to toolbar