Page 1 of 1

The Chessboard not showing correctly on mobile

Posted: Thu Feb 16, 2017 1:52 pm
by uyasar
The chessboard and the pieces, especially the white pieces do not show correctly on mobile. On iphone safari i tried.

Re: The Chessboard not showing correctly on mobile

Posted: Thu Feb 16, 2017 3:04 pm
by alf
Thanks, I will look at that issue tonight.

Have you tried setting some of the other piece types in Word Press admin->DHTML Chess setup(One not starting with "svg")?

There might be some problem with scaling of the SVG pieces. The chess pieces starting with SVG are vector based, i.e. they don't have any resolution but has to be scaled using code. Try using the "Alpha" or "Alphapale" type.

Re: The Chessboard not showing correctly on mobile

Posted: Thu Feb 16, 2017 3:12 pm
by alf
I think I have found out why the chess pieces shows up incorrectly. it's a problem with the SVG files I have used. I need to insert some viewport properties there to make them scale properly in some browsers. I have will have a fix ready in a couple of hours.

Re: The Chessboard not showing correctly on mobile

Posted: Thu Feb 16, 2017 4:54 pm
by alf
A new wordpress version which takes care of this issue has now been released.

If you have access to a command shell on your web server, you may execute the following code from within wp-content/plugins:

Code: Select all

rm -rf dhtml-chess-wordpress.zip
wget http://www.dhtml-chess.com/api/zip/dhtml-chess-wordpress.zip
rm -rf dhtml_chess
unzip dhtml-chess-wordpress.zip -d dhtml_chess


It will download the wordpress zip file from dhtmlchess.com and unzip it into the dhtml_chess folder. It makes the whole upgrade process a lot easier. You may save the code above as an .sh file, example dhtmlchess.sh and run by typing ". dhtmlchess.sh"

Re: The Chessboard not showing correctly on mobile

Posted: Thu Feb 16, 2017 8:05 pm
by uyasar
thank you :)