The Chess Variant Pages

Check out Cylindrical Chess, our featured variant for March, 2023.

[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Latest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

Later Reverse Order Earlier
Chess Variants Query. (Updated!) More options for searching in these pages.[All Comments] [Add Comment or Rating]
🕸Fergus Duniho wrote on 2022-12-10 UTC

I removed "Ratable Items Only" because it is not a legitimate option. David Howe once created a complicated ratings system that was opt-in, so that it couldn't be used unless the inventor chose to make his game ratable. Hardly anyone ever used it, and I dismantled it.

🕸Fergus Duniho wrote on 2022-10-26 UTC

I've been working on updating the form that appears after the search results. I have used flexboxes to organize the form elements, and I have added some JavaScript. When the form is submitted, it will disable any fields with empty or zero values, because this keeps the query string cleaner, and these will be provided with appropriate defaults if left unassigned. Also, when you check a checkbox that is mutually exclusive with another one, it will uncheck the other one. Checkboxes are mutually exclusive if checking both would leave you with zero search results. Mutually exclusive checkboxes include the ones for only external links and only internal links and the newly added ones for only member submitted pages and only HTML pages. I have also added some tooltips to explain what these and some other options mean.

I have added some new search options for choosing between =, LIKE, and REGEXP, and I will deprecate the options specifically for REGEXP searching.

While there is still more to work on, it is stable for now. So, I have copied what I've done to the official queryinc.php script.

🕸Fergus Duniho wrote on 2022-10-15 UTC

While perusing the queryinc.php code today, I came upon the similaritems parameter. Looking into what this does and what might make use of it, I discovered the likethis.php script. This script shows pages that belong to the same type and the same categories as the identified page. So, I added a link in the menu that makes use of it, and I ironed out a few kinks concerning its use. I also added functions that acquire the names of types and categories directly from the database, so that there is less discrepancy between the code and the database. I'll later migrate them to the database-funcs.php include file for use with other scripts.

🕸Fergus Duniho wrote on 2022-10-14 UTC

I commented this page because I’ve seen last activity there, not for the page.

If you can see where the last activity was, don't you think we can as well? Post on the appropriate page, not on the page with the last activity.

Rechefiltr is Fire wrote on 2022-10-14 UTC

Which way can I upload my piece to Piececlopedia entry or Non-piececlopedia? Tell me please. I commented this page because I’ve seen last activity there, not for the page.

Rechefiltr is Fire wrote on 2022-10-14 UTCGood ★★★★

Please check my submissions. They are waiting Your look, except for 2 lasts) Regards, Rechefiltr_is_Fire

🕸Fergus Duniho wrote on 2022-10-14 UTC

After doing some experimenting, I have determined that the normal way for HTML to pass multiple values to the same PHP variable is through a series of array assignments. For example, category[]=Hexagonal&category[]=ShogiBased instead of category=Hexagonal,ShogiBased. This page does the latter, but it relies on JavaScript to get the job done. For multiple assignments to work in HTML, the variable name in the form should include square brackets after it, which causes PHP to interpret it as the assignment of a new array element. For a SELECT element, you also have to use the MULTIPLE attribute with it to enable it to allow selection of multiple options. For checkboxes with the same name, this is not needed.

🕸Fergus Duniho wrote on 2022-10-13 UTC

I have updated queryinc.php, which this makes use of. While I will still continue working on it, I have released a stable version with these features:

  • To avoid any confusion, only one set of search results will be displayed, and these will be regular search results.
  • If you're interested in seeing just Primary Links, there is a separate option for that.
  • You will get up to 500 results from a search.
  • Results with more than 500 items will be followed by a link for the next 500.
  • Instead of having searches broken down into subcategories with the number of hits listed for each subcategory, you will get buttons for narrowing down or redirecting a search.
  • Lettered links for navigating to sections of the page, which could be confused with lettered links for doing new searches, are now gone.
  • Links to the bottom and top of the page are displayed only on mobile devices, as they are not needed on computers with keyboards, which allow moving to the top or bottom with keyboard shortcuts.
  • The SQL will be shown when $usethisheading is not set, or it is set to the generic "Search Results".
  • The Advanced Search is now clearly labeled and contains checkboxes for the categories.
  • Multiple category values can be passed in two ways: as a comma-separated list or as a series of category[]= assignments.
  • The new parameter minimumnew is used to indicate the minimum number of items to display on a What's New page. This will keep it from showing nothing when there has been nothing new for a while.

🕸Fergus Duniho wrote on 2021-10-06 UTC

I have been working on replacing absolute URLs with relative URLs. But I had mainly been looking for URLs. I guess I'll have to look for URLs too.

Ben Reiniger wrote on 2021-10-05 UTC

This page currently has an absolute link to the .org version of mainquery.php. For the page to work in both locations, a relative link would be better.

I tried to test that out on the .org site (new better testing practices, yay!), but found that I cannot log on there because the login page has an absolute url to the .com version of the login script.

Burninate all the absolute urls?

💡📝(zzo38) A. Black wrote on 2014-02-02 UTC
Editing the URL like that is no longer necessary if you have JavaScripts. (If you don't have JavaScripts, the form will probably still work, but without possibility to select multiple categories.)

💡📝(zzo38) A. Black wrote on 2013-07-29 UTC
While that works, it might be better idea if another field called category[] is provided so that you can select more than one in the form, rather than having to edit the URL afterward. (Whoever is programming mainquery.php needs to fix this. The program can check if $_REQUEST['category'] is an array, and if so, to convert it; this is one way to make it work still the same regardless which format is used.)

Ben Reiniger wrote on 2013-07-17 UTCExcellent ★★★★★
This is especially useful for finding variants in the intersection of various categories.  For instance, to find 3D variants where there is some kind of hexagonal component (hex prism or tetrahedral e.g.), set up the search just for 3D variants, then modify the resulting URL so that it includes "category=3D,hexagonal".

Tony Quintanilla wrote on 2005-12-11 UTCGood ★★★★
This could be very useful. I've saved it in my Favorites.

Anonymous wrote on 2005-12-02 UTCExcellent ★★★★★
You should be able to get to it without having to look under 'C'

15 comments displayed

Later Reverse Order Earlier

Permalink to the exact comments currently displayed.