Latest Updates:
Page Index Toggle Pages: 1 [2] 3 4 ... 6
Topic Tools
Very Hot Topic (More than 25 Replies) How to insert playable PGN games in your posts (Read 67018 times)
Jesse Gersenson
Full Member
***
Offline


Piece value = Mobility
+ targets

Posts: 162
Joined: 09/12/09
Re: Replayable chessgames
Reply #68 - 05/20/11 at 18:51:44
Post Tools
Charles Allen wrote on 05/20/11 at 15:41:00:
Please leave a "normal" link to the pgn file for those of us that can just click on it and have it automatically opened in scid (or whatever).


should be easy enough - anyone want to write the script to do it?

http://www.perlfect.com/articles/perlfile.shtml
  
Back to top
WWW  
IP Logged
 
Charles Allen
YaBB Newbies
*
Offline


I Love ChessPublishing!

Posts: 23
Joined: 09/01/08
Re: Replayable chessgames
Reply #67 - 05/20/11 at 15:41:00
Post Tools
Smyslov_Fan wrote on 04/07/11 at 14:03:31:
Tony, once this becomes widely available and usable, it will revolutionise the entire site.

Yes, it will make it largely useless for many of us.

I do the vast majority of my forum browsing while not logged in.  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 do understand the desire for a playable board, but please don't disenfranchise those of us who do not wish to use it.

How about:  For every attached pgn or fen file (already allowed for, correct?), have an alternate "link" that executes the flash stuff on that file?  Please leave a "normal" link to the pgn file for those of us that can just click on it and have it automatically opened in scid (or whatever).
  
Back to top
 
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 3152
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #66 - 05/18/11 at 17:52:01
Post Tools
Maybe we can have a competition to make the best icons for the two functions?
  
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 #65 - 05/18/11 at 16:31:55
Post Tools
Return it to 4 months as this keeps people from having to download the files every two days.

Both images are still blurry. Simply delete their height and width in Post.pl, leaving:

Code
Select All
document.write("<img src='http://www.chesspub.com/yabbfiles/Templates/Forum/default/pgn.gif' onclick='pgn();' "+HAND+" align='top' alt='Insert PGN Game' title='Insert PGN Game' border='0' />");
document.write("<img src='http://www.chesspub.com/yabbfiles/Templates/Forum/default/pgn2.gif' onclick='fen();' "+HAND+" align='top'  alt='Insert Fen Diagram' title='Insert Fen Diagram' border='0' />"); 



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


Mr Dynamic?

Posts: 3152
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #64 - 05/18/11 at 11:23:37
Post Tools
Jesse Gersenson wrote on 05/18/11 at 05:05:26:
Lower the application/x-javascript caching time with the htaccess file. Set it (and other lines which the javascript type) to 172800, which is two days.

OK, done, should I keep it like this or return it to 4 months in due course?
  
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 #63 - 05/18/11 at 05:05:26
Post Tools
You're welcome.

Lower the application/x-javascript caching time with the htaccess file. Set it (and other lines which the javascript type) to 172800, which is two days.

Otherwise, it'll be 4 months before the change is available for most users. Wink
  
Back to top
WWW  
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 3152
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #62 - 05/17/11 at 19:27:14
Post Tools
Well, I think it is brilliant! Many thanks Jesse once again! Smiley
  
Back to top
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 3152
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #61 - 05/16/11 at 22:36:50
Post Tools
No, it does work, I just needed to clear my cache! Cheesy
  
Back to top
IP Logged
 
GMTonyKosten
YaBB Administrator
*****
Offline


Mr Dynamic?

Posts: 3152
Location: Clermont-Ferrand
Joined: 12/19/02
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #60 - 05/16/11 at 22:26:29
Post Tools
I've added the two images, one for adding PGN games, and one for adding FEN diagrams, but they don't appear to be functional! Apart from combined.js and post.pl I've also altered post.lng (to get the screen tips), but obviously something else is needed?! Undecided
  
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 #59 - 05/16/11 at 20:37:33
Post Tools
PGN text-only


Chessboard image


  
Back to top
WWW  
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 #58 - 05/16/11 at 20:24:31
Post Tools
Jesse, "File not found".
  
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 #57 - 05/16/11 at 20:22:59
Post Tools
to add a 'pgn' button to the message window, in place of the current hr button:

1. upload the pgn.gif image to the server - perhaps to this destination:
http://www.chesspub.com/yabbfiles/Templates/Forum/default/pgn.gif

two mock up images - pick one:
[img]http://www.jesseo.com/chesspub/pgn.gif[/img]

[img]http://www.jesseo.com/chesspub/pgn2.gif[/img]


2. in Post.pl edit this line
[edit]document.write("<img src='$imagesdir/hr.gif' onclick='hr();' "+HAND+" align='top' width='23' height='22' alt='$post_txt{'531'}' title='$post_txt{'531'}' border='0' />");[/edit]

to
[quote]
document.write("<img src='$imagesdir/pgn.gif' onclick='pgn();' "+HAND+" align='top' width='23' height='22' alt='$post_txt{'531'}' title='$post_txt{'531'}' border='0' />");[/quote]

3. add a pgn function to http://www.chesspub.com/yabbfiles/ubbc.js

[code]function pgn(){AddSelText("[pgn]","[/pgn]")}[/code]

  
Back to top
WWW  
IP Logged
 
Matemax
God Member
*****
Offline


Chesspub gives you strength!

Posts: 1302
Joined: 11/04/07
Re: How to insert playable PGN games in your posts
Reply #56 - 04/15/11 at 10:09:50
Post Tools
Quote:
I'd love to suggest a possible future to have a edit board facility and setup a position from move X and play the moves from there on.


  
Back to top
 
IP Logged
 
8arms
Full Member
***
Offline


If you don't shoot, you
won't score!

Posts: 136
Location: Redcar
Joined: 05/16/05
Re: How to insert playable PGN games in your posts
Reply #55 - 04/15/11 at 06:50:40
Post Tools
Thought I'd give this whole thing a test myself and what can I say but WOW... congratulations to the developers so far!



I'd love to suggest a possible future to have a edit board facility and setup a position from move X and play the moves from there on.
  
Back to top
 
IP Logged
 
Stefan Buecker
God Member
*****
Offline



Posts: 1386
Location: Germany
Joined: 02/11/09
Gender: Male
Re: How to insert playable PGN games in your posts
Reply #54 - 04/15/11 at 01:46:35
Post Tools

I like it, makes it easier to keep the overview, in particular if there are longer comments.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 4 ... 6
Topic Tools
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo