Conflict w/Disqus Comments

This topic contains 35 replies, has 6 voices, and was last updated by  HelloYoga 9 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #16344

    jonahcoyote
    Expired Member
    Post count: 89

    Hey guys,

    I just wanted to throw out here that I’d be willing to pay a bit extra to get this prioritized. We’re kind of dead in the water at the moment and can’t use GD (but need to) along with Disqus on our website.

    Is that a possibility?

    Thanks,
    Jonah

    #16389

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Jonah,

    we don’t do customisation but if you want i can put you intouch with a good dev for GD?

    Stiofan

    #16390

    jonahcoyote
    Expired Member
    Post count: 89

    Hi Stiofan,

    That would be cool. So does that mean you guys are not going to look into getting Disqus working with GD?

    Thanks,
    Jonah

    #16394

    Paolo
    Site Admin
    Post count: 31206

    Hi Jonah,

    we will, but not being a bug preventing the majority of members to continue with their websites, it is at the bottom of our queue.

    That’s why Stiofan suggested a developer to help you in case you need to prioritize this.

    Thx

    #16403

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I have forwarded ur details on to a dev, they will hopefully contact you tomorrow.

    Stiofan

    #16424

    jonahcoyote
    Expired Member
    Post count: 89

    Thanks guys!

    #24039

    execfro
    Buyer
    Post count: 80

    Would it be possible to put me in touch with the same developer that helped the original poster? I’m having the exact same issue with Disqus.

    #24089

    Paolo
    Site Admin
    Post count: 31206

    hi,

    you can write to her directly.

    Her name is Sneha and you should be able to reach her here: info[at]thakkertech.com

    You can reference this topic as she has access to the forum.

    Thx

    #24139

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    For people wanting to try Disqus, please try this hack of their latest plugin, if it works ok i will try and contact them to add some code so it can be done without hacks.

    in their plugin in file disqus.php

    line 1250 replace this:

    add_filter('comments_template', 'dsq_comments_template');

    with this:

    add_filter('comments_template', 'dsq_comments_template',100);

    Line 225 add this:

    if(isset($post->post_type) && $post->post_type && in_array($post->post_type,geodir_get_posttypes())){return false;}

    So line 225 surounding should look like this:

    
    
    function dsq_can_replace() {
        global $id, $post;
    	if(isset($post->post_type) && $post->post_type && in_array($post->post_type,geodir_get_posttypes())){return false;}
        if (get_option('disqus_active') === '0'){ return false; }

    Thanks,

    Stiofan

    #24195

    execfro
    Buyer
    Post count: 80

    Perfect, that did the trick. Thanks.

    #24245

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Great, i have contacted Disqus to ask them to add 1 line of code which should help all dev’s hopefully i will hear back from them on Monday.

    Stiofan

    #26587

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    UPDATE:

    I have submitted a pull request on github to the Disqus dev team and hopefully they will be in the next release of Disqus plugin.

    Thanks,

    Stiofan

    #26940

    Breakwater
    Free User
    Post count: 3

    Hello, I need this fixed too asap. I am in the middle of an active site dev.

    I’m developing an all around community news/resource site and GeoDirectory conflicts and kills Disqus from operating site-wide.

    The theme I am using already selectively displays comments on posts/pages as I need them.

    This may be a much larger issue if GeoDirectory and Disqus both write to the WordPress comments in the database. (I need Disqus to write the comments so I can have a proper comment count on posts, sitewide)

    This is important enough of an issue that I will stop using GeoDirectory and find an alternative directory plugin, just to stick with Disqus.

    #26941

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi u can download the plugin with the filter added here: https://github.com/NomadDevs/disqus-wordpress/

    Then u add this bit of code to your child theme functions.php file and all should be well

    
    
    add_filter('dsq_can_replace_filter','dsq_can_replace_begin_hook_change',10);
    
    function dsq_can_replace_begin_hook_change(){
    global $post;
    if(isset($post->post_type) && $post->post_type && in_array($post->post_type,geodir_get_posttypes())){return true;}
    }

    Thanks,

    Stiofan

    #26947

    Breakwater
    Free User
    Post count: 3

    Thank you Stiofan for the quick reply.

    The hack you posted earlier worked. But, I want to use your GitHub fork.

    I followed your directions immediately above and it does not work still unless I turn off GeoDirectory.

    I added the code snippet in my child theme functions.php you posted above and I also tried the code snippet from the GitHub description. What variable do I need to pass to the filter to make Disqus appear on my posts?

    http://breakwater.wpengine.com/story/featured/2015/01/dixie-belle/

Viewing 15 posts - 16 through 30 (of 36 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount