Comments/Ratings for a Single Item
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.
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.
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.
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.
Please check my submissions. They are waiting Your look, except for 2 lasts) Regards, Rechefiltr_is_Fire
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.
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.
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?
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".
15 comments displayed
Permalink to the exact comments currently displayed.
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.