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

Load and view several games loaded from a database #38

Open
yo35 opened this issue Jul 12, 2015 · 2 comments
Open

Load and view several games loaded from a database #38

yo35 opened this issue Jul 12, 2015 · 2 comments

Comments

@yo35
Copy link
Owner

yo35 commented Jul 12, 2015

Tesctassa said:

Hi there! I've put up a simple archive of chess tournaments held where I live but since for each tournament there are many games, and hence I've got many on a single page, I've created a script that allows the user to load a single game to view, but since this is done after the page has loaded, the chessboard viewer won't recognize the game.

Is there a way to manually call it on a div (or other element) containing a game?

@yo35
Copy link
Owner Author

yo35 commented Jul 12, 2015

If you are familiar with JavaScript and jQuery, you can reuse the elements of the plugin to achieve this. For instance:

$('#somewhere').chessgame({
    pgn: '...', // replace with the PGN text of the game you want to display
    navigationBoard: 'above', // or 'floatLeft', 'floatRight', 'frame', 'below', 'none'
    navigationBoardOptions: { // customize the navigation board
        squareSize: 40,
        showCoordinates: true,
        flip: false
    },
    pieceSymbols: 'figurines' // or 'native', 'localized', '(ABCDEF)'
});

(look at the comments in the file /js/uichess-chessgame.js for more details).

@yo35
Copy link
Owner Author

yo35 commented Jun 10, 2022

Several users have been requesting this feature for quite a while now (see also in other issues #93 and #168). Obviously, considering that the goal of the plugin is to allow representation of chess content in WordPress pages/posts, there are some important use-cases that cannot be addressed because of this feature is missing: think especially of publishing the games played in a tournament or an event.

On the other hand, considering that this plugin has been developed on my spare time so far, I've never been able to dedicate enough time to develop this feature. And unfortunately, spare time is not infinitely extensible... ;-)

For this reason, I've decided to launch fund raising campaign on kickstarter:
https://www.kickstarter.com/projects/yoann-le-montagner/rpb-chessboard-game-list-visualization

The idea is to collect a rather moderate amount of money (1000 EUR), in order to fund a few days of development. Considering the number of active installs of RPB Chessboard, it should be possible to reach this objective if all the people that benefit from the plugin accept to donate a few euros. In return, I undertake to devote the time that needs to be devoted to implement this multiple game feature during this summer (it will be paid-time then, thus more easily allocatable than spare time !).

Thank you beforehand for your contribution.

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

1 participant