hashover-next icon indicating copy to clipboard operation
hashover-next copied to clipboard

Most commented table page

Open vkaotik opened this issue 8 years ago • 2 comments

And also next question. Is it possible somehow to display Most commented pages in a table and show latest comment?

-----------------------------------------------
Page name | Newest Comment                    |
-----------------------------------------------
Flowers   | What a beautiful flowers!         |
Daisies   | Cool story bro!                   |
Dogs      | Eww..                             |
Buls      | Toro Toro!!                       |
-----------------------------------------------

I've tried this code <script type="text/javascript" src="/hashover.js?api=latest&global=yes"></script> with no luck. it doesn't show nothing, apart error: SyntaxError: expected expression, got '<' in latest.php in line 1 I hope u get the idea.

vkaotik avatar May 19 '17 15:05 vkaotik

I think this is related to https://github.com/jacobwb/hashover-next/issues/172

jorgesumle avatar May 20 '17 10:05 jorgesumle

Hello, sorry for the long delay.

The reason you are getting an error is indeed most likely related to issue #172. However, the "latest comments" API only shows the most recent comments for a given thread or the most recent comments from all threads, it does not know which thread has the most comments.

This would be easy to implement, though. For example, by sorting the threads by the number of comments and reading the most recent comment from each thread. If you would like help writing code that does this, please let me know and I will do my best to help.

jacobwb avatar Feb 26 '18 16:02 jacobwb