Chessgame Shizzle

Description

Chessgame Shizzle is a nice way to integrate chessgames into your WordPress website. Ideal for chess clubs, your chess blog, or any chess related website.
Editors and guests alike can add chessgames in PGN format through a frontend form. All chessgames are available in a custom post type as a single post with an archive list and taxonomies, it couldn’t be more simple. Included widgets give you many ways to display your chessgames.

Current features include:

  • List view and single view for chessgames as a WordPress post.
  • Easy to use form on the frontend to add a chessgame.
  • Simple and clean admin interface that integrates seamlessly into WordPress admin.
  • JavaScript enabled game viewer (PGN4WEB).
  • Several widgets to display latest game, featured game or a list of recent games.
  • Moderation, so that you can check a chessgame before it is visible.
  • Subscribing to notifications.
  • Board themes and Piece themes.
  • Anti-spam features with Nonce, Honeypot, Form Timeout for upload form.
  • Generate (featured) images from a chess position.
  • Localization. Own languages can be added very easily through GlotPress.

… and all that integrated in the stylish WordPress look.

Translations

Translations can be added very easily through GlotPress.
You can start translating strings there for your locale. They need to be validated though, so if there’s no validator yet, and you want to apply for being validator, please post it on the support forum. I will make a request on make/polyglots to have you added as validator for this plugin/locale.

Demo

Check out the demo at http://svpegasus.nl/

Compatibility

This plugin is compatible with ClassicPress.

Installation

Installation

  • Install the plugin through the admin page “Plugins”.
  • Alternatively, unpack and upload the contents of the zipfile to your ‘/wp-content/plugins/’ directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress.
  • For the form, add ‘[chessgame_shizzle_form]’ in a page. That’s it.
  • For managing chessgames, check ‘Chessgames’ in the admin menu.

License

The plugin itself is released under the GNU General Public License. A copy of this license can be found at the license homepage or in the chessgame-shizzle.php file at the top.

FAQ

I added a chessgame, but when viewing I get a 404 error.

Please go to Dashboard > Settings > Permalinks and hit ‘Save’ twice. That should flush your permalinks and make it work.

Where is my index page with the archive of chessgames?

You can browse to /chessgame and you will see the archive page. The template used for this is archive.php.

Which shortcodes are available?
  • ‘[chessgame_shizzle_form]’ for the upload form.
  • ‘[chessgame_shizzle_simple_list]’ for a simple list with max 500 entries.
  • ‘[chessgame_shizzle_game postid=”536″]’ to show a single game that was published in the chessgames post type.
  • ‘[chessgame_shizzle_game_extended postid=”536″]’ to show a single game that was published in the chessgames post type.
What about Spam?

By default this plugin uses:

  • Nonce: Will verify if you really loaded the page with the form first, before posting a chessgame. Spambots will just submit the form without having a Nonce.
  • Honeypot feature: Hidden input field that only spambots would fill in.
  • Form Timeout: Check if the form has been submitted too fast.

New submitted chessgames will be set as pending, waiting to be moderated. When someone adds a chessgame that is considered spam, it will not be accepted and the user will get a message on the frontend form.

Reviews

December 25, 2017
I use it in order to enable all members of our club to submit their games and archive them. So others can look at them and comentate them. This seems like the only plugin that I have found, that enables exactly this use-case. It is a very good start and I hope that we will see some additions (like direct PGN-Upload for all users, instead of just the Admin) and more possibilities to filter the lists of the games (tags and categories), more display settings and better mobile compatibility 🙂
Read all 1 review

Contributors & Developers

“Chessgame Shizzle” is open source software. The following people have contributed to this plugin.

Contributors

“Chessgame Shizzle” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Chessgame Shizzle” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.3

  • 2019-05-29
  • Small CSS fix for pagination.
  • Change arrows in next/prev pagination.
  • Drop check for mime-type on import, too many problems.
  • Set timeout from 4s to 1s.
  • Support new wp_initialize_site action for multisite.
  • Update chessParser from 2017-04-08 to current Git.
  • Fix quoting problems in pgnParser cleanPgn function.

1.1.2

  • 2019-03-05
  • Add dropdown with prefab results to upload form.
  • Add dropdown with prefab results to admin metabox.
  • Add pagination for simple list shortcode.
  • Flush cache on save_post action for recent chessgame.
  • Add function chessgame_shizzle_clear_cache.
  • Use esc_html functions everywhere.
  • Use static vars instead of global vars in messages.
  • Small fixes found by the phan tool.
  • Add new file functions/cs-post-meta.php for meta fields for posts with shortcodes.

1.1.1

  • 2019-01-23
  • Only load admin files on wp-admin.
  • On settings page, have separate functions for $_POST update.
  • Add some accessibility fixes.
  • Don’t use transients for hashed field names, is faster this way.
  • Add Variation text to help text.

1.1.0

  • 2018-09-23
  • Add link to frontend to generate image from position. (Requires GD).
  • Add button to admin preview to generate featured image from position. (Requires GD).
  • Add boardtheme ‘newinchess’.
  • Add class ‘MFEN’ for generating images.
  • Add ‘dir’ to piecethemes.
  • Add function ‘chessgame_shizzle_get_piecetheme_dir’.
  • Add function ‘chessgame_shizzle_get_boardthemes_full’.
  • Add function ‘chessgame_shizzle_get_boardtheme_full’.
  • Add cs-frame-post_id ID to iframes.
  • Small CSS updates for iframe widgets.
  • Small CSS updates for admin preview.

1.0.9

  • 2018-08-31
  • Add shortcode ‘chessgame_shizzle_game’ for a single game.
  • Add shortcode ‘chessgame_shizzle_game_extended’ for a single game.
  • Set timeout from 7s to 4s.

1.0.8

  • 2018-08-03
  • Add option to add chessgames to main RSS Feed.
  • Add download link for PGN file.
  • Add widget for searching chessgames.
  • Add boardthemes beyer, blue, chesscom_blue,, chessonline, falken, informator, pgnviewer_yui, zeit.
  • Add boardthemes bamboo, burl, coffee_bean, ebony_pine, executive, marble, marble_blue, marble_green, wenge.
  • Update boardtheme wood.
  • Set default options to use the cache.
  • Cleanup piecethemes.

1.0.7

  • 2018-07-16
  • Add screen-reader-text to metadata link in single view.
  • Rename boardtheme chess24 to wood and fix it.
  • Add boardtheme magazine.
  • Add ‘noscript’ to upload form.

1.0.6

  • 2018-06-29
  • Add tags and categories to meta information at frontend on single view.
  • Add metabox on admin editor for preview of pgn game.
  • Add preview board for theme settings.
  • Add antispam function for form timeout.
  • Improve antispam function for honeypot.
  • Add settingstab for antispam options.
  • Add example text to the privacy policy.
  • Update to pgn4web 3.03.
  • Add function ‘chessgame_shizzle_get_field_name’.
  • Fix warning for PHP 7.2.

1.0.5

  • 2017-12-15
  • Add more boardthemes.
  • Add more piecethemes.
  • Change highlightcolor.
  • Load JS/CSS in iframe directly, not through wp_footer.
  • Simple list really only fetches max 500 posts.

1.0.4

  • 2017-09-28
  • Always enqueue our own media (for iframe widgets).
  • Slightly smaller board in iframe.
  • Add widget for featured chessgame in iframe.
  • Improve some ECO codes.

1.0.3

  • 2017-09-26
  • Add settings page.
  • Add boardthemes.
  • Add piecethemes.
  • Add email notifications.
  • Add widget for recent chessgames.
  • Add widget for most recent chessgame in iframe.
  • Revert to original color of highlighted move.
  • Move thirdparty software to own dir /thirdparty.
  • Improve some ECO codes.

1.0.2

  • 2017-04-08
  • Add admin page for importing PGN games.
  • Add PgnParser and accompanying libraries.
  • Add link to simple list.
  • Support all ECO codes.
  • Rename themefiles from chessimager.

1.0.1

  • 2017-03-26
  • Add shortcode ‘chessgame_shizzle_simple_list’.
  • Save meta key for this shortcode.
  • Better placeholder for date in upload form.
  • Prefix all function names.
  • Use esc_html functions and similar for escaping.
  • Sanitize and validate data.
  • Return the form with an error for Honeypot and Nonce.
  • List third parties on about page.
  • Do not concatenate strings, but use sprintf on about page.

1.0.0

  • 2017-03-21
  • Initial release.