Check out Grant Acedrex, our featured variant for April, 2024.


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

Comments/Ratings for a Single Item

Earlier Reverse Order LaterLatest
Chess Variants Query. More options for searching in these pages.[All Comments] [Add Comment or Rating]
Anonymous wrote on Fri, Dec 2, 2005 10:30 PM UTC:Excellent ★★★★★
You should be able to get to it without having to look under 'C'

Tony Quintanilla wrote on Sun, Dec 11, 2005 06:06 AM UTC:Good ★★★★
This could be very useful. I've saved it in my Favorites.

Ben Reiniger wrote on Wed, Jul 17, 2013 03:08 AM UTC:Excellent ★★★★★
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".

💡📝(zzo38) A. Black wrote on Mon, Jul 29, 2013 02:44 AM 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.)

💡📝(zzo38) A. Black wrote on Sun, Feb 2, 2014 04:31 AM 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.)

Ben Reiniger wrote on Tue, Oct 5, 2021 10:08 PM 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?


🕸Fergus Duniho wrote on Wed, Oct 6, 2021 01:45 AM UTC in reply to Ben Reiniger from Tue Oct 5 10:08 PM:

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


🕸Fergus Duniho wrote on Thu, Oct 13, 2022 10:09 PM 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 Fri, Oct 14, 2022 05:04 PM 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.


Diceroller is Fire wrote on Fri, Oct 14, 2022 07:34 PM UTC:Good ★★★★

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


Diceroller is Fire wrote on Fri, Oct 14, 2022 07:39 PM UTC in reply to Diceroller is Fire from 07:34 PM:

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.


🕸Fergus Duniho wrote on Fri, Oct 14, 2022 09:11 PM UTC in reply to Diceroller is Fire from 07:39 PM:

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.


🕸Fergus Duniho wrote on Sat, Oct 15, 2022 02:21 AM 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 Wed, Oct 26, 2022 02:15 AM 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.


14 comments displayed

Earlier Reverse Order LaterLatest

Permalink to the exact comments currently displayed.