How to post chess games
Re: How to post chess games
That's a weird request, as by the time the user scrolls down, he has missed the start of the game.
What about the auto-playing starts when the game appears on the screen?
Something like Google's image search:
https://www.google.com/search?hl=en&com ... sQKoyOiRCg
There, only the top images are loaded, others are loaded when you scroll down to see them.
What about the auto-playing starts when the game appears on the screen?
Something like Google's image search:
https://www.google.com/search?hl=en&com ... sQKoyOiRCg
There, only the top images are loaded, others are loaded when you scroll down to see them.
- kingliveson
- Posts: 1388
- Joined: Thu Jun 10, 2010 1:22 am
- Real Name: Franklin Titus
- Location: 28°32'1"N 81°22'33"W
Re: How to post chess games
I have seen it on other forums and kind of like the idea. It's sort of an attention grabber. And by the way, you assumed only guys are interested.Uly wrote:That's a weird request, as by the time the user scrolls down, he has missed the start of the game.
PAWN : Knight >> Bishop >> Rook >>Queen
-
- Site Admin
- Posts: 1226
- Joined: Wed Jun 09, 2010 7:49 am
- Real Name: Jeremy Bernstein
- Location: Berlin, Germany
- Contact:
Re: How to post chess games
Girls scroll faster.kingliveson wrote:I have seen it on other forums and kind of like the idea. And by the way, you assumed only guys are interested.Uly wrote:That's a weird request, as by the time the user scrolls down, he has missed the start of the game.
I'll look into implementing those additional user commands in some reasonable manner, but it is (or was, when I last looked) non-trivial, due to phpBB's tag implementation.
- kingliveson
- Posts: 1388
- Joined: Thu Jun 10, 2010 1:22 am
- Real Name: Franklin Titus
- Location: 28°32'1"N 81°22'33"W
Re: How to post chess games
Great, thanks!! Edited while you post. As I said above, when you see the pieces moving, it gets your immediate attention, at least for me it does.Jeremy Bernstein wrote:Girls scroll faster.kingliveson wrote:I have seen it on other forums and kind of like the idea. And by the way, you assumed only guys are interested.Uly wrote:That's a weird request, as by the time the user scrolls down, he has missed the start of the game.
I'll look into implementing those additional user commands in some reasonable manner, but it is (or was, when I last looked) non-trivial, due to phpBB's tag implementation.
PAWN : Knight >> Bishop >> Rook >>Queen
Re: How to post chess games
I'm no expert in phpbb bbcode, but it might be relatively easy to add the autoplay options and other options (like starting from a move in the middle of the game) if you define the tag following the templateJeremy Bernstein wrote:Girls scroll faster.kingliveson wrote:I have seen it on other forums and kind of like the idea. And by the way, you assumed only guys are interested.Uly wrote:That's a weird request, as by the time the user scrolls down, he has missed the start of the game.
I'll look into implementing those additional user commands in some reasonable manner, but it is (or was, when I last looked) non-trivial, due to phpBB's tag implementation.
Code: Select all
[pgn={TEXT1}]{TEXT2}[/pgn]
Code: Select all
[pgn=&autoplayMode=true&initialHalfmove=9] ... [/pgn]
You probably need to do some validation of TEXT1, otherwise a bogus string might cause harm and I'm not sure phpbb would allow the = sign in TEXT1.
With some more pre-processing of the options you could get to this format
Code: Select all
[pgn= autoplayMode=true initialHalfmove=9] ... [/pgn]
The request to start the autoplay only when the user scrolls to the chessboard and makes it visible, that's A LOT more tricky, I have no easy suggestions for that...
Re: How to post chess games
Well, that's great from the poster's perspective, but from the user's perspective I'd like an option to shut down generally all boards that play themselves (without user input), it'd be annoying if I want to watch some games and have to stop and restart them to watch them at my own pace, from the start, every time.
Can pgn4web be linked to the User Control Panel to set such options?
Can pgn4web be linked to the User Control Panel to set such options?
Re: How to post chess games
The current pgn4web based chessboards are generated using the phpbb facility for "custom bbcodes". As far as I can tell (but I'm no phpbb expert) within that facility there's nothing that would allow settings based on viewer's preferences.Uly wrote:Well, that's great from the poster's perspective, but from the user's perspective I'd like an option to shut down generally all boards that play themselves (without user input), it'd be annoying if I want to watch some games and have to stop and restart them to watch them at my own pace, from the start, every time.
Can pgn4web be linked to the User Control Panel to set such options?
It *might* be possible to support the functionality you are looking for using (instead of a custom bbcode) a "phpbb mod" i.e. a custom code package enhancing the phpbb functionality; I believe that within a phpbb mod you can define user based settings. But it's a lot more work to write a "phpbb mod" than a "custom bbcode".
Re: How to post chess games
Just fixed a small bug with Internet Explorer 9 with the chess font selection and display.
Nothing more than a cosmetic issue, I believe it's IE9 fault to apply some styles under certain conditions.
Since you are using customized code, you should apply following corrections:
1) for each of the fonts/*.css files, look at the lines referring to *.eot files, such as
and change them by adding a format option like this:
2) in the file board.html change the .header css definition from
adding the font-family definition to
Nothing more than a cosmetic issue, I believe it's IE9 fault to apply some styles under certain conditions.
Since you are using customized code, you should apply following corrections:
1) for each of the fonts/*.css files, look at the lines referring to *.eot files, such as
Code: Select all
src: url('LiberationSans-Bold.eot');
Code: Select all
src: url('LiberationSans-Bold.eot') format('embedded-opentype');
Code: Select all
.header {
color: black;
font-weight: bold;
}
Code: Select all
.header {
color: black;
font-family: 'pgn4web Liberation Sans', sans-serif;
font-weight: bold;
}
Re: How to post chess games
On second thought, it seems this fix is not really working as expected... I'll try figuring out why...pgn4web wrote:Just fixed a small bug with Internet Explorer 9 with the chess font selection and display.
Nothing more than a cosmetic issue, I believe it's IE9 fault to apply some styles under certain conditions.
Since you are using customized code, you should apply following corrections
-
- Site Admin
- Posts: 1226
- Joined: Wed Jun 09, 2010 7:49 am
- Real Name: Jeremy Bernstein
- Location: Berlin, Germany
- Contact:
Re: How to post chess games
Thanks for the heads up!pgn4web wrote:On second thought, it seems this fix is not really working as expected... I'll try figuring out why...pgn4web wrote:Just fixed a small bug with Internet Explorer 9 with the chess font selection and display.
Nothing more than a cosmetic issue, I believe it's IE9 fault to apply some styles under certain conditions.
Since you are using customized code, you should apply following corrections