Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove: bbp-template-notice info


  • shughey
    Participant

    @shughey

    Can the bbp-template-notice info be removed and if so, how? It, and other notices, are just too much ‘stuff’ to have to look at.

    Thanks,
    Sam Hughey

Viewing 4 replies - 1 through 4 (of 4 total)

  • Robin W
    Moderator

    @robin-w

    Apologies but I’m being stupid, but can you explain or give an example of what you mean by bbp-template-notice info ?


    shughey
    Participant

    @shughey

    These notices:

    • This topic contains 0 replies, has 1 voice, and was last updated by Avatar of Sam Hughey Sam Hughey June 10, 2014 at 8:32 PM.
    • Your account has the ability to post unrestricted HTML content.
    • Oh bother! No topics were found here!

    Sorry, I should have been clearer.


    Robin W
    Moderator

    @robin-w

    ok, you’ll need to add the following to your functions file

    //this function removes the "this topic contains..." and "this forum contains..."  text
    function no_description ($retstr) {
    $retstr="" ;
    return $retstr ;
    }
    
    add_filter ('bbp_get_single_topic_description', 'no_description' ) ;
    add_filter ('bbp_get_single_forum_description', 'no_description' ) ;
    
    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Your account has the ability to post unrestricted HTML content.' ) {
    	$translated_text = '';
    	}
    	if ( $translated_text == 'Oh bother! No topics were found here!' ) {
    	$translated_text = '';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    TheDarkboy
    Participant

    @thedarkboy

    who are page for apply your change code?

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.