hashover-next
hashover-next copied to clipboard
Most commented table page
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.
I think this is related to https://github.com/jacobwb/hashover-next/issues/172
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.