Place the chessboard inside the node instead, or optionally

Taxoman - November 15, 2008 - 22:43
Project:Chess
Version:5.x-0.09
Component:Code
Category:feature request
Priority:normal
Assigned:EoinBailey
Status:active
Description

I think that the board should be placed inside the node itself, preferably all at the top with the moves to the right side of the board. That would look more attractive.
As a block, when placed in the content area, it will be pushed further down as more comments are added...

#1

Taxoman - November 15, 2008 - 22:45

There should be blocks available, though, and especially for display elsewhere on the site, see yet another feature request for that :-)

#2

EoinBailey - November 17, 2008 - 10:35
Assigned to:Anonymous» EoinBailey

You'd like to be able to display a game somewhere else on the site?

I thought about that, tbh, I haven't worked out how to do that in a way that will allow the user to choose which of the active/old games to display. I can setup a block to show a game... and I guess add in an option to show a game at random, or allow the user to input a game_id, either manually or via a drop down box that shows game titles.

Is that what you're after?

#3

Taxoman - November 17, 2008 - 16:50

Yes, having opportunity to render/place the board inside the chesss game node, and also inside any other node using markup, would be excellent.

If you think about the learning situation, there is yet another quite uncommon feature that would make your module truly rock:

a) build into the syntax that places a chessboard in a(ny) node, that it is possible to specify both the width and height of the squares, BUT also which move (where in the game) to display. Based on a move number, the chessboard module will go through all recorded moves and present the situation at the moment of that move number, with prev./next links to move through the game.
b) PGN export option from anywhere in an old game being displayed as described above.

I am not aware of any CMS/web chess games that offers such things.

Edit: BTW: how about an option PER GAME to decide where that block should be placed, and to specify the accompanying piece/square size? That could be a setting that the admin could enable to override those two defaults from within each chess game.

#4

EoinBailey - November 18, 2008 - 08:34

a) If I code in the abiltiy to display a game, I plan on starting with displaying a game at it's current state, but I was thinking about putting in a method to specify a move, it wouldn't be too difficult.

b) Once PGN export is up and running, it will work for any state in the game.

Ideally I want to use AJAX to move through a games moves, but I've never used AJAX before (Javascript yes, so I'm not too concerned about picking it up, it's just a matter of finding the time to do it!)

As for the last point, a per game setting with regard to the position and size of the board, they certainly go hand in hand, it shouldn't be too hard to add it in, but at the moment that's on the bottom of the feature list! PGN is what I'm working on at the moment - I want to finish that before I start a new feature.

 
 

Drupal is a registered trademark of Dries Buytaert.