Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • @akyleadam

    Member

    bump – can I please get some help?

    @akyleadam

    Member

    bump

    @akyleadam

    Member

    @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);

    @akyleadam

    Member

    @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.

    @akyleadam

    Member

    Does any one have any blog posts, forum topics, wikis, documentation on how to write or over write a buddy press function?

    @akyleadam

    Member

    doesn’t like spam _>” title=”>_>” class=”bbcode_smiley” />

    @akyleadam

    Member

    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.

    @akyleadam

    Member

    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?

    @akyleadam

    Member

    bump….

    @akyleadam

    Member

    An example is when I posted this message I now see: Topic created successfully” – where is that code?

Viewing 10 replies - 1 through 10 (of 10 total)
Skip to toolbar