BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall Suggestion: You and %s are not friends. Request friendship …

Viewing 7 posts - 1 through 7 (of 7 total)
  • Question

    #39339
    @rdobes

    Hello,

    Right now when you view non-friend’s wall it shows this message: You and %s are not friends. Request friendship to post to their Wall.

    That’s all fine but it doesn’t make much sense if the friends component is disabled.
    Wouldn’t it be best to for the plugin to check if the component is active first and if it isn’t then show something else, like “Viewing %s’s Wall” ?

    Anyway I made that update on my website but it will get overwritten each time the plugin is updated. Would you consider adding this to your next plugin update? Or could you please suggest a safe way of overwriting this using bp-custom.php?

    here’s what I did in the /includes/wall-class.php

    from:

    <div id="message" class="info">
    <p><?php printf( __( "You and %s are not friends. Request friendship to post to their Wall.", 'buddyboss-wall' ), bp_get_displayed_user_fullname() ) ?></p>
    </div>	
    

    To:

    
    <?php if ( !bp_is_active( 'friends' ) ) : ?>
    <div id="message" class="info">
    <p><?php printf( __( "Viewing %s's Wall.", 'buddyboss-wall' ), bp_get_displayed_user_fullname() ) ?></p>
    </div>
    <?php else : ?>
    <div id="message" class="info">
    <p><?php printf( __( "You and %s are not friends. Request friendship to post to their Wall.", 'buddyboss-wall' ), bp_get_displayed_user_fullname() ) ?></p>
    </div>
    <?php endif; ?>
    

    Thanks for this great plugin. I find it very useful.

    Answers

    #39344

    Alyssa
    Participant
    @alyssa-buddyboss

    @rdobes Simple enough of a fix. I’ll send this to the devs. I wouldn’t be surprised if this makes it into the next minor release, but since we just released it may be a few weeks until the next.

    #39346
    @rdobes

    Thanks. I really appreciate it.

    #39394

    Alyssa
    Participant
    @alyssa-buddyboss

    @rdobes in the mean time you can change this using the language file provided with the plugin. There is a slight chance the devs will come back and say that is the procedure but hopefully not 🙂

    #39417
    @rdobes

    thanks for the tip

    #39433

    Alyssa
    Participant
    @alyssa-buddyboss

    No problem 🙂

    #39858

    Anonymous
    @

    @rdobes @tjchester

    This is patched for next release.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The question ‘Suggestion: You and %s are not friends. Request friendship …’ is closed to new replies.