<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to User_Notes_drupal</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/</link><description>Recent changes to User_Notes_drupal</description><atom:link href="https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 14 Apr 2020 16:30:26 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for User_Notes_drupal page</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/?limit=100#1b32</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Steven Bellens from the &lt;a class="" href="https://www.rokadewesterlo.be/" rel="nofollow"&gt;rokadewesterlo.be&lt;/a&gt; site has been successful integrating pgn4web with drupal 8 and the gutenberg editor: inserting the PGN tag and enabling the BBCode filter for the Gutenberg format, allows pasting PGN code directly in the Gutenberg editor; there is even no need to insert a 'custom HTML' block.&lt;/p&gt;
&lt;p&gt;For an example, see &lt;a href="https://www.rokadewesterlo.be/website-update" rel="nofollow"&gt;https://www.rokadewesterlo.be/website-update&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For further details, please contact Steven from his &lt;a class="" href="https://www.rokadewesterlo.be/" rel="nofollow"&gt;rokadewesterlo.be&lt;/a&gt; site.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Tue, 14 Apr 2020 16:30:26 -0000</pubDate><guid>https://sourceforge.netbf1dae3839090844264a936d91c3e6a962c8cce1</guid></item><item><title>User_Notes_drupal modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v26
+++ v27
@@ -11,13 +11,13 @@
 The drupal module is from a third party developer; as such it has not been prepared and fully checked by the pgn4web project and has not fully integrated into the pgn4web project; _use this module at your own risk_. For support, please contact the authors directly from [the druapl module homepage](http://drupal.org/project/pgn4web).

 ## guidelines for manual drupal integration guidelines
+
+The folowing guidelines have been tested with drupal up to v8.2.6, please contact the pgn4web project for any issue with different versions of drupal.

 Two options are available for manual drupal integration: 

   * installing pgn4web on your site and using a sophisticated bbcode supporting display options and unlimited games 
   * using pgn4web from a different site 
-
-The [pgn4web test drupal site](http://pgn4web-test.casaschi.net/drupal/) provides an implementation example (this is a test site, things might occasionally be broken).

 The following procedures require the latest version of [the Extensible BBCode module](http://drupal.org/project/xbbcode) for your version of drupal. In case this module is not available for your version of drupal, alternative procedures can be used for creating a custom BBcode with similar replacement code, for example by manually editing the drupal code providing basic BBcodes.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Thu, 02 Feb 2017 17:02:56 -0000</pubDate><guid>https://sourceforge.net0682d38e11fa68fbebea71fd35a4c2c827c8da1b</guid></item><item><title>User_Notes_drupal modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Wed, 07 Dec 2016 15:34:24 -0000</pubDate><guid>https://sourceforge.net48025864fdfa19125b3f53435bad3b55a61b05c4</guid></item><item><title>User_Notes_drupal modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v24
+++ v25
@@ -109,7 +109,6 @@
 Final step is to modify the BBCode text format (configuration/text formats and editors area) by making sure that:

   * for the BBCode text format the "Display any HTML as plain text" and "Limit allowed HTML tags and correct faulty HTML" filters are not ticked.
-  * "Convert BBCode into HTML" is the first processed filter
   * in the "Convert BBCode into HTML" filter settings the "Convert linebreaks to HTML" filter is not ticked

 The instructions above require pgn4web 1.91 or later and requires that drupal and pgn4web are on the same domain. 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Mon, 14 Dec 2015 12:00:59 -0000</pubDate><guid>https://sourceforge.net3e41c5f8d9c0c7926f3bc4d27825d356f5f1415f</guid></item><item><title>User_Notes_drupal modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v23
+++ v24
@@ -106,7 +106,11 @@

 Please remember to set the variable `pgn4webPath` above to the path of the pgn4web folder on your site. 

-Final step is to modify the BBCode text format (configuration/text formats and editors area) by making sure that for the BBCode text format the "Display any HTML as plain text" and "Limit allowed HTML tags and correct faulty HTML" filters are not ticked.
+Final step is to modify the BBCode text format (configuration/text formats and editors area) by making sure that:
+
+  * for the BBCode text format the "Display any HTML as plain text" and "Limit allowed HTML tags and correct faulty HTML" filters are not ticked.
+  * "Convert BBCode into HTML" is the first processed filter
+  * in the "Convert BBCode into HTML" filter settings the "Convert linebreaks to HTML" filter is not ticked

 The instructions above require pgn4web 1.91 or later and requires that drupal and pgn4web are on the same domain. 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Mon, 14 Dec 2015 10:17:30 -0000</pubDate><guid>https://sourceforge.netf8ac7605cf6114cca0052679b2f0d621dece443e</guid></item><item><title>User_Notes_drupal modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v22
+++ v23
@@ -87,7 +87,7 @@
     var pgn4webTextareaId = "pgn4web_" + pgn4webTextareaIdNum++;
     document.write("&lt;textarea id='" + pgn4webTextareaId +"' style="display: none;"&gt;");
     &amp;lt;/script&amp;gt;
-    {{  tag.content  }}
+    {{  tag.source  }}
     &lt;/textarea&gt;
     &amp;lt;script type="text/javascript"&amp;gt;
     "use strict";
@@ -177,7 +177,7 @@
     var pgn4webTextareaId = "pgn4web_" + pgn4webTextareaIdNum++;
     document.write("&lt;textarea id='" + pgn4webTextareaId +"' style="display: none;"&gt;");
     &amp;lt;/script&amp;gt;
-    {{  tag.content  }}
+    {{  tag.source  }}
     &lt;/textarea&gt;
     &amp;lt;script type="text/javascript"&amp;gt;
     "use strict";
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Mon, 14 Dec 2015 09:57:38 -0000</pubDate><guid>https://sourceforge.net0aec64db67be1c950099fc649133ff35c38ca758</guid></item><item><title>User_Notes_drupal modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v21
+++ v22
@@ -91,7 +91,7 @@
     
     &amp;lt;script type="text/javascript"&amp;gt;
     "use strict";
-    var pgnText = document.getElementById(pgn4webTextareaId).value.replace(/&amp;lt;.*?&amp;gt;/g, ' ');
+    var pgnText = document.getElementById(pgn4webTextareaId).value = document.getElementById(pgn4webTextareaId).value.replace(/&amp;lt;.*?&amp;gt;/g, ' ');
     var height = 268;
     var am = "{{ tag.attr.autoplayMode ?: tag.attr.am ?: 'l' }}";
     var sm = "{{ tag.attr.showMoves ?: tag.attr.sm ?: 'f' }}";
@@ -101,12 +101,12 @@
     var ih = "{{ tag.attr.initialHalfmove ?: tag.attr.ih ?: 's' }}";
     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("&amp;lt;iframe src="" + pgn4webURL + "/board.html?am=" + encodeURI(am) + "&amp;amp;amp;d=3000&amp;amp;amp;ig=" + encodeURI(ig) + "&amp;amp;amp;iv=" + encodeURI(iv) + "&amp;amp;amp;ih=" + encodeURI(ih) + "&amp;amp;amp;ss=26&amp;amp;amp;ps=d&amp;amp;amp;pf=d&amp;amp;amp;lcs=ZeyT&amp;amp;amp;dcs=OImt&amp;amp;amp;bbcs=OImt&amp;amp;amp;hm=b&amp;amp;amp;hcs=xnm_&amp;amp;amp;bd=c&amp;amp;amp;cbcs=Xe2L&amp;amp;amp;ctcs=l4It&amp;amp;amp;hd=" + encodeURI(hd) + "&amp;amp;amp;md=" + encodeURI(sm) + "&amp;amp;amp;tm=13&amp;amp;amp;fhcs=$$$$&amp;amp;amp;fhs=14&amp;amp;amp;fmcs=$$$$&amp;amp;amp;fccs=v71$&amp;amp;amp;hmcs=OImt&amp;amp;amp;fms=14&amp;amp;amp;fcs=m&amp;amp;amp;cd=i&amp;amp;amp;bcs=ZeyT&amp;amp;amp;fp=13&amp;amp;amp;hl=t&amp;amp;amp;fh=b&amp;amp;amp;fw=p&amp;amp;amp;pi=" + pgn4webTextareaId + "" frameborder="0" width="100%" height=" + height + " scrolling="no" marginheight="0" marginwidth="0"&amp;gt;your web browser and/or your host do not support iframes as required to display the chessboard&amp;lt;/iframe&amp;gt;");
+    document.write("&amp;lt;iframe src="" + pgn4webPath + "/board.html?am=" + encodeURI(am) + "&amp;amp;amp;d=3000&amp;amp;amp;ig=" + encodeURI(ig) + "&amp;amp;amp;iv=" + encodeURI(iv) + "&amp;amp;amp;ih=" + encodeURI(ih) + "&amp;amp;amp;ss=26&amp;amp;amp;ps=d&amp;amp;amp;pf=d&amp;amp;amp;lcs=ZeyT&amp;amp;amp;dcs=OImt&amp;amp;amp;bbcs=OImt&amp;amp;amp;hm=b&amp;amp;amp;hcs=xnm_&amp;amp;amp;bd=c&amp;amp;amp;cbcs=Xe2L&amp;amp;amp;ctcs=l4It&amp;amp;amp;hd=" + encodeURI(hd) + "&amp;amp;amp;md=" + encodeURI(sm) + "&amp;amp;amp;tm=13&amp;amp;amp;fhcs=$$$$&amp;amp;amp;fhs=14&amp;amp;amp;fmcs=$$$$&amp;amp;amp;fccs=v71$&amp;amp;amp;hmcs=OImt&amp;amp;amp;fms=14&amp;amp;amp;fcs=m&amp;amp;amp;cd=i&amp;amp;amp;bcs=ZeyT&amp;amp;amp;fp=13&amp;amp;amp;hl=t&amp;amp;amp;fh=b&amp;amp;amp;fw=p&amp;amp;amp;pi=" + pgn4webTextareaId + "" frameborder="0" width="100%" height=" + height + " scrolling="no" marginheight="0" marginwidth="0"&amp;gt;your web browser and/or your host do not support iframes as required to display the chessboard&amp;lt;/iframe&amp;gt;");
     &amp;lt;/script&amp;gt;

 Please remember to set the variable `pgn4webPath` above to the path of the pgn4web folder on your site. 

-Final step is to modify the BBCode text format (configuration/text formats and editors area) by making sure that for the BBCode text format the "Display any HTML as plain text" and "Limit allowed HTML tags and correct faulty HTML" filters are not ticked and that "Convert line breaks into HTML (i.e. &lt;br/&gt; and &lt;p&gt;)" filter is ticked. Also, in the "Convert BBCode into HTML" filter settings, make sure the "Convert linebreaks to HTML" filter is not ticked.
+Final step is to modify the BBCode text format (configuration/text formats and editors area) by making sure that for the BBCode text format the "Display any HTML as plain text" and "Limit allowed HTML tags and correct faulty HTML" filters are not ticked.

 The instructions above require pgn4web 1.91 or later and requires that drupal and pgn4web are on the same domain. 

&lt;/p&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Sat, 05 Dec 2015 11:57:16 -0000</pubDate><guid>https://sourceforge.net2910b009966832968470cffddec6b07fa49fadf6</guid></item><item><title>User_Notes_drupal modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v20
+++ v21
@@ -73,9 +73,9 @@

 First step is for the site administrator to install [the Extensible BBCode module](http://drupal.org/project/xbbcode); please make sure you download and install the release corresponding to your version of drupal. 

-Second step is the activation of the Extensible BBCode module (manage/extend area); the minimal requirement is to activate the Extensible BBCode component (you can leave out the built-in bbcodes if you don't need them otherwise). 
-
-Third step is the creation of a custom BBcode (manage/configuration/bbcode settings area) with name `pgn`. 
+Second step is the activation of the Extensible BBCode module (extend area); the minimal requirement is to activate the Extensible BBCode component (you can leave out the built-in bbcodes if you don't need them otherwise). 
+
+Third step is the creation of a custom BBcode (configuration/bbcode settings area) with name `pgn`. 

 The reccomended value for the `template code` is: 

@@ -106,7 +106,7 @@

 Please remember to set the variable `pgn4webPath` above to the path of the pgn4web folder on your site. 

-Final step is to modify the BBCode text format (manage/configuration/text formats and editors area) by making sure that for the BBCode text format the "Display any HTML as plain text" and "Limit allowed HTML tags and correct faulty HTML" filters are not ticked and that "Convert line breaks into HTML (i.e. &lt;br/&gt; and &lt;p&gt;)" filter is ticked. Also, in the "Convert BBCode into HTML" filter settings, make sure the "Convert linebreaks to HTML" filter is not ticked.
+Final step is to modify the BBCode text format (configuration/text formats and editors area) by making sure that for the BBCode text format the "Display any HTML as plain text" and "Limit allowed HTML tags and correct faulty HTML" filters are not ticked and that "Convert line breaks into HTML (i.e. &lt;br/&gt; and &lt;/p&gt;&lt;p&gt;)" filter is ticked. Also, in the "Convert BBCode into HTML" filter settings, make sure the "Convert linebreaks to HTML" filter is not ticked.

 The instructions above require pgn4web 1.91 or later and requires that drupal and pgn4web are on the same domain. 

@@ -116,9 +116,9 @@

 First step is for the site administrator to install [the Extensible BBCode module](http://drupal.org/project/xbbcode); please make sure you download and install the release corresponding to your version of drupal. 

-Second step is the activation of the Extensible BBCode module (administration/site building/modules area); the minimal requirement is to activate the Extensible BBCode component (you can leave out the built-in bbcodes if you don't need them otherwise). 
-
-Final step is the creation of a custom BBcode (administration/site configuration/bbcode settings area) with name `pgn`, leaving all the tag options tickboxes unticked. 
+Second step is the activation of the Extensible BBCode module (site building/modules area); the minimal requirement is to activate the Extensible BBCode component (you can leave out the built-in bbcodes if you don't need them otherwise). 
+
+Final step is the creation of a custom BBcode (configuration/bbcode settings area) with name `pgn`, leaving all the tag options tickboxes unticked. 

 The reccomended value for the `replacement code` is: 

@@ -229,11 +229,11 @@

 ### notes

-  * After adding/modifying the Extensible BBcode plugin and or adding/modiying the custom BBcode, it is recommended to clear drupal cached data in order for the pages to use the latest BBcode definitions. Drupal cached data can be cleared from the administration/configuration/performance area. 
+  * After adding/modifying the Extensible BBcode plugin and or adding/modiying the custom BBcode, it is recommended to clear drupal cached data in order for the pages to use the latest BBcode definitions. Drupal cached data can be cleared from the configuration/performance area. 

   * The recommended settings apply a predefined set of colors and options to match the default drupal template; if you need to change any of the colors and options (the parameters after board.html in the code above) you can refer to the [board widget instructions wiki page](BoardWidget_instructions) or ask for support. 

- * End users should make sure that drupal automatically cretaed summary for the article does not cut across the PGN data, otherwise the article presented in summary mode will not show the chessboard properly: modify the display settings of the `teaser` from the administration/structure/content types/article and basic page/display area. Otherwise the end users should manually assign the summary content for each article and basic page. 
+ * End users should make sure that drupal automatically cretaed summary for the article does not cut across the PGN data, otherwise the article presented in summary mode will not show the chessboard properly: modify the display settings of the `teaser` from the structure/content types/article and basic page/display area. Otherwise the end users should manually assign the summary content for each article and basic page. 

 ### caveats

&lt;/p&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Sat, 05 Dec 2015 10:31:19 -0000</pubDate><guid>https://sourceforge.net2f99b57e75bffe504965ce6c092f10740f7ced78</guid></item><item><title>User_Notes_drupal modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v19
+++ v20
@@ -71,7 +71,46 @@

 ##### drupal 8 and later versions

-TBD
+First step is for the site administrator to install [the Extensible BBCode module](http://drupal.org/project/xbbcode); please make sure you download and install the release corresponding to your version of drupal. 
+
+Second step is the activation of the Extensible BBCode module (manage/extend area); the minimal requirement is to activate the Extensible BBCode component (you can leave out the built-in bbcodes if you don't need them otherwise). 
+
+Third step is the creation of a custom BBcode (manage/configuration/bbcode settings area) with name `pgn`. 
+
+The reccomended value for the `template code` is: 
+
+    &amp;lt;script type="text/javascript"&amp;gt;
+    "use strict";
+    var pgn4webPath = "/pgn4web";
+    var pgn4webTextareaIdNum;
+    if (pgn4webTextareaIdNum === undefined) { pgn4webTextareaIdNum = 1; }
+    var pgn4webTextareaId = "pgn4web_" + pgn4webTextareaIdNum++;
+    document.write("&lt;textarea id='" + pgn4webTextareaId +"' style="display: none;"&gt;");
+    &amp;lt;/script&amp;gt;
+    {{  tag.content  }}
+    &lt;/textarea&gt;
+    &amp;lt;script type="text/javascript"&amp;gt;
+    "use strict";
+    var pgnText = document.getElementById(pgn4webTextareaId).value.replace(/&amp;lt;.*?&amp;gt;/g, ' ');
+    var height = 268;
+    var am = "{{ tag.attr.autoplayMode ?: tag.attr.am ?: 'l' }}";
+    var sm = "{{ tag.attr.showMoves ?: tag.attr.sm ?: 'f' }}";
+    var hd; if ((sm == "puzzle") || (sm == "p")) { hd = "v"; } else { hd = "j"; }
+    var ig = "{{ tag.attr.initialGame ?: tag.attr.ig ?: 'f' }}";
+    var iv = "{{ tag.attr.initialVariation ?: tag.attr.iv ?: '0' }}";
+    var ih = "{{ tag.attr.initialHalfmove ?: tag.attr.ih ?: 's' }}";
+    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("&amp;lt;iframe src="" + pgn4webURL + "/board.html?am=" + encodeURI(am) + "&amp;amp;amp;d=3000&amp;amp;amp;ig=" + encodeURI(ig) + "&amp;amp;amp;iv=" + encodeURI(iv) + "&amp;amp;amp;ih=" + encodeURI(ih) + "&amp;amp;amp;ss=26&amp;amp;amp;ps=d&amp;amp;amp;pf=d&amp;amp;amp;lcs=ZeyT&amp;amp;amp;dcs=OImt&amp;amp;amp;bbcs=OImt&amp;amp;amp;hm=b&amp;amp;amp;hcs=xnm_&amp;amp;amp;bd=c&amp;amp;amp;cbcs=Xe2L&amp;amp;amp;ctcs=l4It&amp;amp;amp;hd=" + encodeURI(hd) + "&amp;amp;amp;md=" + encodeURI(sm) + "&amp;amp;amp;tm=13&amp;amp;amp;fhcs=$$$$&amp;amp;amp;fhs=14&amp;amp;amp;fmcs=$$$$&amp;amp;amp;fccs=v71$&amp;amp;amp;hmcs=OImt&amp;amp;amp;fms=14&amp;amp;amp;fcs=m&amp;amp;amp;cd=i&amp;amp;amp;bcs=ZeyT&amp;amp;amp;fp=13&amp;amp;amp;hl=t&amp;amp;amp;fh=b&amp;amp;amp;fw=p&amp;amp;amp;pi=" + pgn4webTextareaId + "" frameborder="0" width="100%" height=" + height + " scrolling="no" marginheight="0" marginwidth="0"&amp;gt;your web browser and/or your host do not support iframes as required to display the chessboard&amp;lt;/iframe&amp;gt;");
+    &amp;lt;/script&amp;gt;
+
+Please remember to set the variable `pgn4webPath` above to the path of the pgn4web folder on your site. 
+
+Final step is to modify the BBCode text format (manage/configuration/text formats and editors area) by making sure that for the BBCode text format the "Display any HTML as plain text" and "Limit allowed HTML tags and correct faulty HTML" filters are not ticked and that "Convert line breaks into HTML (i.e. &lt;br/&gt; and &lt;p&gt;)" filter is ticked. Also, in the "Convert BBCode into HTML" filter settings, make sure the "Convert linebreaks to HTML" filter is not ticked.
+
+The instructions above require pgn4web 1.91 or later and requires that drupal and pgn4web are on the same domain. 
+
+At this point you should be able to add chess games to your drupal articles by using the `[pgn]` tag, as in the example above from the 1985 world championship. Please select the `BBcode` option for the `input format`of your article or page.

 ##### drupal 7 and earlier versions

@@ -124,7 +163,36 @@

 ##### drupal 8 and later versions

-TBD
+This method is implemented using the following alternative value for the `template code`. 
+
+    &amp;lt;script type="text/javascript"&amp;gt;
+    "use strict";
+    var pgn4webURL = "http://pgn4web.casaschi.net";
+    if (!document.getElementById("pgn4webEncoderScript")) { document.write('&amp;lt;script id="pgn4webEncoderScript" type="text/javascript" src="' + pgn4webURL + '/pgn-encoder.js"&amp;gt;'); }
+    &amp;lt;/script&amp;gt;
+    &amp;lt;script type="text/javascript"&amp;gt;
+    "use strict";
+    var pgn4webTextareaIdNum;
+    if (pgn4webTextareaIdNum === undefined) { pgn4webTextareaIdNum = 1; }
+    var pgn4webTextareaId = "pgn4web_" + pgn4webTextareaIdNum++;
+    document.write("&lt;textarea id='" + pgn4webTextareaId +"' style="display: none;"&gt;");
+    &amp;lt;/script&amp;gt;
+    {{  tag.content  }}
+    &lt;/textarea&gt;
+    &amp;lt;script type="text/javascript"&amp;gt;
+    "use strict";
+    var pgnText = document.getElementById(pgn4webTextareaId).value.replace(/&amp;lt;.*?&amp;gt;/g, ' ');
+    var height = 268;
+    var am = "{{ tag.attr.autoplayMode ?: tag.attr.am ?: 'l' }}";
+    var sm = "{{ tag.attr.showMoves ?: tag.attr.sm ?: 'f' }}";
+    var hd; if ((sm == "puzzle") || (sm == "p")) { hd = "v"; } else { hd = "j"; }
+    var ig = "{{ tag.attr.initialGame ?: tag.attr.ig ?: 'f' }}";
+    var iv = "{{ tag.attr.initialVariation ?: tag.attr.iv ?: '0' }}";
+    var ih = "{{ tag.attr.initialHalfmove ?: tag.attr.ih ?: 's' }}";
+    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("&amp;lt;iframe src="" + pgn4webURL + "/board.html?am=" + encodeURI(am) + "&amp;amp;amp;d=3000&amp;amp;amp;ig=" + encodeURI(ig) + "&amp;amp;amp;iv=" + encodeURI(iv) + "&amp;amp;amp;ih=" + encodeURI(ih) + "&amp;amp;amp;ss=26&amp;amp;amp;ps=d&amp;amp;amp;pf=d&amp;amp;amp;lcs=ZeyT&amp;amp;amp;dcs=OImt&amp;amp;amp;bbcs=OImt&amp;amp;amp;hm=b&amp;amp;amp;hcs=xnm_&amp;amp;amp;bd=c&amp;amp;amp;cbcs=Xe2L&amp;amp;amp;ctcs=l4It&amp;amp;amp;hd=" + encodeURI(hd) + "&amp;amp;amp;md=" + encodeURI(sm) + "&amp;amp;amp;tm=13&amp;amp;amp;fhcs=$$$$&amp;amp;amp;fhs=14&amp;amp;amp;fmcs=$$$$&amp;amp;amp;fccs=v71$&amp;amp;amp;hmcs=OImt&amp;amp;amp;fms=14&amp;amp;amp;fcs=m&amp;amp;amp;cd=i&amp;amp;amp;bcs=ZeyT&amp;amp;amp;fp=13&amp;amp;amp;hl=t&amp;amp;amp;fh=b&amp;amp;amp;fw=p&amp;amp;amp;pe=" + EncodePGN(pgnText) + "" frameborder="0" width="100%" height=" + height + " scrolling="no" marginheight="0" marginwidth="0"&amp;gt;your web browser and/or your host do not support iframes as required to display the chessboard&amp;lt;/iframe&amp;gt;");
+    &amp;lt;/script&amp;gt;

 ##### drupal 7 and earlier versions

&lt;/p&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Sat, 05 Dec 2015 10:23:54 -0000</pubDate><guid>https://sourceforge.netdb861af6098586cd4dc3c64d929c11682549babf</guid></item><item><title>User_Notes_drupal modified by Paolo Casaschi</title><link>https://sourceforge.net/p/pgn4web/wiki/User_Notes_drupal/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v18
+++ v19
@@ -118,6 +118,8 @@

 In case you need to install drupal and pgn4web on different domains, or in case you cannot install pgn4web on your site and you want to use the pgn4web site, you can configure a lightweight version of the pgn bbcode with a limitations on the size of the PGN data is to approximately 2000 characters. 

+The guidelines are similar to the guidelines for installing pgn4web on your site, with the differences described below. 
+
 Please remember to set the variable `pgn4webURL` below to the URL of the actual pgn4web server you plan to use.

 ##### drupal 8 and later versions
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Casaschi</dc:creator><pubDate>Sat, 05 Dec 2015 10:08:21 -0000</pubDate><guid>https://sourceforge.net0164fd6e313abd5a64394f47f667a6b544610966</guid></item></channel></rss>