该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

WP-ChessFlash

描述

Allows display of a interactive chessgame using the ChessFlash PGN viewer in posts and comments. Most of the settings of the Chessflash can be set either through adding parameters to the [pgn] tags or through the options page.

NB ChessFlash PGN viewer has been followed up by KnightVision, this plugin still uses the older version.

Usage:

  • paste pgn-code between [pgn] [/pgn] tags
  • use of parameters with their default values: [pgn height=350 tabmode=false flipboard=false initialply=22]…[/pgn]
  • additional parameters (puzzle, twoboards, boardonly) must first be allowed in options page
  • colors and piece characters can be set in options page

安装

  1. Upload directory wp-chessflash to to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Customize the viewer through the options page in the ‘Settings’ menu in WordPress

常见问题

ChessFlash has been replaced with KnightVision. Why doesn’t this plugin use that newer viewer?

I plan to update to the KnightVision version, but then I will probably use a new name for the plugin as well.

Why can’t I see the vieuwer on mobile devices?

The viewer uses Flash, which unfortunately doesn’t work on tablets and mobile phones.

Why are the chess pieces different from those on [chessflash.com](http://chessflash.com/chessflash.html)?

I recompiled chessflash.swf with a different piece set for use in Jin: merida.ead-01.zip. The original piece set didn’t match the diagrams I use on the website of my chess club. You can replace chessflash.swf in the plugin directory with the original version to get the original pieces.

评价

此插件暂无评价。

贡献者及开发者

「WP-ChessFlash」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「WP-ChessFlash」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.2

  • bug fixes for WordPress 4.0.1

1.1

  • fixed the checkboxes to allow ‘boardonly’ and ‘puzzle’ tags
  • added some text to explain ‘initialply=xx’ option

1.0

  • using Chessflash version 2.16 with Merida piece set
  • new parameter (initalply=xx)to start the player at specific ply number

0.9

  • using Chessflash version 2.13 (now possible to change piece characters);
  • introduced options page to set colors and piece characters and allow extra parameters;
  • added transparency to flash object to avoid dropdown menus falling behind object;
  • known issue: Firefox has problem with transparency -> playback with arrowkeys is not OK (one click is 2 plies). This is an known Firefox problem, not yet fixed in Firefox 3.5.2.

0.5

  • added possibility to change some of the parameters with attributes in the [pgn] opening tag. Eg [pgn height=350 tabmode=false flipboard=false] [/pgn].

0.4

  • resolved the problem of the replacement of ‘…’ by WordPress.

0.3

  • resolved the problem of pgn-files being too big by using a more low-level approach at filtering out the pgn-codes. Problem was caused by a memory limit in preg_replace_callback;
  • known issue: wordpress removes … and replaces this with something else. The chesscode works anyway.

0.2

  • encoding of the pgn-data now in plugin, so you can paste in normal pgn-data between the tags;
  • bug: does not work with larger pgn-data, not caused by Chessflash.swf -> has to do something with the way the pgn-data is filtered from the content.

0.1

  • reworked code from plugin show-fen a bit to find the pgn-code in between [pgn] [/pgn] tags;
  • seems to work with using ChessFlash.swf locally and pasting encoded pgn-data (from http://chessflash.com/chessflash.html).