• Hello, my name is Jen.
    I’m using your awesome wpDiscuz plugin ??
    In addition, I’m using Kingkong board(Kkboard) which is bulletin board something like BBpress.
    I asked the Kkboard’s author how to adopt wpDiscuz comment system on the board instead of Kkboard’s internal comment and he answered to my question.
    First, turn off the Kkboard’s comment system(I did ??
    So, there’s no comment on the thread.

    Second, add this code on function.php

    add_filter(‘kkb_read_comment_before’, ‘my_custom_comment’, 10, 3);

    function my_custom_comment($content, $board_id, $entry_id){
    $content = do_shortcode(‘[INSERT PLUGIN’S SHORTCODE]”);
    return $content;
    }

    I got to know that your plugin does not support shortcode ??
    How can I do that?
    I would like to add your comment in my bulletin board.
    I’m looking forward to it! Thanks ??

    Sincerely,
    Jen

    https://www.ads-software.com/plugins/wpdiscuz/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Hi stokim,
    I’m sorry but wpDiscuz doesn’t have any shordcode, it’s being loaded with WordPress default comments_template() function.

    Also there is another way to include wpDiscuz main file into your code, something like this:

    add_filter('kkb_read_comment_before', 'my_custom_comment', 10, 3);
    
    function my_custom_comment($content, $board_id, $entry_id){
       if(file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/comment-form/form.php')){
    	include_once ABSPATH . 'wp-content/plugins/wpdiscuz/comment-form/form.php';
      }
    }

    Thread Starter stokim

    (@stokim)

    Thank you for your help! ??
    Could you please check the code again please?
    The code is not working in functions.php ??

    Sincerely,
    Jen

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I need your help regarding wpDiscuz comment plugin.’ is closed to new replies.