[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 492: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5133: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3843)
BBcode [versus] ? - FORUM ASYNCRON GAMES

BBcode [versus] ?

XVI
Advanced Member
Messages : 57
Inscription : Ven 28 Mars 2008 16:09
Contact :

Messagepar XVI » Mer 14 Mai 2008 11:48

Dernière édition par XVI le Jeu 15 Mai 2008 17:39, édité 1 fois.

XVI
Advanced Member
Messages : 57
Inscription : Ven 28 Mars 2008 16:09
Contact :

Messagepar XVI » Mer 14 Mai 2008 12:08

D'après la doc ip.board, il suffit d'aller dans l'interface administrateur => Management => Custom BBcode => add custom bbcode =>

Custom BBcode tag = versus

Use option in tag = yes

switch option around = no

custom BBcode replacement =
<div id='versus'><pre id='vs_{option}' style='position:relative; top:0px; left:0px; width:300px; height:300px;'>{content}</pre>
<script language="JavaScript" src="http://jeudi.site.voila.fr/vsbb.js"></script>
<script language="JavaScript">DrawBoard('vs_{option}',300)</script>
</div>


Ce qui, après avoir installé les images et le fichier vsbb.js sur le serveur, devrait permettre de convertir plusieurs [versus=identifiant].......[/versus] dans un même message et même page. Le seul problème que je vois, c'est le positionnement et dimensionnement (là, je dois prédimensionner le <pre> pour eviter les problèmes d'overflow dans ip.borad, et je n'arrive pas à afficher les plateaux côte à côte.
Dernière édition par XVI le Jeu 15 Mai 2008 22:10, édité 1 fois.

Avatar de l’utilisateur
Tontione
Advanced Member
Messages : 2103
Inscription : Sam 21 Juil 2007 23:26
Contact :

Messagepar Tontione » Mer 14 Mai 2008 12:26

Ah mais c'est une bonne idée ça, il faut que je regarde ...
Tontione - Directeur technique
ASYNCRON™ games, le temps de jouer.

XVI
Advanced Member
Messages : 57
Inscription : Ven 28 Mars 2008 16:09
Contact :

Messagepar XVI » Jeu 15 Mai 2008 17:35

Bon, voila, j'ai fait un test avec un forum de demo d'ip.board, et ça a l'air de marcher (sauf l'affichage côte à côte). Il suffit d'importer sur ce forum le bbcode.xml ci-dessous, ou de suivre les indications ci-haut (et dans un deuxième temps, les images, le js et virer les références à jeudi.site.voila.fr (temporaire)).


CODE
<?xml version="1.0" encoding="ISO-8859-1"?>
<bbcodeexport exported="1210868863">
<bbcodegroup>
<bbcode>
<bbcode_id>10</bbcode_id>
<bbcode_title>versus</bbcode_title>
<bbcode_desc>ascii to image representation</bbcode_desc>
<bbcode_tag>versus</bbcode_tag>
<bbcode_replace><![CDATA[<div id='versus'><pre id='vs_{option}' style='position:relative; top:0px; left:0px; width:300px; height:300px;'>{content}</pre>
<script language="JavaScript" src="http://jeudi.site.voila.fr/vsbb.js"></script>
<script language="JavaScript">DrawBoard('vs_{option}',300)</script>
</div>]]></bbcode_replace>
<bbcode_useoption>1</bbcode_useoption>
<bbcode_example><![CDATA[

. . . . . .
. . B3 . . . .
. . . M3 . B1 . .
. . . . . . . . .
. MV BV . B0 . . . M3 .
c . M4 . B5 . c . B4 . c
. . . . . . . . . .
. . . . B4 . . . .
. . . B3 . . . .
. . . . . . .
. . . . . .




]]></bbcode_example>
<bbcode_switch_option>0</bbcode_switch_option>
<bbcode_add_into_menu>1</bbcode_add_into_menu>
<bbcode_menu_option_text>identifiant</bbcode_menu_option_text>
<bbcode_menu_content_text></bbcode_menu_content_text>
</bbcode>
</bbcodegroup>

</bbcodeexport>


PS: pourquoi est-il impossible de supprimer ses propres messages sur ce forum ?
PPS: comme il n'est pas possible de passer plusieurs options dans un bbcode, on pourrait créer plusieurs tags [versus100], [versus200], [versus300] permettant d'afficher le plateau en différentes tailles 100x100, 200x200, 300x300. Dans ce cas, il faut adapter le <div id='versus'> pour chaque BBcode, pour qu'IP.board puisse s'y retrouver.

(PPPS: une autre solution serait une iframe vers un php s'occupant de la conversion.)
Dernière édition par XVI le Jeu 17 Juil 2008 16:28, édité 1 fois.

Avatar de l’utilisateur
Tontione
Advanced Member
Messages : 2103
Inscription : Sam 21 Juil 2007 23:26
Contact :

Messagepar Tontione » Ven 16 Mai 2008 08:58

 . . . . . . . . B3 . . . . . . . M3 . B1 . . . . . . . . . . . . MV BV . B0 . . . M3 . c . M4 . B5 . c . B4 . c . . . . . . . . . . . . . . B4 . . . . . . . B3 . . . . . . . . . . . . . . . . . 





Ca a l'air de bien marcher.
Beau travail, merci Max ! :)

POur la possibilité de supprimer ses propres messages, j'ai modifié le paramétrage, vous pouvez maintenant.
Dernière édition par Tontione le Ven 16 Mai 2008 09:01, édité 1 fois.
Tontione - Directeur technique
ASYNCRON™ games, le temps de jouer.

XVI
Advanced Member
Messages : 57
Inscription : Ven 28 Mars 2008 16:09
Contact :

Messagepar XVI » Ven 16 Mai 2008 15:10

Dernière édition par XVI le Ven 16 Mai 2008 15:57, édité 1 fois.

XVI
Advanced Member
Messages : 57
Inscription : Ven 28 Mars 2008 16:09
Contact :

Messagepar XVI » Ven 16 Mai 2008 15:53

par contre, pourrais-tu éditer le vsbb.js que tu as importé, et y remplacer :

"http://jeudi.site.voila.fr/"
par
"http://www.versus-le-jeu.net/bbcode/"

et

txt=txt.replace(/<br\s?\/?>/g,''); //fix for ip.board
par
txt=txt.replace(/<br\/?>/gi,''); //fix for ip.board

? merci.
Dernière édition par XVI le Ven 16 Mai 2008 16:56, édité 1 fois.

Avatar de l’utilisateur
Lucas
Advanced Member
Messages : 283
Inscription : Ven 20 Juil 2007 20:47
Localisation : Périgueux
Contact :

Messagepar Lucas » Ven 16 Mai 2008 19:36

Qeulle langue vous parlez? :D

Avatar de l’utilisateur
Tontione
Advanced Member
Messages : 2103
Inscription : Sam 21 Juil 2007 23:26
Contact :

Messagepar Tontione » Ven 16 Mai 2008 21:05

Arf j'avais oublié cette ligne.
Pour l'expression régulière, je n'ai pas trop compris ce qu'elle faisait...
Tontione - Directeur technique
ASYNCRON™ games, le temps de jouer.

XVI
Advanced Member
Messages : 57
Inscription : Ven 28 Mars 2008 16:09
Contact :

Messagepar XVI » Ven 16 Mai 2008 21:06

Tu fais bien de poser la question, Lucas, car c'est en pensant à toi et à ton post sur les cases fortes que je me suis dit qu'on pourrait "simplifier" l'illustration de parties sur ce forum.
Si tu vois les plateaux de jeu, là haut, c'est en partie gagné.

Il ne restera plus qu'à prendre l'habitude d'éditer un plateau sous forme de texte pour ceux que celà chante.
Dernière édition par XVI le Ven 16 Mai 2008 21:11, édité 1 fois.


Revenir vers « VERSUS »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 3 invités

cron