pgn4web
Forum Replies Created
-
Forum: Plugins
In reply to: [Embed Chessboard] I have no tech background; just a strong chess playerSorry, a bbcode parameter is not available to flip the board; it’s a design choice to have White on bottom as default.
The user can flip the board after load by clicking the shortcut square E7.
Forum: Plugins
In reply to: [Embed Chessboard] I have no tech background; just a strong chess player1) I don’t know why only the top half of the chessboard is shown and I can’t debug without knowing the exact text input and the syntax you use for the pgn bbcode. It might be an unexpected interaction with your wordpress template. Or it might be an misuse of the “height” parameter, I noticed something unexpected related to a possible misuse of the “height” bbcode parameter. The best suggestion is to remove any use of the “height” bbcode parameter first (if any) then trying using something like height=1000 and see what happens. You could also remove the “height” parameter and try setting layout=horizontal and see what happens again.
2) those are the bbcode parameters; for example to avoid autoplay you could use:
[pgn autoplayMode=none] e4 e6 d4 d5 [/pgn]
This would change the behavior for that one chessboard only, there’s a plugin option settings to change the behavior for all the chessboards on the site.
In order to show a position instead of a full game, you should enter a pgn fragment using the FEN string, like:
[Result "0-1"] [SetUp "1"] [FEN "4r1k1/2p2ppp/5q2/2Pp4/1Pn2Bn1/r5P1/5PBP/1Q1R1K1R b - - 0 1"] 1... Nd2+ 2. Rxd2 (2. Bxd2 Qxf2#) 2... Ra1 0-1
See here for more info on FEN strings: https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation
Sorry for your problems with the chess plugin, however a minimal amount of knowledge both with respect to the standard chess notation and with managing a wordpress site is required.
Sorry I can’t provide more specific help, but I really can’t debug the interaction of the chess plugin with wordpress templates.
Forum: Plugins
In reply to: [Gutenberg] Updating failed; Publishing failedUpdated to plugin version 2.0.0 but the “updating failed” error is still there ??
Forum: Plugins
In reply to: [Gutenberg] Updating failed; Publishing failedUpdated to gutenberg 1.9.1 and no changes, still unable to update/publish posts.
Forum: Plugins
In reply to: [Gutenberg] Updating failed; Publishing failedIt happens here as well.
Tried both on www.ads-software.com 4.9.1 and on www.ads-software.com nightly releases.
Tried both gutenberg 1.8.1 and on gutenberg 1.9.0.
Tried on several different browsers: latest chrome, old Internet Explorer, Safari… it’s NOT a browser issue.
The chrome console reports an error in load-scripts.php?…
https://server.com/path/to/wordpress/wp-json/wp/v2/posts/37 403 (Forbidden)Forum: Plugins
In reply to: [Gutenberg] support/compatibility for bbcode plugins using add_shortcode()Thanks for the reply.
Looking forward to the developments and the new opportunities offered to plugin developers by the block’s behavior.
With respect to your first question, here is where I got confused because I could not get the gutenberg plugin to work on my test site with www.ads-software.com 4.9. However the error message I get seems to be completely unrelated to bbcodes and happens on my test environment even after a fresh install of www.ads-software.com 4.9 and gutenberg. Every time I try to publish an edit from gutenberg I get an “update failed” error with the browser console complaining of error “wordpress/wp-json/wp/v2/posts/10 403 (Forbidden)” from the “load-scripts.php?c=1&…”. Until this is fixed on my test environment I can’t really assess the impact on my bbcode plugin.
Forum: Plugins
In reply to: [Embed Chessboard] How to install Alternative chesspiece identifier lettersThe functionality requested is currently not supported.
See also the following entry of the pgn4web issue tracker: https://sourceforge.net/p/pgn4web/tickets/32/
Note that the use of the figurine font for the chess notation should mitigate the need of customizing piece initial according to the local language.
With respect to pgn4web only accepting PGN data inputs in the English language, many chess software should allow loading a PGN file in Polish for example and saving it in English as needed by pgn4web.
This feature is unlikely to be added to pgn4web in the near future.
Forum: Everything else WordPress
In reply to: broken plugin update processThanks… emailed and after a few minutes… it’s fixed now!
Forum: Plugins
In reply to: [Embed Chessboard] Responsive ChessboardI’ll have a deeper look, however at first sight I’m not really in favor of quick & dirty patches when a given issue should be better addressed otherwise.
The underlying board.html page used by the plugin is a very general page used in many different contexts with the pgn4web project; as such any quick & dirty fix to your issues might not work well elsewhere. Truth is, board.html was not designed as a responsive page and a major rewrite would be required. If you look at the main pgn4web project the dynamic-frame.html page is responsive however it’s not used by the plugin and would require major modifications as well for that purpose.
Given the limited time I’m spending on pgn4web development nowadays, I’m afraid the chances of a truly responsive plugin are very slim at the moment.
You can still publish your modifications in a separate plugin, no issues with that, provided that you make it clear is a modification from the original pgn4web plugin and is developed by a different author.
- This reply was modified 8 years ago by pgn4web.
Forum: Plugins
In reply to: [Embed Chessboard] Option for algebraic notationWhen I write down my own games during play my handwriting is an unreadable mess: should I then add a special mode in pgn4web to replicate that as well?
Forum: Plugins
In reply to: [Embed Chessboard] Option for algebraic notationYou can switch to textual moves display from the wordpress admin page, settings menu, EmbedChessboard item, advanced settings section: enter “md=t” (without quotes) in the extended options textbox.
This would change the moves display for all chessboards. To change the feature for one chessboard only, you should add the “eo=t md=t” option to the pgn tag.Not sure why would anyone want to switch to textual moves display, the figurine display is easier to read and it’s not language dependant. Please also note that, if you select the move text in figurine display, copy and paste in notepad, you automagically get the correct textual moves.
I’d be glad to hear what’s your driver for textual move display.
What’s the URL of your site?Forum: Plugins
In reply to: [Embed Chessboard] wp_enqueue_scriptAny suggestion welcome.
Forum: Plugins
In reply to: [Embed Chessboard] wp_enqueue_scriptSorry but I find those “optimization” tools a waste of time.
I’m open to review any specific suggestion and code patch. I’m also open to address any real issue with the plugin; not scoring 100% in a random validation/optimization test is not a big deal.
Forum: Plugins
In reply to: [Embed Chessboard] wp_enqueue_scriptI’m not a www.ads-software.com expert either, but it seems to me that wp_enqueue_script applies to script loaded by the wordpress page, while the pgn4web scripts are loaded into an iframe added to the page, hence outside the scope of wp_enqueue_script.
I might be wrong though, I’m open to more specific suggestion and actual code patches to improve the plugin.
Forum: Plugins
In reply to: [Embed Chessboard] FEN tag problemYou need to read the instructions first. Then read again the section about tag parameters. Then practice for example with the height tag parameter and the layout tag parameter.