Comments/Ratings for a Single Item
For those who constantly check the what's new page, I have created the 'Minimal New' page, which just gives a short summary on when the latest comment was made, and when the latest item was added or updated. The address is: http://www.chessvariants.com/index/new.php
This comment is about the whole site: Do you know just how many dead links to external pages you have?
I have replaced the listcomments.php script with a new script. This new script uses PDO methods instead of mysql functions, and it changes how it pages through the comments. The old script used the offset method, which grew more expensive with each page of links further away from the origin. The new script uses the first and last keywords to indicate a specific starting point from which to count ahead or count down additional comments. This works just as quickly for any point in the Comment table, and it provides links that will identify the same set of comments even when additional comments are added.
The default is now to list comments in ascending order instead of descending order, and order=DESC must be set to list comments in descending order. This is to make it explicit when comments are being listed in descending order. The new script uses the sort keyword instead of the sortbydate keyword, and it can take different column names for values. It defaults to CommentID. But until I change the links, it will change the order value to DESC, so that old links can still function as they used to. The link on the home page has already been corrected, since it did not include any parameters. For further details on parameters, click on the Help link, or add the help parameter to the URL.
17 comments displayed
Permalink to the exact comments currently displayed.