Skip to main content

WP-Chessflash

The Chessflash PGN Viewer is a very nice and easy way to display chessgames on a website. I wrote a simple plugin which makes the use in WordPress blogs really easy: just type [​pgn][​/pgn] and place the pgn-data in between the tags.

You can download the plugin from the WordPress Plugin Directory (chessflash.swf version 2.16 is included with a different piece set than the original from chessflash.com). Just unzip and copy the wp-chessflash directory in you wordpress plugins directory and activate the plugin via wordpress dashboard.

It’s my first plugin, so there might be some silly bugs 😉

Colors and piece characters can be set in the options page in the WordPress ‘Settings’ menu. Usage is explained in the readme.txt in the zip-file.

An example:
[​pgn flipboard=true]
[Event “London casual”]
[Site “London”]
[Date “1912.??.??”]
[Round “?”]
[White “Lasker, Edward”]
[Black “Thomas, George Alan”]
[Result “1-0”]
[ECO “A83”]
[PlyCount “35”]
[EventDate “1912.??.??”]
[EventType “game”]
[EventCountry “ENG”]
[Source “ChessBase”]
[SourceDate “1998.11.10”]

1. d4 f5 2. Nf3 Nf6 3. Bg5 e6 4. Nc3 Be7 5. Bxf6 Bxf6 6. e4 fxe4 7. Nxe4 O-O 8.
Bd3 b6 9. Ne5 Bb7 10. Qh5 Qe7 11. Qxh7+ Kxh7 12. Nxf6+ Kh6 13. Neg4+ Kg5 14.
h4+ Kf4 15. g3+ Kf3 16. Be2+ Kg2 17. Rh2+ Kg1 18. Kd2# 1-0

[​/pgn]

gives the following result:

23-11-2014: problem in WordPress 4.0.1

The last WordPress update has caused a problem with the plugin. I hope to fix this soon.

24-11-2014: fixed some bugs that were causing the problems. Current version is 1.2

Leave a Reply

Your email address will not be published. Required fields are marked *