Skip to:
Content
Pages
Categories
Search
Top
Bottom

Feature Request: Global rename abilty for the word ”Group.”


  • BlinkyBill01
    Participant

    @blinkybill01

    My BuddyPress site is going to be based on a specific videogame where users of the game can add their “guilds” as groups and have the ability to share information about their guilds.

    My only snag is that the term “groups” might be confusing to some users. So I’ve gone into every php file and renamed (correctly) the word “Groups” and changed it to “Guilds.”

    It worked out well until I had to do an update to BP and it overwrote every change I made to the word “Guild.”

    Is there any chance that in a future update, it might be possible to have an option to rename Groups to whatever you want via BP settings?

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

  • @mercime
    Keymaster

    @mercime

    1. https://codex.buddypress.org/extending-buddypress/changing-internal-configuration-settings/
    Create bp-custom.php and add
    `<?php
    define ( ‘BP_GROUPS_SLUG’, ‘guilds’ );
    ?>`

    2. https://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/

    == Is there any chance that in a future update, it might be possible to have an option to rename Groups to whatever you want via BP settings? ==
    You could add enhancement ticket in BP trac – log in with same username and password https://buddypress.trac.wordpress.org/


    BlinkyBill01
    Participant

    @blinkybill01

    Thanks for that @mercime

    While that changed the Slug name for me, it didn’t change the “name” name.

    I dunno what the actual word for what I’m trying to describe is, so here’s an example:

    When I go to mysite.com/guilds (the slug name I chose for groups), I get the following text:
    “Groups Directory”, “Create a Group” and “Search Groups.” Then there are the other bits of text like “Viewing Group” “Public Group” “My Groups” and “All Groups.”

    I tried addding, in the cp-custom.php, define ( ‘BP_GROUPS_NAME”, ‘Guilds’ ); just in the chance that it would change the name Groups to Guilds. Well, it didn’t work.

    I don’t know if there is a code for that. I looked on the link you provided and it didn’t mention what I’m looking for.


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    You’re either going to have to do a find/replace in your theme, or use a language file to achieve the same; https://codex.buddypress.org/translations/.


    BlinkyBill01
    Participant

    @blinkybill01

    Oh nice. So if I copy my original language file, I can edit the word “Groups” and change it to “Guilds” and it will replace them all? I’ll give it a try tomorrow. Need some sleep so trying now probably isn’t the best idea. :)

    I tried the find/replace before and it made the changes I needed, just that when I updated buddypress it replaced all the files I edited.


    BlinkyBill01
    Participant

    @blinkybill01

    Well, after hours and hours, I’ve gone through and find/replaced what I needed. Seems that RocketTheme’s Gantry-BuddyPress plugin doesn’t use the exact code to call for the language files. It was all written in html.

    I’ve also changed the language files incase they left some of the original BuddyPress code in.

    I am stumped on one thing, and this should be the last I need changed in regards to the design of my site.

    I’ve been able to change the Groups Directory to Guilds Directory as well the majority of Groups to Guilds. The only things that I haven’t found are what the search box on the groups page lists and the part that lists “Public Group / *** member” listed to the right of the group info.

    I’ve gone though every file in Gantry-BuddyPress plugin, and the theme files as well as the BuddyPress plugin folder and I can’t find anything that lists “Search Groups…”, I’ve found “Public Group” in a lot of files and changed them, but after uploading the files the site does not reflect the change.


    BlinkyBill01
    Participant

    @blinkybill01

    I’m looking at this bit from the Gantry-BuddyPress plugin and it shows this:

    bp_group_type();
    bp_group_member_count();

    What BuddyPress files would I find those in?


    BlinkyBill01
    Participant

    @blinkybill01

    Found it. It was listed in the buddypress/bp-goups/bp-groups-template.php

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Feature Request: Global rename abilty for the word ”Group.”’ is closed to new replies.
Skip to toolbar