Okay
  Public Ticket #2594326
Comments
Closed

Comments

  •  2
    david started the conversation

    Is it possible to use to comments from wordpress natively?

    I be clear I want to use to comments from Wordpress

  •  877
    Zhivko replied

    Go to Dashboard -> STEC -> General -> Single Page tab and uncheck "Disable page comments".

    This will enable your default comments section on your events single pages.


    Stachethemes Developer

  •  2
    david replied

    I cant select another template see the attached file 

  •  2
    david replied

    I want to select the template I make but I cant 

  •  2
    david replied

    I finally understood, I have to open my events as a page not as a calendar which is not the same for me, I am losing my links to my user's profile

  •  877
    Zhivko replied

    Single Page page template affects the event's single page only and not the in-calendar event content. 

    Customizing the in-calendar event content is planned for Elementor in future update.


    Stachethemes Developer

  •  2
    david replied

    So can I use my built in comments?

  •  877
    Zhivko replied

    Are they part of your theme or coming from other plugin?


    Stachethemes Developer

  •  2
    david replied

    if I can use wpdiscuz will be good 

  •  877
    Zhivko replied

    I think it could be done. I see the plugin uses shortcodes so we could add option to add custom tabs via elementor and place the wpdiscuz shortcode there.


    Stachethemes Developer

  •  2
    david replied

    I will try it 

  •  2
    david replied

    it looks like wpdiscuz dosnt use shortcode 

  •  877
    Zhivko replied

    I've seen workarounds like this one:

    function my_wpdiscuz_shortcode() {
       if(file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')){
          include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php';
       }
    } add_shortcode( 'wpdiscuz_comments', 'my_wpdiscuz_shortcode' );

    Then you could call "wpdiscuz_comments" to get your comments form.


    Stachethemes Developer

  •  2
    david replied

    Zhivko, thanks for giving me the idea !!! but unfortunately the code is too old. I found this one instead:

    function my_wpdiscuz_shortcode() {    $html = "";    if (file_exists(ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php")) {        ob_start();        include_once ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";        $html = ob_get_clean();    }    return $html;}add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");

     

  •  2
    david replied

    So, the shortcode seem working fine 

    [wpdiscuz_comments]
    but I dont know how to make it work with Stachethemes Event Calendar. please help :=) 
  •  2
    david replied

    but I dont know how to make it work with Stachethemes Event Calendar. please help :=)

  •  2
    david replied

    Zhivko, I did the custom tabs but it doesn't seem to work

  •  877
    Zhivko replied

    Hi David,

    I've played with this comments plugin yesterday trying to make it work in the in-calendar view.

    Unfortunately, I couldn't make it work. Its code is written in a way that it's nearly impossible to include it via ajax without breaking it. I've looked in their developers documentation but couldn't find solution to this and I don't think it's supported feature at all.

    You could ask the developer if there's a way to display the comments form via ajax on a page that's not related to the comments form post.

    Basically what I'm looking for is:

    • php function that loads all necessary css and js on the page.
    • php function that renders the comments form html for given post id.
    • javascript function that initializes the form after the form's html is appended.



    Stachethemes Developer

  •  2
  •  2
    david replied

    Zhivko, thanks for replying, at least we know the outcome! :=) From my screenshot, could you tell me if I configured the customised TABS correctly. It seems to be a bit limited. After adding the cose in my function.php I can only put text in the field title. is it supposed to be like that ?

    :=) 

  •  877
    Zhivko replied

    Yes, that's how it should look like. The example from the article inserts simple input.

    It can be converted to textarea. 

    What do you want to do with this tab?


    Stachethemes Developer

  •  2
    david replied

    Well, nothing in particular I am just exploring the functionality  of the plugin.

    Thanks :=)