conkhead
El Presidente
Just Getting Started
Member Likes (0)
Hi: We're building an install using WP 3.2.1 in Multisite mode running BuddyPress 1.2.10. (BTW, before I even get started here: please do *not* suggest/recommend/push for us to upgrade to BP 1.5; under our specific circumstances that is not going to happen anytime soon, let's just leave it at that... :-)
We're playing with the idea of renaming/rebranding BuddyPress groups as "channels". But this would not be as simple as you might think: in addition to running search-and-replaces for the printout of the word "group/Group" in the whole script (being very careful not to rename the *functions* named "group" or "groups", mind out, as that would probably cause havoc with other plugins - just sorting this one issue out alone would be a huge pain in the ass), then we'd have to track the same thing down in all the group-related plugins we're using as well. Not my idea of a good time (would much rather watch Premiere League on Fox Soccer - LOVE the Wayne Rooney!!! :-)
I know that there are several plugins that will do global search-and-replace in the Multisite dashboard (we are currently using the fine WPMUDEV one, thank you!); but is there a plugin available that will let us do a global search-replace to our *entire* BP front-end? And if not, is there a PHP gearhead here who could supply me with a little script that we could maybe stick in our functions.php file that would get the job done? Do tell, all ye BP gods... My thanks in advance --

Responses (3)
WPMU DEV Fanatic (joined October 2009) Likes (0)
Hi conkhead,
Good question, and I only somewhat recently learned about this one, Real-time Find and Replace:
http://wordpress.org/extend/plugins/real-time-find-and-replace/
It's worked in my initial tests, though I didn't go into detail with it. I imagine it should work though as it attempts to alter the final output from WordPress.
Just to mention too, in case you're not aware, you can change the url slug of components too, as mentioned in the following from the wpmu.org blog:
http://wpmu.org/daily-tip-customize-the-url-slugs-of-buddypress-components/
And come to think about it, the following article from the blog might just sort this all for you without the need for a plugin:
http://wpmu.org/basic-guide-to-creating-a-buddypress-language-file-for-sitewide-label-and-message-editing/
-David
Member (joined July 2011) Likes (0)
Thanks again, David, for all the good work you do. What you suggested is exactly what I needed. (You even got around to answering my second question: How do I easily change the groups slug?) So I installed the Real-Time Search and Replace Plugin. Problem: On my install, it simply doesn't work - installs fine, but just doesn't change anything like it's supposed to (I accounted for browser cache, BTW; and don't have any WP server cache installed yet). (I don't think I'm the first person who's had this problem: In the changelog for the current version it says, "Confirm[s] that plugin works fine with WordPress 3.2 despite reports to the contrary". Well, I report to the contrary... )
So I'm going to try your second option, changing the language .pot file - a little more work, but probably the cleaner, better way anyway. Little question about that: in my version of BP (1.2.10) all the msgstr strings are blank; that's because they're the same as the msgid strings unless/until changed, right?
This will take me awhile. I'll report back on results. Thanks again --
Member (joined July 2011) Likes (0)
David: I changed the .pot file per your instructions, and it all worked perfectly. (Only hitch: for some reason bash on my server did not recognize the "msgfmt" command; so I downloaded the PoEdit software and compiled the .mo file on my desktop.)
Now all the groups on our site are called "channels", and it worked everywhere it's supposed to. (I still have to track down the word "group" in a few third-party plugins; but I will edit those files directly.) And using the wp-config file I also changed the group slug to "channels", so everything is now simpatico. Thanks again for your help.
Become a member