@mercime also your example failed. I keep all functions I write in a separate folder in a lib folder, and called that custom function via: include_once(TEMPLATEPATH . ‘lib/CustomFunctions/DisplayMessage.php’);
How ever the message is un changed (the message I was cheking for was: The topic was created successfully
and I testing by changing to: I am changed.
This is the ode:
class translator
{
function filter_gettext($translation, $text, $domain)
{
$translations = $get_translations_for_domain($domain);
if( $text == ‘The topic was created successfully’)
{
return $translations->translate(‘I am changed’);
}
Was going to post this in the SI Captcha forum, but I can’t get into the plugin on BP at the moment.
I’m getting a weird error with Buddypress 2.9.2 and WP 3.2. I didn’t notice this when I upgraded to 2.9.2, because I didn’t check the registrations page… nobody signed up for a couple of days and I figured something was wrong…
Here is the error I get after the Captcha is inputted:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /home/musicpln/public_html/wp-includes/plugin.php on line 405
Here is the code in plugin.php -LINE 405 is noted…
do {
foreach ( (array) current($wp_filter[$tag]) as $the_ )
if ( !is_null($the_) )
call_user_func_array($the_, array_slice($args, 0, (int) $the_)); //THIS IS LINE 405
When the page loads after you hit submit you are greeted with the success or error message (on any thing you do such as saving, editing…what ever) What i want is to take that text out, replace it with a java script pop up – so when the page loads to show you your new topi that pop up displays to say what ever message i gave it for error or success. I have a nice android based notification popup to do this so it will not be obtrusive.
Buddypress is only accessible to members on my site and I am concerned that if I let the “Public Group” phrase stay under the group name on the group admin page that members will get confused and think buddypress is open to non-members.
Do you know which file I need to go into to remove this phrase from being seen. Please note though, don’t actually want to change the public setting just the phrase from appearing.
Am running multisite
Have bp on blog 2 define ( ‘BP_ROOT_BLOG’, 2 ); in wp-config
the tab ‘Pages’ in Dashboard > BuddyPress > Components on blog 2 has no mention of a blogs directory
earlier in the Dashboard Network admin there was a warning
“Some of your WordPress pages are linked to BuddyPress Components that are disabled: ok, one ore time. Repair” pressed button . this seemed to redirect me to BuddyPress Components on blog 1 which had the same set-up in the tab ‘Pages’
(i did have 1.29 on this site)
Directories
Associate a WordPress Page with each BuddyPress component directory.
Activity Streams
Discussion Forums
User Groups
Members
then registration.
no mention of a Blog Directory ?
(just posted from another blog (id8) and it was picked up by the activity stream)
If this is not replicated in your setups then i must have installed incorrectly and thats ok please say so as i don’t want to waste your time.
just testing this out the version im using is trunk 4932
In the set-up page tab ‘Pages’ there is the following:-
Directories
Associate a WordPress Page with each BuddyPress component directory.
Activity Streams
Discussion Forums
User Groups
Members
then registration.
In previous versions of BP there also was a blog directory with a list of members’ blogs/sites and a visit blog button.
Is this an omission -deliberate or otherwise- or have I installed incorrectly (again) ?
@n_sane I had the same issue. A quick check of the wp database showed new users were being created with user level 2, which, in this case, means that they have not confirmed their registration. Also I realized i had not received any of my dummy account registration conf. emails.
I found a workaround for this by changing the user status to 0 in the wp_core_startup file, but that was an inadvisable way of fixing the issue since it totally deactivated the email registration system, which i really don’t didn’t want to bypass, and that file will get overwritten in any bp update.
The fix was to install the ‘Mail From’ plugin by andrew hamilton. this apparently allows the registration emails to go out, and then user_status and registration can be handled the way it was designed to. I’m hosted with bluehost and have a hunch their mail system isn’t playing nice with bp and this plugin seems to allow it to do that.
Just wondering if anyone has dev’d anything that adds foursquare-like behavior to BuddyPress. I’d imagine you could have CPTs for places or whatever you’re checking into, and then users could check into the location and it would post to their activity.
I’m sure it wouldn’t be hard to code a basic thing like this myself, but just wondering if anything’s out there already / in development.
@akyleadam what you’re trying to change was the text string “Topic created successfully” into e.g. “when submit is liked if the post was successful – do this instead of that” and the links I gave could do that.
Take the first link, instead of creating a plugin, you can add this to your active theme’s functions.php – replacing the text string in that post to your own:
`class PJW_Translation_Mangler {
/**
* Filter the translation string before it is displayed.
*
* @param $translation The current translation
* @param $text The text being translated
* @param $context The context for the translation
* @param $domain The domain for the translation
* @return string The translated / filtered text.
*/
function filter_gettext($translation, $text, $domain) {
$translations = &get_translations_for_domain( $domain );
if ( $text == ‘Topic created successfully’ ) {
return $translations->translate( ‘when submit is liked if the post was successful – do this instead of that’ );
}
return $translation;
}
}
add_filter(‘gettext’, array(‘PJW_Translation_Mangler’, ‘filter_gettext’), 10, 4);`
You see where I’ve substituted you own terms with that of the code given by Westi
0.2 now you have to change the bp_directory_members_search_form() function with uloga_directory_search_form( $directory ) ,replace $directory for example with “Members”
or “Groups” ,etc.
Hi I’m building a website for horse lovers. Im having some problems wyth adding some add’ons and locating it. First what I need:
1) A Business Directory where user’s can found and add the Company info. For stables, shops etc. for adding information and adding also groups. The Admin is making groups and users can add in this groups some place info, address showing on google map, maby some photos of place, website and info write there.
2) Add a horse, user can add his horse info wyth photos also can check the other users horses is there something to make for horse users horse catalog ?
3) Classifieds for buy / sell horses etc.
4) I installed the BP Album+ but can’t access the Albums page. I don’t know how to make it work.
5) Is there phpBB3 integration for BP ?? I would like to install phpBB3 insted of BP forums.