Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Disqus, how can I get a list of recent comments from posts, and have them link back to the original post?

Tags:

disqus

I want to display the 10 most recent comments made from all the blog posts that are using Disqus and display them in a sidebar, then be able to click on the comment and be taken to the original post.

An plus would be to be able to leave out our own comments from the list.

like image 802
Kappaluppa Avatar asked May 31 '12 17:05

Kappaluppa


3 Answers

Here is a script which will do your job

<script type="text/javascript" src="https://funbutlearn.disqus.com/recent_comments_widget.js?num_items=10&hide_avatars=0&avatar_size=40&excerpt_length=200"></script>

If you want to embed a combo (all-in-one) plugin then copy following script

<script type="text/javascript" src="https://funbutlearn.disqus.com/combination_widget.js?num_items=10&hide_mods=0&color=grey&default_tab=recent&excerpt_length=70"></script>

You can even apply CSS to make these more attractive.

like image 110
Hari Das Avatar answered Nov 17 '22 02:11

Hari Das


What about using this, then Yahoo Pipes for excluding your own comments (i-e. a filter based on the name of the author), and then a RSS parser such as RSSDisplay for displaying the comments on your sidebar?

like image 39
flapane Avatar answered Nov 17 '22 02:11

flapane


Disqus folks told us we'd need to make a custom script for this, but it turns out that you can find a widget all ready to go under /admin/tools/widgets/ then choose recent comments.

Haven't gotten into modifying it yet, but you can get the most recent comments there. It has a link to the commenter, a link to the original thread and 'time ago'. It's a start.

I also found this link: http://aaronjwhite.org/index.php/component/content/article/5-php/8-creating-a-recent-comments-widget-with-disquss-api-and-php Creating A Recent Comments Widget With Disqus's API and PHP

like image 3
Kappaluppa Avatar answered Nov 17 '22 03:11

Kappaluppa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!