Page 1 of 1

Some Improvement Suggestions

Posted: Thu Feb 16, 2017 1:57 pm
by uyasar
I want to suggest some improvements, some features for this great plugin;

1. Pgn viewer: I know through game editor we can add and show pgns in any posts but maybe it would be more practical if we could add pgn and fen using shortcodes like [fen] and [pgn] shortcodes.
2. Shortcodes on the text editor: It would be practical to be able to insert games puzzels through a button in the text editor itself. Without memorising or copy-pasting the shortcodes.
3. I can insert puzzles and games individually but when i imported the "1001 great checkmates" pgn and tried to show it on a page it just didnt work. And maybe it would be better if we could show random puzzles on a page.

Thank you

Re: Some Improvement Suggestions

Posted: Thu Feb 16, 2017 3:14 pm
by alf
Thank you.

That's a very good idea :)

I will work on that this weekend. Thanks for the great idea. That's really helpful.

Re: Some Improvement Suggestions

Posted: Thu Feb 16, 2017 8:48 pm
by alf
Support for FEN short tags has been added tonight:

Code: Select all

[fen:<fen>]


example of use:

Code: Select all

[fen:r2q1rk1/pp1p1p1p/5PpQ/8/4N3/8/PP3PPP/R5K1 w - - 0 1]


or shorter

Code: Select all

[fen:r2q1rk1/pp1p1p1p/5PpQ/8/4N3/8/PP3PPP/R5K1]


turn, castling etc is not important in a simple board view.

The [pgn] tag takes more time to implement. I think pgn with just one game is the way to go, something like

[pgn:[Event "#3 Chess: 5334 Problems, Combinations, and Games by Laszlo Polgar"]
[Date "1994.??.??"]
[Round "-"]
[White "Mate in one"]
[Black "White to move"]
[Result "*"]
[FEN "r2q1rk1/pp1p1p1p/5PpQ/8/4N3/8/PP3PPP/R5K1 w - - 0 1"]

1. e2 e4 2. Nf3 Nf6 1-0]

More than one game is easiest to do using the standard import PGN feature in the plugin.

I will look more into this during this weekend.

Re: Some Improvement Suggestions

Posted: Sat Feb 18, 2017 12:28 am
by alf
I have implemented support for the [pgn] tag now. I have also modified the [fen] tag and the other tags according to Wordpress guidelines.

The new format is

for fen: [fen]<fen string>[/fen]
for pgn: [pgn]<pgn string>[/pgn]

For pgn, I recommend enter Text mode(not Visual) before entering the code. Otherwise, there may appear html tags and non-pgn content inside the tag.

For other tags, the format of the shorttag has changed to
[chess <properties>]

example:
[chess game="1" tpl="5"] for showing game with id 1 using Game Viewer 5
[chess db="1" tpl="1"] for showing the games from database 1 using template 1.
[chess tactics="1" db="2"] for showing tactics board(drag and drop) for the games in database id 2.

I have documented this on the Support page of the plugin.