JeuDeGo.org 바둑 囲碁 围棋

Joomla plugin for maxiGos

Home Français English

Plugin version: v2.00, with maxiGos v7.

Description

With this plugin, named "maxiGos sgf player content plugin", you can display game of go sgf file content using maxiGos sgf player in a joomla article.

Usage (code to add in your articles):

{gos xxx.sgf} -> displays xxx.sgf content with maxiGos default configuration (value of "maxigos config" parameter or "basic" if this parameter is empty).
{gos xxx.sgf,yyy} -> displays xxx.sgf content using maxiGos with the yyy configuration.

If maxigosSgfAsIs parameter value is 1, one can replace the sgf filename by a sgf record:
{gos zzz} -> display zzz sgf record with maxiGos default configuration
{gos zzz,yyy} -> displays zzz sgf record using maxiGos with the yyy configuration.

Note: a sgf record is the content of a sgf file (for instance a string such as "(;GM[1]FF[4]CA[UTF-8]SZ[19]PW[A]PB[B]WR[6d]BR[6d];B[qd];W[dp])")

If the value of the "maxiGos theme" parameter is the default one (i.e. "neo-classic" for the current version of the plugin), possible configuration values are: "basic", "comment", "diagram", "game", "problem", "tree". Otherwise, it can be the name of any configuration available for the theme specified by the "maxigos theme" parameter.

Example (code to add in your articles):

{gos xxx.sgf,comment} -> displays xxx.sgf content in a player with comment
{gos xxx.sgf,diagram} -> displays xxx.sgf content as a static figure or diagram
{gos (;GM[1]FF[4]CA[UTF-8]SZ[19];B[cp];)} -> displays sgf record with maxiGos default configuration (if maxigosSgfAsIs parameter value is 1)
{gos (;GM[1]FF[4]CA[UTF-8]SZ[19]EV[Test];B[cp];),game} -> displays sgf record in a player with header (if maxigosSgfAsIs parameter value is 1)

Installation

The procedure below was tested using joomla v3.9.21.

F.A.Q.

Can I insert the sgf viewer in a <span>?

You can do it even if the viewer has many "block" tags, because it displays inside an <iframe>.

Can I use the Joomla css to change the css styles of the viewer?

Since the viewer is encapsulated in an <iframe>, you cannot modify the sgf viewer css styles through the Joomla css.

However, you can modify them in the "iframe.php" script of the viewer.