Comments/Ratings for a Single Item
The page exists, but it's empty. The same goes for another new submission. We're still working on getting some things to work on the new host. Since the submission scripts are something David wrote and which I have rarely ever used, it may take some more time to get them fixed.
Thanks for the info, Fergus. I'll try to get around to re-submitting the variant for this website at some point after the problem is known to be solved. Meanwhile, for anyone who is curious and/or impatient, I can give the CFC website link I wrote of regarding my blog entry there for this variant (the blog entry looks different slightly than what I had tried to submit to The Chess Variant Pages, as for one thing I only gave a primitive diagram for the setup position of the game): http://www.chesscanada.info/forum/entry.php?100-Super4*Chess-(four-dimensional-chess) Furthermore, here's a link to my CFC blog entry for the second 4D variant of mine that I wrote of that was finished being invented in the year 2016 as well (the variant is yet to be submitted as an entry to The Chess Variant Pages in some form, likely with a nicer diagram included too). FYI it is a 5x5x5x5 4D variant: http://www.chesscanada.info/forum/entry.php?101-5*4DChess-(four-dimensional-chess)
One thing I want to work on, perhaps while fixing the scripts for making submissions, is to switch from mysql_* functions to PDO* functions. The mysql_* functions have been deprecated in PHP, and they will be removed from a future version of PHP. So I looked into the alternatives, these being Improved MySQL (mysqli_*) and PHP Data Objects (PDO*). Both have the advantage over mysql_* of allowing prepared statements. PDO has two main advantages over mysqli. The one I think will help most is that it allows named parameters in prepared statements. The other is that it supports more database formats than just mysql. This is not so important right now, since I will continue to use the mysql format, but if the mysql format were ever deprecated, or something much better came along, it would be easier to make the change if the code were already using the PDO* functions.
I have started the transition to PDO. First, I wrote a test file to make sure I knew what I was doing. Then, I rewrote the connect_to_database() function to connect through both mysql and PDO. This did not break anything using mysql. I then rewrote the itemid() function to use PDO, and it is working. So we can transition to PDO without doing it all at once. We can do it one function or file at a time. With that in mind, I can make some fixes while also changing the database code to use PDO.
Both msdisplay.php and the footer included code for displaying comments. It hadn't previously been in the footer, because David had used a Perl footer that just gave a link to the comments. Since I replaced his footer with a PHP footer that includes comments, I removed the code for including comments from msdisplay.php.
The problem with submissions was that the POST data would not go through the first time. I could see this from the empty strings in the SQL it showed me. When I simply reloaded membersubmission3.php, I would see the POST data in the SQL, and it would get recorded in the database. So it appeared that the problem was not with membersubmission3.php but with the process of getting the POST data to it. Since it previously helped in another case, I changed the ACTION URL in the FORM that goes to membersubmission3.php to the full URL. Making that change to membersubmission2.php seems to have fixed the problem with submitting games.
I just re-submitted my "Super4*Chess (four dimensional chess)" variant to The Chess Variant Pages. At first a somewhat garbled version of the text appeared, but then when I clicked on "View Submission" the entry appeared to be as I had hoped, i.e. text showing properly (with 1 Diagram Designer generated diagram included), game title included. I still am indicated to be not signed in when I try to view any unreviewed submissions of mine (on the webpage "Your Unreviewed Submissions), and I am unable sign in on that webpage, perhaps because my browser is not adequate. In the past sometimes I could sign in on certain webpages if using my (currently broken) desktop computer instead of my laptop (which I am using presently). For me, on some webpages of The Chess Variant Pages, the menu of options at the top shows as a vertical (rather than horizontal) list, sometimes when using either computer, in a way which also keeps me from using any of the options (such as to be able to sign in). However, it is possible that the problem of being indicated as not being signed in on this particular webpage is one of the glitches that may need be dealt with by Fergus. Meanwhile, I have no way of editing my now apparently tentatively accepted submission, at least until after it has been reviewed (& if accepted) by editor(s). In the meantime, could an editor please verify that indeed my submission has been tentatively accepted (i.e. by this website).
That page lacked a DOCTYPE declaration at the beginning. Adding one fixed it. It was not that you weren't logged in but that the page failed to recognize that you were logged in.
Please let me know if you can edit your submission. I'm not familiar with whether this can be done, but I think it should be allowed.
Fergus wrote: "Please let me know if you can edit your submission. I'm not familiar with whether this can be done, but I think it should be allowed." I added a couple of letters to the text of it successfully, so the answer appears to be that I can indeed edit it. In case you missed it, I slightly edited my previous comment, to elaborate on troubles for me that may or may not be caused by having an inadequate browser, as far as viewing and using this website goes. So far it seems I can get by (I prefer not to try to change browsers for now), although just now I looked at some games to see if I could unfavourite them, and in many cases the top menu of such a game's webpage appeared vertical in presenting the options. Not only that, but in some such cases I previously favourited these games by listing all its comments, i.e. getting to a webpage where the menu options happened to be presented horizontally. Now, even when that happens still, I don't see any way available by way of a heart option to favourite or unfavorite a particular game. Luckily this is not a priority to fix, but I thought I'd mention it in case you were unaware.
Are you using a mobile device, by any chance? The mobile menu appears vertically. It is normally hidden unless you touch the ≡ sign. If you're seeing a vertical menu on a desktop or laptop, then please give me an URL to look at.
Hi Fergus I'm using a laptop (it's the only computer available to me at home currently, nor do I use a mobile device). Here's a sample URL (if I understand that phrase right) from The Chess Variant Pages which produces a vertical menu of options on my laptop: http://www.chessvariants.com/dpieces.dir/berlin.html
Just now I submitted "5*4DChess (four dimensional chess)" to The Chess Variants Pages, and after I hit "Submit" a new webpage with that game's title showed up, but the page appeared to be empty otherwise (same story when I checked it under the webpage "Your Unreviewed Submissions"). :( If the webpage is indeed empty, could an editor please delete it, and after the new problem with making submissions is solved, I'll hope to resubmit it under the same title eventually.
The menu on http://www.chessvariants.com/dpieces.dir/berlin.html is appearing horizontally to me. So it's not an instance of the wrong header being used. Can you provide a screen shot of what you're seeing to help me better gauge what's going on?
All the presets have a bug that when you click "Invite" then switch to the chess preset.
Fergus wrote: "The menu on http://www.chessvariants.com/dpieces.dir/berlin.html is appearing horizontally to me. So it's not an instance of the wrong header being used. Can you provide a screen shot of what you're seeing to help me better gauge what's going on?" Like I've alluded to before, I'm rather out of my depth these days when it comes to computers. However, with some luck I did manage to create a screenshot icon (shortcut) on my desktop of the Berolina Pawns variant webpage, and then I emailed it to your address as webmaster of this website. Hope that suffices. If you can get around to it, in the event you missed it, I replied to your comment re: my Super4*Chess submission needing to be edited, and I asked if you could advise me (such as perhaps only clarifying that I in fact may have taken a step in the right direction). It's not a priority though, as I am going to be playing over-the-board chess all weekend, including tonight at my club, as well as Friday night, so I'll soon begin a long break from using a computer to visit here, or to visit other websites I go to, until the weekend is over, if only for the reason to concentrate better on playing chess. Take care, Kevin
Carlos, that bug is now fixed. I was trying to fix something else last night and removed a line of HTML I thought might be the problem. Although the problem was something else, I left it out because it seemed redundant. But it wasn't. So I added a new line that does the same thing more accurately.
Kevin, Since I didn't get your email, I whitelisted your address in SpamAssassin. Please try again.
I've just emailed you again. Neither email has bounced back at my end of things so far, at least.
Earlier I posted (directed to Fergus): "...If you can get around to it, in the event you missed it, I replied to your comment re: my Super4*Chess submission needing to be edited, and I asked if you could advise me..." I may have solved my problem in question on my own. Under comments to my submission in question, I've just posted: "Out of a sudden inspiration, I tried using the Diagram Designer to make just a 1x1 (square) board for displaying each single piece type used in my variant (Super4*Chess); I then cut & pasted the diagrams (as I generated each of them) into the piece descriptions. Hope this is adequate, as far as editing my submission goes."
That's one way to do it, though it's not the easiest. This shows that you know how to include an image on a page. The easier way to do it is to copy the URL for each image from the Diagram Designer and use that. The images are displayed around the board. You can get the URL for an image by right-clicking it and selecting the appropriate option from the right-click menu. For Internet Explorer, this is "Copy". For Firefox, this is "Copy Image Location". For Chrome, this is "Copy Image Address". For other browsers, it may be something similar. This will put the URL for the image in your clipboard, and from there, you can paste it into your document.
I understand that it is possible to use HTML img tags in non-HTML submissions. It this an exception, or would it also be possible to use div tags there to define an interactive diagram?
Okay, I'm guessing that non-HTML submissions are formatted differently but do not actually prevent the use of HTML. So, DIVs should probably work in them, though if you are using HTML, then I would recommend clicking the HTML option. In comments, as opposed to submissions, non-HTML comments do not allow HTML.
OK, great. I always tick HTML, but the downside is that this collapses all your text into one big paragraph if you don't put in all the HTML tags for formatting, and many people would not know how. So it is very convenient that there is a possibility to use their own line feeds and spaces for formatting, and still can paste HTML diagrams as blackboxes into it from the diagram generator or interactive-diagram wizard.
I'm up way too late, but I couldn't resist checking this website at least one last time. Fergus wrote: "That's one way to do it, though it's not the easiest. This shows that you know how to include an image on a page. The easier way to do it is to copy the URL for each image from the Diagram Designer and use that. The images are displayed around the board. You can get the URL for an image by right-clicking it and selecting the appropriate option from the right-click menu. For Internet Explorer, this is "Copy". ... This will put the URL for the image in your clipboard, and from there, you can paste it into your document." I use Internet Explorer on my laptop (or desktop computer, when it is working), and I did try copying it the way you described, Fergus. My mistake was that I tried to 'paste' straight away, and nothing showed up at all in my submission. I hadn't realized a 'clipboard' was to be involved. I'll try to get around to looking up how a clipboard is used again, and try to do such piece depictions as you described, if there isn't something easier available (like later on cutting and pasting the work I've already done when editing Super4*Chess). Back in the 1990s when computers and the internet were apparently really taking off, a condition I've had probably most of my life really took off too (e.g. having visions once in a while), and as a result generally I've tried to not experiment (nor use computers) too much. For example if there's a way to do something with a computer that I know works I'll use it, even if it may cost me just a little bit more time. Finding the time to try to undo the consequenses of an apparently harmless experiment gone wrong when using a computer is something I developed a sort of aversion to years ago.
I still have a couple of hours before I have to get busy today with other things. As I alluded to earlier, H.G., when I copied & then tried to paste the piece symbol as described, literally no text or image appeared in my submission (i.e. nothing happened whatsoever after I tried to paste). Instead, one thing I tried after was to save the webpage for the piece symbol as one of my 'Favourites' (another option besides 'Copy' that is allowed when one right-clicks on such a piece symbol). Then, in actually going to that webpage on the web, I did see the piece symbol in question displayed, in the upper left corner of an otherwise blank webpage. Anyway, I then pasted that http address for that webpage into my submission, but then when I viewed it by re-submitting my submission, all that appeared (of course, I suppose) was the text of the http address (kind of similar to what you were describing for something else). Maybe there was somthing I could have done with the http address that I inserted in my submission, e.g. something kind of similar to what you were describing. After giving up perhaps prematurely, the next day I had my 1x1 board (including piece symbol) representation inspiration for using the Diagram Designer, and I eagerly took the sure route to success, much like a baseball infielder takes the sure throw out to first base, rather than trying to throw out a base runner by throwing to second base. Anyway, the fact that my original copy and paste attempt produced absolutely nothing (such as text) in my submission suggests to me that there may in fact be a bug with, say, the Diagram Designer, unless I did something wrong in copying & pasting (in this case, seems hardly possible).
And did you copy the image or the location of the image? You cannot paste an image in a text form, so if you copied the image instead of its location (URL), then it would explain why nothing appeared.
I got home early today from my weekend tournament, and having taken care of other things at home I thought I'd check my email & various websites tonight at least one time each all the same. That's after getting my inevitable game with GM Sambuev out of the way today (I lost respectably IMHO, getting ground down in a major piece ending after trying to hold a draw with the Petroff Defence). I got your email from today Fergus, and I sent the screenshot (of the Berolina Pawns webpage) to your other email address just now, as you suggested I try instead. H.G. Posted: "And did you copy the image or the location of the image? You cannot paste an image in a text form, so if you copied the image instead of its location (URL), then it would explain why nothing appeared" Yes, apparently in my innocence I tried to just paste the image. The only URL I noticed for it was after I saved it as a webpage Favourite, rather than just clicking on 'Copy' (after right-clicking on the image of the piece symbol).
In my browser (Firefox) when I right-click on an image it pops up a menu with (amongst others) the items
- View image
- Copy image
- Copy image location
- Properties
I'm back and rested after my weekend tournament, finishing clear second at 1.5 points behind GM Sambuev (5/5, again), so I did about as well as I could reasonably hope for. H.G. posted: "In my browser (Firefox) when I right-click on an image it pops up a menu with (amongst others) the items • View image • Copy image • Copy image location • Properties When you select "View image" it displays the image as a separate web page, with the URL of the image (as usual) in the address field above it. You could then select and copy the URL from there. But when you select "Copy image location" it should already have copied the URL without additional mouse manipulations, and without the need for changing what page it was displaying. With "Properties" you get a popup window with all kinds of info on the image, and one of them is the URL. You could also copy that URL from there." At the moment I'm using a Toshiba Satellite laptop with Vista, Windows Explorer browser (clicking on its properties reveals it to be created Sept. 2009). When I right-click on a piece image of the Diagram Designer, the options I can choose to further click on unfortunately do not include View Image or Copy Image or Copy Image Location, but the options available to me do include "Copy" and "Properties". Clicking on Properties does reveal the URL (the same one as if I had clicked on "Save to Favourites" instead of "Properties", I suppose). I'm not sure using this URL (in the way you described in an earlier post) would save me much time (if at all) compared to doing it my way (i.e. by copying Diagram Designer HTML code for a piece on a 1x1 board), that is if needing to over and over insert more than one piece image (of more than 1 piece type, even) to be shown into a Chess Variant Pages webpage submission. However, doing it your way could show a clean/nicer piece image, in that my way of doing it shows the 1x1 square board with a coordinate included (namely "a1", with the "a" unfortunately partly not showing because the board is so small, I assume). Perhaps the choice is a matter of taste?! In any case I may try doing it the way you described at some point, H.G. Thanks for your advice. [edit: I tried do it H.G.'s way just now when editing my old 4*Chess submission, but nothing appeared at all when I used quotes around the URL, or when I did not use quotes. I had followed H.G.'s earlier directions, unless I somehow went wrong (I may try H.G.'s method later if I can figure it out, pending any further thoughts); the directions posted earlier were: "To get an image on a submitted page you would have to write < img src="URL"> in it, with URL the pasted URL."] [2nd edit: I solved my problem using H.G.'s method (to show single piece images from the Diagram Designer in a submission) by using quotes around the URL & using uppercase for IMG SRC, in a test I carried out. The piece image I chose to test out (in a submission, temporarily modifying it by editing) was shown all by itself, underlined as in the Diagram Designer. Note that I put this 2nd edit accidently in my 4*Chess submission thread too.]
For the record, in case an editor has time to make - and better success updating - the changes, the intention was to replace the three ffen diagrams on the Nearlydouble Chess page with the following virtual images respectively:
I can see the ffen diagrams on the Nearlydouble Chess page. So I expect your browser is having some trouble with JavaScript. If you can't switch computers, then I would suggest switching browsers or at least making sure JavaScript is working in your current browser.
Can you describe exactly what happens when you try to submit an edit? You said earlier that perhaps it's because the text boxes contain too much. Apparently that is possible, if unlikely: the maximum size of a "text" type entry in our database is ~65000 characters. I would not expect it to have anything to do with whether the item has been commented on or not.
When my attempt to edit fails I get error 403. When it is successful a garbled version of the variant appears on the next page - but with the "view submission" link at the bottom so that I can continue to the page as edited.
Hmm, I get the 403 error too, whether I try to edit as an editor (which uses a different script) or as you (which would give an error since I haven't entered your password; either the 403 overrides that error or the script doesn't make it to that point). It's odd that it happens for the same script but different itemIDs. Oh, and the garbled version of your page that shows after submitting was added by Fergus to help debug (some other?) problem(s).
Charles, I updated the code in the relevant scripts to access the database with PDO instead of with mysql functions. Please check if this fixes your problem with updating some games. If it doesn't, please provide a detailed report of where it goes wrong and what it says to you.
A 403 error on an unrelated site doesn't mean that the problem you are having here goes beyond the CVP. Given that this site is physically located in the U.K. and the other one is physically located in Sweden, you can bet that what's happening on that site has nothing to do with what is happening on this one. I tried to edit "125 Percent Shogi and 125 Percent Xiang Qi" and got a 403 error like you did. It turns out that the files I updated yesterday are ones available only to editors, and they are not the ones you use. As an editor, I saw links on the screen that you wouldn't see, which led me to a different script. So I will convert the scripts you use to PDO and see if that makes a difference.
About making submissions. I sent a submission email to the chessvar yahoo address one week ago, how long it usually requires to get an answer?
Regarding Paolo's question, I e-mailed updates to old-style pages years ago that have still not been posted.
I haven't fixed it yet. I'll let you know when I have.
Paolo, I have just responded. (We seem to occasionally go through long periods with no emails, during which I tend to get out of the habit of checking the account. Sorry for the delay. And Charles, there was a period before I joined that the emails were more or less completely unread. If there's something specific I should go back and find, let me know.)
I changed the scripts from mysql to PDO, and I changed the FORM action to a full URL, and it still didn't fix the problem. So I then turned to testing the data sent for "125 Percent Shogi and 125 Percent Xiang Qi." I deleted each field in turn until I stopped getting a 403 error. It was something in the Setup field that was the problem. I then deleted parts of Setup until I isolated what was causing the problem. It came down to the expression "../../". This appeared twice, and when I changed both to "/", all it complained about is that I didn't enter the right password. I don't know why it hiccups over this, but if you will just change your links to use full URLs, that should eliminate any instance of "../../" and allow your updates to get through.
In order to debug this, I have temporarily made myself the author of Hexgi listed in the database.
I debugged the script, edited Hexgi to use three-color boards, and returned the authorship to you. Note that the ending period, which you didn't include in your quotation of what you need to add, is a very important part of the checker pattern. It is not a mere divider. The period after each sequence of colors (identified by digits) tells it to repeat that pattern for the rest of the rank.
Sorry for chipping in again. I submitted, but the Step 3 just appeared as a blank page; however now the game categories appear in the "Your Unreviewed Submissions" page, so it's fine. Right?
Paolo, I'm not aware of any problems right now. If you are, please give me a step-by-step of what you are doing, including the URL of each page.
I am not sure what happened, but now it is definitely fine :) It's added in index/msdisplay.php?itemid=MSthroughthelook
I don't know what happened, but it seems my article on interactive diagrams has been completely corrupted, all less-than signs in it being interpreted as HTML tags, rather than being printed. I am pretty sure this wasn't the case when I last touched it. So it seems there is something changed in the rendering scripts that corrupts the display...
Your page and msdisplay.php were both last updated a month ago, but display_user_submission.php was last updated on March 4th. I just modified this by commenting out each line that applied reverse_htmlentities() to one of the page content strings, and it fixed your page. I'm not sure why the code uses this function or how this could affect other pages. I do recall seeing code for converting page content strings to htmlentities before writing them to the database, and maybe this was for keeping the SQL string from being corrupt. But now that I switched the code for writing user submissions to the database over to PDO with prepared statements, that's no longer an issue, and I removed the code for converting strings to htmlentities before writing the SQL string.
63 comments displayed
Permalink to the exact comments currently displayed.