Check out McCooey's Hexagonal Chess, our featured variant for May, 2025.

Enter Your Reply

The Comment You're Replying To
H. G. Muller wrote on Sun, Dec 11, 2022 06:35 PM UTC in reply to Fergus Duniho from 04:49 PM:

 

However, the pieces are very far away from the board, and I have to slowly scroll the page to drag the piece to the board. I presume these areas should be nearby each other, as that would make dragging pieces to the board much easier.

Indeed, the table should appear just right of the board. But the same thing happened here: the text of the article described what one has to embed in a HTML page to make the piece table appear there. This was upgraded by the double decode to an active element interpreted by the browser, and as it appears before the intended active element in the Wizard the table now appears there.

I now repaired the < in all places that could confuse the script by mimicking an anchor for inserting a 'satellite', and that appears to fix it: the piece table now appears in the intended place, and I can now perform all steps of the Wizard up to the end.

To get back to the membersubmission scripts: I have been toying with one of those (the wrong one, but it was one I could easily invoke), in order to try to include some help for creating an article in HTML with an Interactive Diagram in the Setup section and a nicely formatted verbal description in the Pieces section. It is more like the Play-Test Applet than like the Wizard here, but unlike the former it also allows control over graphical appearance (square colors, piece images). The basic principle is still to move pieces from the adjacent table (which adapts to the chosen image set) to a board (first adjusted to the desired size). Once done pressing a button fills the Setup and Pieces sections with a proposal for the HTML, which can then be fine-tuned by manual editing.

To see it in action you can use Edit Page on an article (which invokes the membersubmission2a.php script), and then change the word 'member' to 'hgm' in the address bar to use the modified script hgmsubmission.php (keeping the CGI arguments of the URL). Of course you should be careful not to actually safe anything when using this on an article that already has Setup and Pieces sections, as it would overwrite these with what it cooks up itself.

BTW, in order to make this work I had to adapt the list.php script that was in various directories with piece images (that also contained an index.html file) in order to get a directory listing of the available images. This script no longer could be used: 'cross origin policy' apparently forbids access to other directories than the one the original page was loaded from (/index), even if these are on the same server. So to know which piece images are present in a given directory (for creating the table) I had to put a script (hgmget.php) in the /index directory, and make it such that it accepts as an argument which directory you want the listing from. Perhaps this should still be made a bit more critical in what you are allowed to list (e.g. only subdirectories of graphics.dir and membergraphics/*), but my knowledge of PHP was not good enough to do that.

P.S. Indeed I needed no tricks anymore for making the &lt; for < replacement for removing the false anchors, so the system appears to work now.


Edit Form

Comment on the page Interactive diagrams

Conduct Guidelines
This is a Chess variants website, not a general forum.
Please limit your comments to Chess variants or the operation of this site.
Keep this website a safe space for Chess variant hobbyists of all stripes.
Because we want people to feel comfortable here no matter what their political or religious beliefs might be, we ask you to avoid discussing politics, religion, or other controversial subjects here. No matter how passionately you feel about any of these subjects, just take it someplace else.
Avoid Inflammatory Comments
If you are feeling anger, keep it to yourself until you calm down. Avoid insulting, blaming, or attacking someone you are angry with. Focus criticisms on ideas rather than people, and understand that criticisms of your ideas are not personal attacks and do not justify an inflammatory response.
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.
Here is some preformatted text.
  This line begins with some indentation.
    This begins with even more indentation.
And this line has no indentation.

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.