Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • dimmez

    (@dimmez)

    Hi!
    I have same problem. It’s because only captcha output is disabled in the settings but the filter is working. You can fix it. Problem in the class-core.php file (lines 56-64) in plugin “/includes” folder. You need to replace these lines with the following:

    // comments
    if ( Math_Captcha()->options['general']['enable_for']['comment_form'] ) {
    	if ( ! is_user_logged_in() ) {
    		dd_action( 'comment_form_after_fields', array( $this, 'add_captcha_form' ) );
    		add_filter( 'preprocess_comment', array( $this, 'add_comment_with_captcha' ) );
    	} else {
    		if ( ! Math_Captcha()->options['general']['hide_for_logged_users'] ) {
    			add_action( 'comment_form_logged_in_after', array( $this, 'add_captcha_form' ) );
    			add_filter( 'preprocess_comment', array( $this, 'add_comment_with_captcha' ) );
    		}
    	}
    }
    Thread Starter dimmez

    (@dimmez)

    Yes, now everything works great with Russian alphabetical characters! Thanks so much!

    Site, where there was a problem, used the “Ashe” theme by wp-royal.com. In this theme the output of text content is performed by non-standard WordPress functions with partial use of js scripts for text decoration. I tried 5 different plug-ins that have highlighting the search query function, but only your plug-in is working fine.

    Thread Starter dimmez

    (@dimmez)

    I solved this problem. I just added a map of the Russian alphabet characters to variable “charToAccentedCharClassMap”. Now the selection is not case sensitive.

    var charToAccentedCharClassMap = {
    /*
     * Maps for Russian alphabetical Uper & Lower case character.
     */
    '\u0410':'[\u0410\u0430]','\u0411':'[\u0411\u0431]','\u0412':'[\u0412\u0432]','\u0413':'[\u0413\u0433]','\u0414':'[\u0414\u0434]','\u0415':'[\u0415\u0435]','\u0401':'[\u0401\u0451]','\u0416':'[\u0416\u0436]','\u0417':'[\u0417\u0437]','\u0418':'[\u0418\u0438]','\u0419':'[\u0419\u0439]','\u041A':'[\u041A\u043A]','\u041B':'[\u041B\u043B]','\u041C':'[\u041C\u043C]','\u041D':'[\u041D\u043D]','\u041E':'[\u041E\u043E]','\u041F':'[\u041F\u043F]','\u0420':'[\u0420\u0440]','\u0421':'[\u0421\u0441]','\u0422':'[\u0422\u0442]','\u0423':'[\u0423\u0443]','\u0424':'[\u0424\u0444]','\u0425':'[\u0425\u0445]','\u0426':'[\u0426\u0446]','\u0427':'[\u0427\u0447]','\u0428':'[\u0428\u0448]','\u0429':'[\u0429\u0449]','\u042A':'[\u042A\u044A]','\u042B':'[\u042B\u044B]','\u042C':'[\u042C\u044C]','\u042D':'[\u042D\u044D]','\u042E':'[\u042E\u044E]','\u042F':'[\u042F\u044F]'
    };

    Picture

    Thanks for the nice plugin.

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