Skip to content
Liquid Egg Product

Liquid Egg Product

  • Home
  • Chess
  • Modifying Chess Publisher

Modifying Chess Publisher

Posted on November 27, 2007 By Liquid Egg Product 5 Comments on Modifying Chess Publisher
Chess

I’ve had a couple questions regarding the handy PGN viewer Chess Publisher. A bit of code can be used to change the default formatting; here are the steps:

1. The move list should be prefaced by: <div style='height:270px;overflow:auto;'> and end with: </div>. This causes the moves not to wrap under the board.

2. If you want a move to start on its own line, preface it with <br>.

3. (optional) Do #3 only if you don’t want the scroll bar! You’ll need to change the height so it contains the whole move list. This also means you need to change the height in the “iframe” code Chess Publisher has you paste on your site. The iframe height should be 70 more than the div height specified in step 1.

That’s it!

It’s possible to use HTML tags in the move list as well (<b>1. e4</b> bold, etc.) However, using HTML formatting in the bracketed comments may interfere with the play button functionality. I don’t remember which tag triggered that problem.

Post navigation

❮ Previous Post: 11 years late
Next Post: The Mascot and Chess ❯

5 thoughts on “Modifying Chess Publisher”

  1. Blue Devil Knight says:
    November 27, 2007 at 4:08 pm

    Awesome!!! I’ll test it out tonight…

    Reply
  2. Derek Slater says:
    November 27, 2007 at 4:30 pm

    Handy tho it is, I am surprised that I haven’t seen others noting that embedding a chesspublisher game or two DRAMATICALLY slows down your page loading time. Is it just me?

    Reply
  3. gorckat says:
    November 28, 2007 at 10:19 am

    @DS: I was wondering the same thing. I’m just starting my blog and in my first attempt to share a game, used several diagrams from Chessup.net (I think that’s the right site/url) and then found ChessPublisher.

    Posts on Chessaholic and BDK’s site loaded well enough on my PC at work just now, and our connection is a hideous T1 cobbled together with what I’m guessing are copper plated midget whiskers.

    I’m probably gonna keep PGN viewer stuff ‘after the jump’ so my main page isn’t affected.

    Reply
  4. Donnie says:
    November 28, 2007 at 1:56 pm

    For me, the speed difference is there, but not extremely noticeable. The more annoying thing for me that using Chess Publisher throws in extra links for the back button (at least in Opera, haven’t tested with another browsers).

    I’ll try to keep only one game up at a time in the future.

    I do plan on moving away from CP to something I can stick on my own server. In other words, combining the convenience of CP, without taking the hit of accessing someone else’s page. Just haven’t been motivated enough yet.

    Reply
  5. Blue Devil Knight says:
    November 28, 2007 at 6:45 pm

    Derek’s concern voices why I resisted posting games for so long. Now that they have switched from applets to scripts, the problem has abated a large degree. Also, they don’t cause the browser to completely just hang like applets. It just takes a bit of time for the somewhat klunky Chesspublisher 2.0 to load while the rest of the content sits and stares at the white box.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • 2020 was so bad, we didn’t make a single post
  • Monday Fighter!
  • King Safety
  • So, no rematch?
  • Estimate how much this cost

Recent Comments

  • Q on 2020 was so bad, we didn’t make a single post
  • annie on 2020 was so bad, we didn’t make a single post
  • annie on One could argue he’d make a poor preacher
  • annie on Monday Fighter!
  • Q on Monday Fighter!

Archives

  • January 2021
  • February 2019
  • November 2018
  • September 2018
  • June 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • August 2016
  • July 2016
  • June 2016
  • March 2016
  • September 2015
  • August 2015
  • May 2015
  • April 2015
  • August 2014
  • July 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • April 2013
  • March 2013
  • January 2013
  • December 2012
  • November 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007

Categories

  • Babes & Alleged Babes
  • Bad Ads
  • Bad Movie Night
  • Blog News
  • Burning Agony
  • CG
  • Chess
  • Computer-fu
  • Corridors & Creatures
  • Eggony
  • Eggs Vs Humans
  • Entertainment
  • Gaming
  • Grilled Cheese
  • History
  • In the News
  • Mascot for President
  • Mathematics
  • Monday Fighter!
  • North Korea
  • Patently Ineffective
  • Random
  • Religion
  • Science/Technology
  • Snake Oil
  • Sports
  • Tournament of Lepers
  • Uncategorized
  • Uncomfortability
  • Weaksauce Losers

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2021 Liquid Egg Product.

Theme: Oceanly by ScriptsTown