Latest Updates:
Page Index Toggle Pages: [1] 2 3 ... 6
Topic Tools
Very Hot Topic (More than 25 Replies) How to insert playable PGN games in your posts (Read 51701 times)
Gut Gambit
YaBB Newbies
*
Offline


I Love ChessPublishing!

Posts: 47
Location: Norway
Joined: 10/28/14
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #83 - 01/31/16 at 19:38:58
Post Tools
An opponent told me after a team championship match some time ago. So maybe not that interesting  Smiley

I tried the PGN button and it worked well. So no bother. And thanks!

GG
  
Back to top
 
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 3066
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #82 - 01/31/16 at 02:35:24
Post Tools
Gut Gambit wrote on 01/30/16 at 18:53:20:
I saw you modified my pgn post in the Daring Defences the other day ( thread the perunovic).  The thing is that I tried to do the same as always on this site if you want to give a playable game. I pressed Ctrl+Alt + 8, and then Ctrl+Alt + 9, and after that I copied the game in the middle of these two bars. That has always been working, but not lately. I just wondered WHY?  Smiley


I've never seen that before, interesting, where did you find that key combination? I just use the 'PGN' button, by the FEN board button.
  
Back to top
WWW  
IP Logged
 
Gut Gambit
YaBB Newbies
*
Offline


I Love ChessPublishing!

Posts: 47
Location: Norway
Joined: 10/28/14
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #81 - 01/30/16 at 18:53:20
Post Tools
@GM Tony Kosten

I saw you modified my pgn post in the Daring Defences the other day ( thread the perunovic).  The thing is that I tried to do the same as always on this site if you want to give a playable game. I pressed Ctrl+Alt + 8, and then Ctrl+Alt + 9, and after that I copied the game in the middle of these two bars. That has always been working, but not lately. I just wondered WHY?  Smiley

GG

EDIT: Maybe there is others that can answer this question as well
  
Back to top
 
IP Logged
 
Smyslov_Fan
YaBB Moderator
Correspondence fan
*****
Offline


Progress depends on the
unreasonable man. ~GBS

Posts: 6902
Joined: 06/15/05
Re: How to insert playable PGN games in your posts
Reply #80 - 06/23/11 at 18:18:55
Post Tools
I just posted this in another thread, but perhaps it belongs here?

I've noticed a problem with the pgn reader. Please take a look at my comment on move 5. It should read, "I don't understand...."
  
Back to top
 
IP Logged
 
Charles Allen
YaBB Newbies
*
Offline


I Love ChessPublishing!

Posts: 23
Joined: 09/01/08
Re: How to insert playable PGN games in your posts
Reply #79 - 06/10/11 at 02:25:29
Post Tools
I do appreciate the pgn link.  A couple of notes:

Jesse Gersenson wrote on 05/30/11 at 12:17:23:
Vladimir wrote on 05/30/11 at 10:57:27:
What has everyone been doing in the meantime?


1. View source
2. search for pgndata
3. copy just the moves
4. import into scid or arena using Paste pgn from clipboard



Doesn't work for my combination (Firefox on Linux, no Flash plugin).  Whenever I see the pgn, it's been quoted, so all the spaces are %20, etc.

I'm kind of curious why folks want the board "inline" as it is.  When I *do* fire up scid on the pgn, I keep the board on one side of my screen and scroll through the various comments on the other.  With the Flash board fixed in place, you only have room for a few comments and the board.

Is it possible to have the Flash player appear in another window?  There would be two links:  One for the Flash version, one for the raw pgn. Of course, it would mean I wouldn't see all that wasted empty space, so I suppose I'm biased.
  
Back to top
 
IP Logged
 
Jesse Gersenson
Full Member
***
Offline


Piece value = Mobility
+ targets

Posts: 162
Joined: 09/12/09
Chessflash & game text
Reply #78 - 06/01/11 at 08:30:43
Post Tools
Edited:
download this game in pgn format - experimental


now appears below the board.

Download, or view, the pgn by clicking the text.

interested to hear feedback
« Last Edit: 06/01/11 at 17:55:06 by Jesse Gersenson »  
Back to top
WWW  
IP Logged
 
Jesse Gersenson
Full Member
***
Offline


Piece value = Mobility
+ targets

Posts: 162
Joined: 09/12/09
Re: How to insert playable PGN games in your posts
Reply #77 - 05/30/11 at 12:17:23
Post Tools
Vladimir wrote on 05/30/11 at 10:57:27:
What has everyone been doing in the meantime?


1. View source
2. search for pgndata
3. copy just the moves
4. import into scid or arena using Paste pgn from clipboard

I expect we will have a 'download as pgn' link soon. Sent code this morning.

Here is the prototype example using pgn data from a Stefan Buecker post (note to Stefan, evaluation symbols will be corrected after the download feature is working):
http://tinyurl.com/3nq6r8h
  
Back to top
WWW  
IP Logged
 
Vladimir
Junior Member
**
Offline



Posts: 60
Joined: 05/22/09
Re: How to insert playable PGN games in your posts
Reply #76 - 05/30/11 at 10:57:27
Post Tools
Jesse Gersenson wrote on 05/29/11 at 22:58:27:
Basic plan:
1. TONY: add "pgn download (experimental)" links into pgn function of YaBBC.pl. two will be perl based, one javascript based.

2. JESSE: recode php file as needed

3. TONY: (if broken) adjust YaBBC.pl and repeat steps 2-3

4. TONY: move php file to chesspub and repoint links in YaBBC to the chesspub pgn.php file

5. EVERYONE: test everything's working.

I have 80% of the process working properly on my machine. The remaining 20% is getting chesspub's server to encode the pgn data into a format which can be transfered via a url and then decoded by php.

Expect it will take a few iterations to get the encoding/decoding (base64) working properly.

Thanks for your work on this, Jesse.

What has everyone been doing in the meantime? For a post with the replayable board but no PGN, it's been simple enough to just hit quote and copy the text from between the PGN tags in the reply box and save it in a text editor.

Of course, that solution is very kludgy, so it's good that you're trying to solve this on the back-end.
  
Back to top
 
IP Logged
 
Jesse Gersenson
Full Member
***
Offline


Piece value = Mobility
+ targets

Posts: 162
Joined: 09/12/09
Re: How to insert playable PGN games in your posts
Reply #75 - 05/29/11 at 22:58:27
Post Tools
Basic plan:
1. TONY: add "pgn download (experimental)" links into pgn function of YaBBC.pl. two will be perl based, one javascript based.

2. JESSE: recode php file as needed

3. TONY: (if broken) adjust YaBBC.pl and repeat steps 2-3

4. TONY: move php file to chesspub and repoint links in YaBBC to the chesspub pgn.php file

5. EVERYONE: test everything's working.

I have 80% of the process working properly on my machine. The remaining 20% is getting chesspub's server to encode the pgn data into a format which can be transfered via a url and then decoded by php.

Expect it will take a few iterations to get the encoding/decoding (base64) working properly.
  
Back to top
WWW  
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 3066
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #74 - 05/29/11 at 15:56:34
Post Tools
Jesse Gersenson wrote on 05/21/11 at 17:50:09:
rough draft:

http://www.jesseo.com/chesspub/test.php?pgndata=1.e4

the system will automatically generate a downloading pgn file. i.e., no need to attach pgn files.

This does seem to work (at least for me), so how do  we apply it here?
  
Back to top
WWW  
IP Logged
 
Jesse Gersenson
Full Member
***
Offline


Piece value = Mobility
+ targets

Posts: 162
Joined: 09/12/09
Re: How to insert playable PGN games in your posts
Reply #73 - 05/21/11 at 17:50:09
Post Tools
rough draft:

http://www.jesseo.com/chesspub/test.php?pgndata=1.e4

the system will automatically generate a downloading pgn file. i.e., no need to attach pgn files.
  
Back to top
WWW  
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 3066
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #72 - 05/21/11 at 13:47:21
Post Tools
Actually, I wonder if it is worth going to the trouble of changing the code as a) the workaround is easy enough, and b) the site preference is to attach PGN files rather than clutter up the pages with bare PGN games.
  
Back to top
WWW  
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 3066
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: Replayable chessgames
Reply #71 - 05/21/11 at 11:38:04
Post Tools
Charles Allen wrote on 05/20/11 at 15:41:00:
I do not enable javascript by default, and certainly not Flash (a security risk).

So... I see a big blank area with no option to get to the pgn.

I also have js and Flash switched off for most of my browsing (because of the potential security risks), but use an alternative browser with it switched on when I need it.
It's a slight hassle, but I figure that the security risk from one or two safe sites that I use a lot must be pretty insignificant.
  
Back to top
WWW  
IP Logged
 
Jesse Gersenson
Full Member
***
Offline


Piece value = Mobility
+ targets

Posts: 162
Joined: 09/12/09
Re: How to insert playable PGN games in your posts
Reply #70 - 05/21/11 at 07:09:02
Post Tools
you may want to wait - 'click here for pgn' took less than 5 minuets. it's working.

will fine tune and send by email during the weekend.
  
Back to top
WWW  
IP Logged
 
Jesse Gersenson
Full Member
***
Offline


Piece value = Mobility
+ targets

Posts: 162
Joined: 09/12/09
Re: How to insert playable PGN games in your posts
Reply #69 - 05/21/11 at 06:39:03
Post Tools
Hi Tony,

several users want the raw pgn.

here's a quick fix -
i appended <br>pgn text [XXXcode]$1[XXX/code], (remove the XXX), to get the pgn text to appear in the post, just after the flash viewer. add it to the modified line in YaBBC.pl.

should look something like this - hopefully the forum will display this...
[code]
$message =~ s~\[pgn\](.*?)\[/pgn\]~"<div><object type=\"application/x-shockwave-flash\" data=\"http://chessflash.com/releases/latest/ChessFlash.swf\" width=\"100%\" height=\"350\"><param name=\"movie\" value=\"http://chessflash.com/releases/latest/ChessFlash.swf\" /><param name=\"flashvars\" fffff&pgndata=".modify($1)."'/></object></div><br>pgn text [XXXcode]$1[XXX/code]"~isge;[/code]

this version will show the pgn file as the user entered it, line breaks and all. we have the option to show the pgn as one long line. this saves space, but some users may find it tough to use.

for the all on one line option, replace the $1, above, with this
".modify($1)."

all untested.

a better option is add a link below the flashviewer, which morphs the pgn data into a stand-along text file which can be downloaded - this will be done with javascript, perl, or php (easiest for me). something like, "click for pgn".

when i get a chance, i'll try making the link. there's a 50-50 chance it'll take me five minuets - if so, i'll do it - otherwise, may be a few months before I get around to making the php page.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 6
Topic Tools
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo