Viewing 15 posts - 16 through 30 (of 36 total)
  • Author
    Posts
  • #16344

    jonahcoyote
    Full Member
    Post count: 48

    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 OConnor
    Site Admin
    Post count: 21367

    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
    Full Member
    Post count: 48

    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: 29228

    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 OConnor
    Site Admin
    Post count: 21367

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

    Stiofan

    #16424

    jonahcoyote
    Full Member
    Post count: 48

    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: 29228

    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 OConnor
    Site Admin
    Post count: 21367

    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 OConnor
    Site Admin
    Post count: 21367

    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 OConnor
    Site Admin
    Post count: 21367

    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 OConnor
    Site Admin
    Post count: 21367

    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)

The topic ‘Conflict w/Disqus Comments’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.

  • How to add a new support ticket

    To open a new support ticket, first select the relevant forum and then click the "New Post" button. Example: You need support for the core plugin? Click on GeoDirectory Core Plugin support and click on the "New Post Button".
  • Support Policy

    Please read the support policy before starting to use the forum.
  • Are you a developer?

    Make Money with GD Jobs

    Get listed in the GeoDirectory Experts Directory. There may be a new client waiting for your services.
  • Looking for a GD developer?

    We do not provide customization services, but feel free to check out the GeoDirectory Experts Directory, there you'll find several freelance GD experts ready to start working with you.