WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP_MFEN

This plugin will convert FEN (Forsyth–Edwards Notation) strings contained in your blog's posts and comments and turn them into images.

It's not working! It says something about the `cache` directory.

This occurs if the script is unable to make a directory to place its cached images. Just go to where you installed the plugin and make a new directory called cache and, if necessary, give it the proper permissions (777) for PHP to save files to it.

How exactly do I use this in my posts or comments?

To make a FEN image appear, simply use something like [fen]rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1[/fen]. It's recommended that you put it in a paragraph tag of its own (i.e. use two enters before and after that line) for aesthetic reasons. Note that you can drop everything after the pieces information (which is everything before the first space) since that information is not used in the generation of the image.

You may want to add a caption, e.g. [fen caption="The board's starting position"]rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR[/fen].

Why does it generate images? Wouldn't it be much more efficient to generate an HTML table?

It's true that HTML tables or divs would be more efficient, but they're also slightly less usable. This way, you can generate chess positions for use in any container. You can save them, send them via e-mail or include them in other documents.

How do I customize this? I want to use different colors, pieces and custom CSS.

Customizing the default settings must be done by editing the config.php file. An admin page is planned, but I'm not sure exactly when I'll get around to making it. Changing the pieces can be done simply by adding a new directory with images and changing the default, though you may need to empty the cache directory afterwards. By default, WP_MFEN includes a bit of CSS to get things working; to change it, it's recommended you copy and paste it into your own document and then disable the default in the config (don't edit the CSS in the plugin file, since it'll be reverted if you ever decide to update it).

I want to use this thing in my non-WordPress site, too.

Just use mfen.php directly. That file does the actual work, and it does not depend on the presence of WordPress.

I found a bug or have a feature request!

Great, let me know and I'll fix or incorporate it! When I find the time, that is. Which may be never. Contributing patches is fine too!

Requires: 2.6 or higher
Compatible up to: 2.7
Last Updated: 2009-5-23
Downloads: 185

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.