Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • sx1001
    Participant

    @sx1001

    
    add_shortcode('friendship_requests', function() {
        global $bp;
        add_filter('bp_displayed_user_id', function($id) {
            return bp_loggedin_user_id();
        });
        $bp->current_action = 'requests';
        ob_start();
        bp_get_template_part('members/single/friends');
        return ob_get_clean();
    });
    

    This is a shortcode [friendship_requests] which kind of works.
    But not completely.
    For example the buttons to approve the connection request etc are missing.
    Also I have a plugin with extended friendship request message which can be added to a friendship request – it’s also NOT shown / hooked.

    E.g. in the official Loop / URL:
    loop

    With my Shortcode it looks like:
    shorcode


    sx1001
    Participant

    @sx1001

    Okay, but how to use a variable outside a function and pass it to the callback function?

    I think version 1 is cleaner – BUT: unfortunately to use $members_args, unfortunately I have to change members loop – which I’d like to keep to the original one if possible.


    sx1001
    Participant

    @sx1001

    Unfortunately it doesn’t work either 🙁


    sx1001
    Participant

    @sx1001

    I meant this link here: https://wordpress.org/support/topic/buddypress-profile-change-password-skipped/
    Here someone is complaining about it as well.
    So right now, no solution on the internet 🙁


    sx1001
    Participant

    @sx1001

    See, the plugin doesnt work on “password change” for existing users:
    https://wordpress.org/support/plugin/force-strong-passwords/

    🙁


    sx1001
    Participant

    @sx1001

    Thanks, but it seems, that the BP form to change your profile is somehow altered and not the “original” WP form to change user settings, hence theres no check right now 🙁 Also “Force Strong Passwords” doesnt do anything, I can simply submit a weak password…


    sx1001
    Participant

    @sx1001

    Any ideas to add tags? 🙂 Please!!! Any plugin?

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