Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call pgn from url #50

Closed
yo35 opened this issue Nov 6, 2015 · 10 comments
Closed

Call pgn from url #50

yo35 opened this issue Nov 6, 2015 · 10 comments

Comments

@yo35
Copy link
Owner

yo35 commented Nov 6, 2015

born61 said:

hi,
copy and past data pgn is hard
can i call url of my data, like
[pgn data-url="mygame.pgn" /]
thanks

@yo35
Copy link
Owner Author

yo35 commented Nov 6, 2015

Hi,
Currently, it is not possible to load the PGN data from a distant URL. However, this may be a useful feature to add to the plugin.

@italianplayer
Copy link

well, yours is a nice plugin but to be the best you have to know what is at a chessplayer.
Here you can see a simple example looking at the source code
http://wpdev1.altervista.org/test/index.html
I hope the new version will come

@italianplayer
Copy link

a clarification: the batch file contains the standard format. it may contain several matches. currently the plugin handles no more games. matches are selectable from a select box
see example http://wpdev1.altervista.org/test/index.html
regards

@italianplayer
Copy link

hello , do you think to solve this request ? initially you could read the pgn locally . for the remote pgn there are problems of crossdomain ? you could make an asynchronous call to copy the pgn locally and then open it in the viewer . thank you

@yo35
Copy link
Owner Author

yo35 commented Feb 1, 2016

Hi,
Clearly, this feature is relevant, and will be implemented at some point in the plugin. Hopefully I will be able to work on it in the next weeks, but I cannot commit myself on a release date for this.

@italianplayer
Copy link

hello ,
there's news about changing the plugin for this request ? load and select game from a local pgn files
thanks

@yo35
Copy link
Owner Author

yo35 commented Jun 8, 2016

This request is still in the to-do-list, but still it has no release date.

@italianplayer
Copy link

hello ,
there's news about request ? load data from a local file pgn
thanks

@yo35
Copy link
Owner Author

yo35 commented Aug 29, 2016

Hi,
Same status as 2 months ago: it will be done for sure, but no release date for now.

@yo35
Copy link
Owner Author

yo35 commented Jan 16, 2017

Done in version 4.7 (just released).

The syntax is [pgn url="..." game=...]. The attribute game=... allows to select which game in the targeted .pgn file should be displayed (use e.g. game=0 for the first game of the file, game=1 for the second, etc...).

Just a restriction: this feature does not (and will not!) work with cross-domain URLs, for security reasons. However, you can install a cross-domain proxy on your website to bypass this limitation (but it is your responsibility).

@yo35 yo35 closed this as completed Jan 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants