Skip to:
Content
Pages
Categories
Search
Top
Bottom

Replacing "You cannot reply to this topic"

  • @palmdoc

    Participant

    I am using bbPress and Buddypress.
    My forums are tied in with Buddypress groups.
    If the user has not joined a Group, then he cannot post a reply in the group forum and the message at the bottom of the thread says “You cannot reply to this topic”

    I would like to alter the text string to something more informative like “You cannot reply to this topic unless you Join the Group”

    Can anyone tell me the relevant section in the bbPress plugin which handles this?
    I tried looking but could not find it.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @robin-w

    Moderator

    it is in

    \bbpress\templates\default\bbpress\form-reply.php

    However it would be easiest to change the text using a function which you put in your functions file

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'old text' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    Functions files and child themes – explained !

    @palmdoc

    Participant

    Thanks it worked!

    @robin-w

    Moderator

    great – glad you’re fixed !

    @salcollaziano

    Participant

    What if you want to change two different phrases? I’m trying to play with the code and I can’t get the second phrase to work…

    Sal C.

    edit: Found it:

    Change or Translate Text on a WordPress Theme

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar