BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › Suggestion: You and %s are not friends. Request friendship …
- This topic has 6 replies, 3 contibutors, and was last updated 9 years, 6 months ago by Anonymous.
Question
April 24, 2015 at 2:02 pm #39339@rdobesHello,
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
April 24, 2015 at 2:16 pm #39344@alyssa-buddyboss
AlyssaParticipant@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.
April 24, 2015 at 2:18 pm #39346@rdobesThanks. I really appreciate it.
April 25, 2015 at 12:13 pm #39394@alyssa-buddyboss
AlyssaParticipant@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 🙂
April 25, 2015 at 10:10 pm #39417@rdobesthanks for the tip
April 26, 2015 at 9:21 am #39433@alyssa-buddyboss
AlyssaParticipantNo problem 🙂
May 5, 2015 at 10:52 pm #39858@
Anonymous@rdobes @tjchester
This is patched for next release.
- The question ‘Suggestion: You and %s are not friends. Request friendship …’ is closed to new replies.