The Chess Variant Pages



Enter Your Reply

The Comment You're Replying To
Fergus Duniho wrote on 2017-08-20 UTC

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.


Edit Form

Comment on the page General Comments Page

Quick Markdown Guide

By default, new comments may be entered as Markdown, simple markup syntax designed to be readable and not look like markup. Comments stored as Markdown will be converted to HTML by Parsedown before displaying them. This follows the Github Flavored Markdown Spec with support for Markdown Extra. For a good overview of Markdown in general, check out the Markdown Guide. Here is a quick comparison of some commonly used Markdown with the rendered result:

Top level header: <H1>

Block quote

Second paragraph in block quote

First Paragraph of response. Italics, bold, and bold italics.

Second Paragraph after blank line. Here is some HTML code mixed in with the Markdown, and here is the same <U>HTML code</U> enclosed by backticks.

Secondary Header: <H2>

  • Unordered list item
  • Second unordered list item
  • New unordered list
    • Nested list item

Third Level header <H3>

  1. An ordered list item.
  2. A second ordered list item with the same number.
  3. A third ordered list item.

Alt text for a graphic image

A definition list
A list of terms, each with one or more definitions following it.
An HTML construct using the tags <DL>, <DT> and <DD>.
A term
Its definition after a colon.
A second definition.
A third definition.
Another term following a blank line
The definition of that term.