Accessibilité

BBCode phpBB for maxiGos

BBCode version: v3, with maxiGos v8.

Description

With these BBCodes, you can display game of go sgf content using maxiGos sgf player in a post on a forum powered by phpBB.

The procedure below was tested using phpBB 3.0.12, english version.

Installation

BBCode using a URL as sgf source

Settings

You need to use in the "HTML replacement" a regular expression that matches the URL. For instance, if the URL is something like http://nomDeDomaineDuForum.org/download/file.php?id=nnn (where nnn is a number), you can use "^http://forumDomainName\.org/download/file\.php\?id=[0-9]+$".

Then in theory the BBCode is ready to work.

Usage

Insert in your messages a line as below:

Basic player

[gos]http://forumDomainName.org/download/file.php?id=1[/gos]

or

[gos=basic]http://forumDomainName.org/download/file.php?id=1[/gos]

Player with comments

[gos=comment]http://forumDomainName.org/download/file.php?id=1[/gos]

Player displaying diagram

[gos=diagram]http://forumDomainName.org/download/file.php?id=1[/gos]

Player displaying game

[gos=game]http://forumDomainName.org/download/file.php?id=1[/gos]

Player displaying problem

[gos=problem]http://forumDomainName.org/download/file.php?id=1[/gos]

Player with comments and moves tree

[gos=tree]http://forumDomainName.org/download/file.php?id=1[/gos]

Don't forget to remove any parameter such as "mode=view" if any from the URL. Or adapt the regular expression that verifies the URL if you let them. For instance:

data-maxigos-source-filter="^http://nomDeDomaineDuForum\.org/download/file\.php\?(mode=view&(amp;)?)?id=[0-9]+(&(amp;)?mode=view)?$"

BBCode using a TEXT as sgf source

Settings

Then in theory the BBCode is ready to work.

Usage

Insert in your messages a line as below:

Basic player

[gos2](;GM[1]FF[4]CA[UTF-8]SZ[19]PW[A]PB[B]WR[6d]BR[6d];B[qd];W[dp])[/gos2]

or

[gos2=basic](;GM[1]FF[4]CA[UTF-8]SZ[19]PW[A]PB[B]WR[6d]BR[6d];B[qd];W[dp])[/gos2]

Player with comments

[gos2=comment](;GM[1]FF[4]CA[UTF-8]SZ[19]PW[A]PB[B]WR[6d]BR[6d];B[qd];W[dp])[/gos2]

Player displaying a diagram

[gos2=diagram](;GM[1]FF[4]CA[UTF-8]SZ[19]PW[A]PB[B]WR[6d]BR[6d];B[qd];W[dp])[/gos2]

Player displaying a game

[gos2=game](;GM[1]FF[4]CA[UTF-8]SZ[19]PW[A]PB[B]WR[6d]BR[6d];B[qd];W[dp])[/gos2]

Player displaying a problem

[gos2=problem](;GM[1]FF[4]CA[UTF-8]SZ[19]PW[A]PB[B]WR[6d]BR[6d];B[qd];W[dp])[/gos2]

Player with comments and moves tree

[gos2=tree](;GM[1]FF[4]CA[UTF-8]SZ[19]PW[A]PB[B]WR[6d]BR[6d];B[qd];W[dp])[/gos2]

To insert a sgf record comming from a sgf file, you can just copy/paste the content of the file between [gos2] and [/gos2] using the phpBB editor. But this editor changes the content such as adding a <br> tag when a line break is encountered in the sgf file, replacing "(" and ")" by their html codes, etc. MaxiGos tries to deal that, but some other adaptations may be necessary according to the situation.

Notes

It is possible to use other variations of the player: just download the convenient player from the maxiGos download page, upload it in "scripts/_maxigos" folder of phpBB, and adapt the BBCode settings.