Resource icon

xF1 Unmaintained PGN Chessboard 1.0

No permission to download
Compatible XF Versions
  1. 1.0
  2. 1.1
  3. 1.2
  4. 1.3
  5. 1.4
  6. 1.5
Not really a request but noticed this thread here:
https://xenforo.com/community/threads/chessboard-for-xenforo-available-or-not.117371/
So I decided to take it upon myself to do a simple, very simple example of what the OP was looking for, this can of course be taken much further and at some point I might look into doing so but I don't see a need at the moment. This useshttp://pgn4web.casaschi.net for the javascript source, if you wish you can download the files yourself fromhttps://sourceforge.net/projects/pgn4web/files/ and change the link accordingly. The way I implemented it makes it so you won't have to download any other files.

As for the "board" itself there is much more customization available here:
https://sourceforge.net/p/pgn4web/wiki/BoardWidget_instructions/

This uses the SMF style of BBCode, [PGN]
This is an export of the BBCode directly from the BB Code & Smilies section of the XenForo Admin Panel, so that is where you will import the XML.

Don't wish to import it?

Add it in yourself using the following:
(You can of course rename this to whatever you wish.)

xenforo_com_community_attachments_ss_2016_11_09_at_08_33_11_f_png_140608__.png

Code:
<script type="text/javascript"> "use strict"; var pgn4webURL = "http://pgn4web.casaschi.net"; if (!document.getElementById("pgn4webEncoderScript")) { document.write('<script id="pgn4webEncoderScript" type="text/javascript" src="' + pgn4webURL + '/pgn-encoder.js"></' + 'script>'); } </script> <script type='text/javascript'> "use strict"; var pgn4webTextareaIdNum; if (pgn4webTextareaIdNum === undefined) { pgn4webTextareaIdNum = 1; } var pgn4webTextareaId = "pgn4web_" + pgn4webTextareaIdNum++; document.write("<textarea id='" + pgn4webTextareaId +"' style='display: none;'>"); </script>{text}</textarea> <script type='text/javascript'> "use strict"; var pgnText = document.getElementById(pgn4webTextareaId).value.replace(/<.*?>/g, ' '); var height = 268; var multiGamesRegexp = /\s*\[\s*\w+\s*"[^"]*"\s*\]\s*[^\s\[\]]+[\s\S]*\[\s*\w+\s*"[^"]*"\s*\]\s*/m; if (multiGamesRegexp.test(pgnText)) { height += 34; } document.write("<iframe src='" + pgn4webURL + "/board.html?am=l&amp;d=3000&amp;ss=26&amp;ps=d&amp;pf=d&amp;lcs=WdSO&amp;dcs=LHCg&amp;bbcs=LHCg&amp;hm=b&amp;hcs=lF6v&amp;bd=c&amp;cbcs=UJuI&amp;ctcs=BoVy&amp;hd=j&amp;md=f&amp;tm=13&amp;fhcs=$$$$&amp;fhs=14&amp;fmcs=$$$$&amp;fccs=v71$&amp;hmcs=M___&amp;fms=14&amp;fcs=m&amp;cd=i&amp;bcs=WdSO&amp;fp=13&amp;hl=t&amp;fh=b&amp;fw=p&amp;pe=" + EncodePGN(pgnText) + "' frameborder=0 width=100% height=" + height + " scrolling='no' marginheight='0' marginwidth='0'>your web browser and/or your host do not support iframes as required to display the chessboard</iframe>"); </script>
USE:
[pgn] ... PGN data ... [/pgn]​
Images

Author
AnimeHaxor
Size
1.2 KB
Extension
zip
Downloads
5
Views
1,242
First release
Last update

More resources from AnimeHaxor

731Threads
2,287Messages
63,874Members
mhzsLatest member
Back