Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • couchdavid
    Participant

    @couchdavid

    Still no luck. It’s a real head scratcher as I can’t decipher what some of these hooks mean…


    couchdavid
    Participant

    @couchdavid

    I have also tried leaving the first lines in “edit.php” alone and adding to the bp_get_current_profile_group_id() function. I’m not nearly as smart as I thought I was. Ha!

    function bp_current_profile_group_id() {
    echo bp_get_current_profile_group_id();
    }
    function bp_get_current_profile_group_id() {

    if ( !$profile_group_id = bp_action_variable( 1 ) )
    $profile_group_id = 1;{
    elseif (custom_position (‘Actor’));
    echo ‘Actor’;
    $profile_group_id = 2;{
    elseif ();
    }
    }

    return apply_filters( ‘bp_get_current_profile_group_id’, $profile_group_id ); // admin/profile/edit/[group-id]
    }


    couchdavid
    Participant

    @couchdavid

    Okay, I feel like this one should work, but it’s showing not really making anything happen…

    in my bp-custom file (lifted heavily from John James Jacoby’s informative post here: https://buddypress.org/support/topic/calling-specific-profile-fields-individually/#post-55905):

    http://pastebin.com/UQNYWcax

    In my edit.php file, I replaced “bp_get_current_profile_group_id()” with the custom_position function

    Thanks again!


    couchdavid
    Participant

    @couchdavid

    Putting my IF statement into a function called “position_type”, I thought this could work, but still no dice:

    if ( bp_has_profile( ‘profile_group_id=’ . bp_get_current_profile_group_id(position_type) ) ) :
    while ( bp_profile_groups() ) : bp_the_profile_group();

    Thanks again, everyone.


    couchdavid
    Participant

    @couchdavid

    I’m sure I need to change something in this line from the edit.php to get the desired effect:

    http://pastebin.com/tqWJcbj7

    But I can’t quite figure out what “bp_get_current_profile_group_id” function is *doing* in the xprofile template file. Or what I could do to it to make it behave the way I want it to without ruining its current function…

    Any help is greatly appreciated as always.


    couchdavid
    Participant

    @couchdavid


    couchdavid
    Participant

    @couchdavid

    `

    `
    Trying the code embed again…

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