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 TicketTagged: comments, compatibility, disqus
-
AuthorPosts
-
September 24, 2014 at 1:32 am #16344
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,
JonahSeptember 24, 2014 at 2:26 pm #16389Hi Jonah,
we don’t do customisation but if you want i can put you intouch with a good dev for GD?
Stiofan
September 24, 2014 at 2:30 pm #16390Hi Stiofan,
That would be cool. So does that mean you guys are not going to look into getting Disqus working with GD?
Thanks,
JonahSeptember 24, 2014 at 3:34 pm #16394Hi 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
September 24, 2014 at 4:16 pm #16403I have forwarded ur details on to a dev, they will hopefully contact you tomorrow.
Stiofan
September 24, 2014 at 6:05 pm #16424Thanks guys!
December 10, 2014 at 9:00 pm #24039Would 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.
December 11, 2014 at 4:35 pm #24089hi,
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
December 11, 2014 at 10:25 pm #24139For 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
December 12, 2014 at 5:44 pm #24195Perfect, that did the trick. Thanks.
December 13, 2014 at 2:54 pm #24245Great, 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
January 7, 2015 at 10:26 am #26587UPDATE:
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
January 10, 2015 at 9:03 pm #26940Hello, 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.
January 10, 2015 at 9:08 pm #26941Hi 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
January 10, 2015 at 10:01 pm #26947Thank 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/
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket