Forum Replies Created
-
In reply to: How would I?
bump – can I please get some help?
In reply to: How would I?bump
In reply to: How would I?@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’);
}return $translation;
}
}add_filter(‘gettext’, array(‘translator’, ‘filter_gettext’), 10, 4);
In reply to: How would I?@mercime except what I want is:
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.
This is my end game.
In reply to: How would I?Does any one have any blog posts, forum topics, wikis, documentation on how to write or over write a buddy press function?
In reply to: How would I?doesn’t like spam
_>” title=”>_>” class=”bbcode_smiley” />In reply to: How would I?oh no – the plugin in one would be better as I need to over right the method to not display a message but instead a java script popup that I am interested in testing. But I have never developed a plugin and I wanted to build it right into the theme instead of having a separate plugin.
In reply to: How would I?damn that’s all bp core stuff. Is there no way to over ride this in a theme? like to say “when submit is liked if the post was successful – do this instead of that” in a theme?
In reply to: How would I?bump….
In reply to: How would I?An example is when I posted this message I now see: Topic created successfully” – where is that code?