Disqus Integration
Re: Disqus Integration
Thank you so much!
I will implement this on Wednesday or Thursday, when the debate on the latest blogpost is over.
I will implement this on Wednesday or Thursday, when the debate on the latest blogpost is over.
My blog: http://AtlanticReview.org
Re: Disqus Integration
Thank you for creating the Disqus plugin.
It still does not work for me though. I have installed the plugin, inserted my Disqus username and set the start date for this plugin to yesterday in the settings. I have even replaced by template's entries.tpl with the entries.tpl from the default theme..
When I change the theme to default theme, Disqus comment system does not show up either.
It still does not work for me though. I have installed the plugin, inserted my Disqus username and set the start date for this plugin to yesterday in the settings. I have even replaced by template's entries.tpl with the entries.tpl from the default theme..
When I change the theme to default theme, Disqus comment system does not show up either.
My blog: http://AtlanticReview.org
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Disqus Integration
Hi!
Do you have it currently installed? I don'T see any disqus reference on http://atlanticreview.org/archives/1479 ... urope.html - I might need to see it in action to see why it shouldn't work for you...
Regards,
Garvin
Do you have it currently installed? I don'T see any disqus reference on http://atlanticreview.org/archives/1479 ... urope.html - I might need to see it in action to see why it shouldn't work for you...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Disqus Integration
Hi Garvin,
Yes, I have the plugin installed. When you click on comments, the permalink with a reference to disqus shows up:
http://atlanticreview.org/archives/1479 ... qus_thread
I see some disqus code in the Quelltext.
Yes, I have the plugin installed. When you click on comments, the permalink with a reference to disqus shows up:
http://atlanticreview.org/archives/1479 ... qus_thread
I see some disqus code in the Quelltext.
My blog: http://AtlanticReview.org
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Disqus Integration
Hi!
Can you place a {$entry.disqus} temporarily inside your entries.tpl file to see if that returns anything?
If not:
It seems, even though I don't understand why, that the plugin breaks its execution due to that line in the PHP code of the plugin file:
this usually indicates that the extended entry is being displayed. You could try to remove that line (line 109 in serendipity_event_disqus.php) so see if you get further output then..?
Regards,
Garvin
Can you place a {$entry.disqus} temporarily inside your entries.tpl file to see if that returns anything?
If not:
It seems, even though I don't understand why, that the plugin breaks its execution due to that line in the PHP code of the plugin file:
Code: Select all
if (!$eventData['is_extended']) return true;
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Disqus Integration
So weird: When I wrote a new blogpost, Disqus was there and I was happy:
http://atlanticreview.org/archives/1481 ... rmany.html
Then just now I wrote yet another blogpost, but Disqus is gone again:
http://atlanticreview.org/archives/1483 ... nized.html
The only thing I changed were some settings in the S9Y comment plugin, because I was tired of moderating requests for spam comments and I wanted to disable commenting on older entries.
I fiddled with the settings, but no luck. I have also posted numerous new blogposts, but Disqus is not showing up. There is, however, a reference to Disqus in the Quelltext of the footer.
Garvin, re your advice
http://atlanticreview.org/archives/1481 ... rmany.html
Then just now I wrote yet another blogpost, but Disqus is gone again:
http://atlanticreview.org/archives/1483 ... nized.html
The only thing I changed were some settings in the S9Y comment plugin, because I was tired of moderating requests for spam comments and I wanted to disable commenting on older entries.
I fiddled with the settings, but no luck. I have also posted numerous new blogposts, but Disqus is not showing up. There is, however, a reference to Disqus in the Quelltext of the footer.
Garvin, re your advice
Where should I put {$entry.disqus} in the entries.tpl?Can you place a {$entry.disqus} temporarily inside your entries.tpl file to see if that returns anything?
My blog: http://AtlanticReview.org
Re: Disqus Integration
Not so weird anymore.
Disqus shows up, whenever I write a blog post with an extended body. I will be fine, if they remember to always do that.
Thank you for all your help, Garvin!
Disqus shows up, whenever I write a blog post with an extended body. I will be fine, if they remember to always do that.
Thank you for all your help, Garvin!
My blog: http://AtlanticReview.org
Re: Disqus Integration
I was searching for a how-to showing integration of Disqus into S9Y and came up with this thread. I want to add one final post to it just so it's clear for people wondering if Disqus and S9Y are compatible.
Answer: Yes, and it's come a long way since this thread, which seems to have needed some heavy duty coding. I simply enabled the Disqus plug in using Spartacus and input my Disqus shortname.
The Disqus stuff doesn't show up if you do a short blog post using just the "Entry Body." You also have to put some text into the "Extended Entry Body" and the Disqus stuff will add itself to your post automatically. I had Disqus up and running in under one minute. The Disqus plug in works fine, and required no tweaking at all.
Happy ending.
Answer: Yes, and it's come a long way since this thread, which seems to have needed some heavy duty coding. I simply enabled the Disqus plug in using Spartacus and input my Disqus shortname.
The Disqus stuff doesn't show up if you do a short blog post using just the "Entry Body." You also have to put some text into the "Extended Entry Body" and the Disqus stuff will add itself to your post automatically. I had Disqus up and running in under one minute. The Disqus plug in works fine, and required no tweaking at all.
Happy ending.
-
- Regular
- Posts: 695
- Joined: Tue Jul 03, 2007 3:34 am
- Location: Berlin, Germany
- Contact:
Re: Disqus Integration
Is there some technical reason why there has to be an extended part of the article for the DISQUS code to show up?
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Disqus Integration
I don't remember the specific code, it could be that the form of detection if the detai page is opened uses the "extended" property in a wrong way. Generally I don't think the extended part of an entry should be required for this...blog.brockha.us wrote:Is there some technical reason why there has to be an extended part of the article for the DISQUS code to show up?
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Regular
- Posts: 695
- Joined: Tue Jul 03, 2007 3:34 am
- Location: Berlin, Germany
- Contact:
Re: Disqus Integration
I had a look into the code:
I think this "if (!$eventData['is_extended']) return true;" can be deleted, because we are in the "per_entry" hook, doesn't it?
Code: Select all
case 'frontend_display:html:per_entry':
$_ts = explode('-', $this->get_config('enable_since'));
$ts = mktime(0, 0, 0, $_ts[1], $_ts[2], $_ts[0]);
if ($eventData['timestamp'] < $ts) {
return true;
}
$eventData['comments'] = '<a href="' . $eventData['link'] . '#disqus_thread" data-disqus-identifier="disq_id_' . $eventData['id'] . '">Disqus</a>';
if (!$eventData['is_extended']) return true;
-
- Regular
- Posts: 695
- Joined: Tue Jul 03, 2007 3:34 am
- Location: Berlin, Germany
- Contact:
Re: Disqus Integration
Ah no, this is not the fix.
i fixed the problem locally but the DISQUS extension is crashing the footer designed by 2k11. So I'll check this out, too and send an update to Spartacus, when ready.
(The fixed version is live at my testblog at the moment. First article has no extended part, second has. Both do have the DISQUS extension)
i fixed the problem locally but the DISQUS extension is crashing the footer designed by 2k11. So I'll check this out, too and send an update to Spartacus, when ready.
(The fixed version is live at my testblog at the moment. First article has no extended part, second has. Both do have the DISQUS extension)
-
- Regular
- Posts: 695
- Joined: Tue Jul 03, 2007 3:34 am
- Location: Berlin, Germany
- Contact:
Re: Disqus Integration
Okay, I think I have fixed that all.
Only one question: Why are you hiding trackbacks, too, Garvin?
Only one question: Why are you hiding trackbacks, too, Garvin?
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Disqus Integration
Great! I think 'is_extended' should have been the check to only show the disqus plugin on the extended entry page and not on the overview.
Regards,
Garvin
Because when someone is using disqus, I think he wants to maintain ALL his feedback on disqus, and not have to maintain trackbacks on the local blog.Only one question: Why are you hiding trackbacks, too, Garvin?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Regular
- Posts: 695
- Joined: Tue Jul 03, 2007 3:34 am
- Location: Berlin, Germany
- Contact:
Re: Disqus Integration
Yes, that is how I changed it..garvinhicking wrote:Great! I think 'is_extended' should have been the check to only show the disqus plugin on the extended entry page and not on the overview.
Huh? Disqus can handle trackbacks, too? Did you switch of the s9y trackback/pingback handling in s9y then with the plugin? I think I don't understand how this part should work..garvinhicking wrote:Because when someone is using disqus, I think he wants to maintain ALL his feedback on disqus, and not have to maintain trackbacks on the local blog.