Comments/Ratings for a Single Item
This often doesn't work for me; I'd guess that /game/{itemid} URLs aren't forwarded(?) properly for member submitted pages.
In goto.php, I was transitioning from using the variable $ROOT to using the constant ROOT for the path the site is located in, and I hadn't completed it. So, it set ROOT at the beginning but was trying to use $ROOT in the code. It now uses ROOT throughout.
I plan to create /game/ or /rules/ semantic URLs in the future, but the semantic URLs that the randgame.php script sends to goto.php use /page/.
Something has broken the Random Game script recently; I always get sent to the same Betza game, "csipgs Chess." I can't think of any recent changes that should have affected this; that game lands somewhere around 600th out of 3000. Are others experiencing the same issue?
(As an aside, concerning the first randomization query: removing the LIMIT 1 and running, I sometimes get no results and sometimes many. I think the use of RAND() generates a different random number for each row, contrary to Fergus's comment in an earlier thread. Maybe since then we've changed some setting on the database? Anyway, while this could clean things up, I don't expect it's responsible for my always-Betza problem.)
I just tried it, and it repeatedly sent me to Chess++. Switching browsers to Firefox, it started repeatedly sending me to Shifting Chess. I think the issue is with page caching. It might be because this site uses Cloudflare for DNS, which offers page caching. But if that's the case, I might expect the same page to show up for different browsers, which is not happening. So, it might be browser caching. I can probably fix this by appending a uniqid to each link to the random game script.
Adding a uniqid to the script's URL has fixed the problem, but I'm going to look into how I can finetune caching with .htaccess.
6 comments displayed
Permalink to the exact comments currently displayed.
I have replaced the Random Game Page link in the menu with a link to a new script at http://www.chessvariants.com/index/randgame.php, which will quickly select a random game page and redirect you there.