This topic has 4 replies, 2 voices, and was last updated 11 years by Abe.

  • Author
  • #38983
     lovewp
    Participant

    @sharmstr Can you please tell me what files this typo is in, I’ve seen a couple now with the same typo “Oh bother! No topics were found here!”

    Thanks, I’m sure this has been asked before, I did search, It came back with a ton of results, better to just ask, thanks again

    #39027
     lovewp
    Participant

    @sharmstr this doesn’t look like a valid answer.. can you please help me out. thank you.

    // Message replacement function
    function youruniqueprefix_filter_gettext( $translated, $original, $domain ) {
    //get topic title to supress unwated string later
    //$topic_title = bp_get_the_topic_title();

    // This is an array of original strings
    // and what they should be replaced with

    $strings = array(
    ‘Oh bother! No topics were found here!’ => ‘Select one of the topics above to participate.’,
    ‘The forum ‘%s’ is closed to new topics and replies.’=>”,
    // ‘You must be logged in to create new topics.’ => ‘Please ‘ . ‘Log In‘; . ‘ to create new topics.’,
    //Add some more strings here,
    );

    // See if the current string is in the $strings array
    // If so, replace it’s translation
    if ( isset( $strings[$original] ) ) {
    // This accomplishes the same thing as __()
    // but without running it through the filter again
    $translations = &get_translations_for_domain( $domain );
    $translated = $translations->translate( $strings[$original] );
    }

    return $translated;
    }

    add_filter( ‘gettext’, ‘youruniqueprefix_filter_gettext’, 10, 3 );

    // message replacement function ends

    #39616
     Abe
    Keymaster

    Hi, that comes from bbPress plugin. the file is located here: wp-content/themes/kleo/bbpress/feedback-no-forums.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #39639
     lovewp
    Participant

    @Abe I found the file above and fixed the error, there is still one more page(attached) that contains the same error.

    #39694
     Abe
    Keymaster

    From that screenshot I definitely can’t guess what page is it on. You can do a search in bbpress files for the string to find it

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 5 posts - 1 through 5 (of 5 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?