php - Questions about DISQUS - get comments and comment count -
i'm trying achieve few things disqus demonstrated in picture below (boxed in red) comics website...
- get comment count of particular comic
- get specific comments, recent , popular
- truncate comment, allow user click read more either expand or link them actual comic
1) comment count:
to comment count, i've followed disqus' guide, gives me link comments on comic... , not total number... say:
append #disqus_thread href attribute in links. tell disqus links , return comment count. example:
<a href="http://foo.com/bar.html#disqus_thread">link</a>.
but how count if url string this:
<a href=".?action=viewimage&site=comics&id=66">link</a>
so questions are:
- where append
#disqus_thread
? - how can comments count 1 comic url , display total comments on page?
- why give me link comments , not comment number associated comic?
2) specific comments, recent or popular
i haven't found documentation on exception of this i'd need write own script...
3) truncate comments
if #2 possible @ all, how able truncate it?
thanks!
Comments
Post a Comment