Support » Plugin: CM Answers » Problem with CM Answer when posting Coding in it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author CreativeMinds

    (@creativemindssolutions)

    We have removed code suppor from regular plugin and now only support this in pro plugin. For SyntaxHighlighter you can remove text filtering so everything will padd throught

    Look for wp_kses function in /lib/models/AnswerThread.php (appears twice) and make sure it does not remove any tags. This way you can bypass the current filtering and let SyntaxHighlighter to work

    sorry but could you please explain it (I am a newbie to PHP)

    Plugin Author CreativeMinds

    (@creativemindssolutions)

    You need to replace

    $content = trim(wp_kses($data[‘content’],
    array(
    ‘a’ => array(
    ‘href’ => array(),
    ‘title’ => array()
    ),
    ’em’ => array(),
    ‘strong’ => array(),
    ‘b’ => array(),
    ‘pre’ => array()
    )));

    With
    $content = $data[‘content’];

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with CM Answer when posting Coding in it.’ is closed to new replies.