Comments/Ratings for a Single Item
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.
25 comments displayed
Permalink to the exact comments currently displayed.