The Chessboard not showing correctly on mobile

This is the place to post bug reports for the DHTML Chess plugin for WordPress
Post Reply
uyasar
Posts: 27
Joined: Tue Feb 14, 2017 2:01 pm

The Chessboard not showing correctly on mobile

Post by uyasar » Thu Feb 16, 2017 1:52 pm

The chessboard and the pieces, especially the white pieces do not show correctly on mobile. On iphone safari i tried.

alf
Site Admin
Posts: 111
Joined: Sat Feb 18, 2017 11:02 pm

Re: The Chessboard not showing correctly on mobile

Post by alf » Thu Feb 16, 2017 3:04 pm

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.

alf
Site Admin
Posts: 111
Joined: Sat Feb 18, 2017 11:02 pm

Re: The Chessboard not showing correctly on mobile

Post by alf » Thu Feb 16, 2017 3:12 pm

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.

alf
Site Admin
Posts: 111
Joined: Sat Feb 18, 2017 11:02 pm

Re: The Chessboard not showing correctly on mobile

Post by alf » Thu Feb 16, 2017 4:54 pm

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"

uyasar
Posts: 27
Joined: Tue Feb 14, 2017 2:01 pm

Re: The Chessboard not showing correctly on mobile

Post by uyasar » Thu Feb 16, 2017 8:05 pm

thank you :)

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests