Skip to:
Content
Pages
Categories
Search
Top
Bottom

Block User


  • batmanfan
    Participant

    @batmanfan

    When admin selects a user and checks ‘block’ on Forum Role. Therefore user can’t post/reply to topic, it shows this message “You cannot reply to this topic” Can this message be modified to something like ‘You have been blocked, please confirm admin’?

Viewing 1 replies (of 1 total)

  • Robin W
    Moderator

    @robin-w

    It could with some coding, but this message probably applies to many situations eg not logged in

    Try this in your function file

    //This function changes oldtext to newtext
    function rchange_translate_text( $translated_text ) {
    	if ( $translated_text == 'oldtext' ) {
    	$translated_text = 'newtext'];
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'rchange_translate_text', 20 );
    

    where old text is the old text, and new text the new.

    If you have more than one of these functions (seem to think I have given you this solution for another part), then just make sure the function name is unique eg this ones called rchange… so next time maybe call it schange… and change it in first and last lines to match.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.