Skip to:
Content
Pages
Categories
Search
Top
Bottom

Members Directory – Change Friends to Contacts


  • Shnooka30
    Participant

    @shnooka30

    Im stuck on this

    The Member Directory that shows all members shows “Add Friend” or “Remove Friend”. buttons…..http://testbp.org/members

    I want to change these to say Add Contact and Remove Contact.

    Ive re-worded the buttons in the images folder to say Add Contact and Remove Contact and they show correctly in other links in the BP Profile but there still not showing on the main members directory page.

    Does anyone know how to change the wording from Friends to Contacts?

    Im thinking that these may not be the same buttons in the BP Images or may not even be buttons at all.

    Its very strange.

    Any help or guidance would be awesome

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

  • Jeff Sayre
    Participant

    @jeffsayre

    The “Add Friend” and “Cancel Friendship” buttons (as well as the “Friendship Requested”) are all controlled by bp_add_friend_button() in bp-friends-templatetags.php.

    Just be aware that if you modify this code your changes will be lost the next time you upgrade.


    allenweiss
    Participant

    @allenweiss

    We changed them on our site. Basically you go into the plugins/buddypress/bp-languages folder and get the BuddyPress.mo file. Then use a program called Poedit (you can search the web for this), and use it open the BuddyPress.mo file. You can then change the language in that program. When you save the file with a name, say TEMP and it will also save a TEMP.po file. Put that back into the bp-languages folder. Then add a new bp-custom.php file into your plugins folder and put this code in it:

    define( ‘BPLANG’, ‘TEMP’ );

    if ( file_exists( BP_PLUGIN_DIR . ‘/bp-languages/buddypress-‘ . BPLANG . ‘.mo’ ) ) {

    load_textdomain( ‘buddypress’, BP_PLUGIN_DIR . ‘/bp-languages/buddypress-‘ . BPLANG . ‘.mo’ );

    }

    Change the name TEMP in the above code to whatever you called the po file.

    That should do it.


    Shnooka30
    Participant

    @shnooka30

    Thanks Jeff, It was a easy fix


    allenweiss
    Participant

    @allenweiss

    if you use my method, your changes won’t be lost when you upgrade

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Members Directory – Change Friends to Contacts’ is closed to new replies.
Skip to toolbar