XBBCODE

pXBBCode+ - para tags still not working as suggested and PGN headers are mangledbr / Lines and paragraphs break automatically./p p[p]br / Apparently OK code gives error message:br / warning: array_shift() [function.array-shift]: The argument should be an array in /usr/local/share/drupal/modules/xbbcode-6.x-1.2/xbbcode_list/xbbcode_list.module on line 97./p pscript type="text/javascript" var pgn4webURL = "http://www.exeterchessclub.org.uk/pgn4web"; if (!document.getElementById("pgn4webEncoderScript")) { document.write('script id="pgn4webEncoderScript" type="text/javascript" src="' + pgn4webURL + '/pgn-encoder.js"/' + 'script'); } /script script type='text/javascript' var pgn4webTextareaIdNum; if (pgn4webTextareaIdNum == undefined) { pgn4webTextareaIdNum = 999; } pgn4webTextareaId = "pgn4web_" + pgn4webTextareaIdNum++; document.write("textarea id='" + pgn4webTextareaId +"' style='display: none;'"); /script br / [Event \\\"east devon #2\\\"]br / [Site \\\"east devon #2\\\"]br / [Date \\\"1994.??.??\\\"]br / [Round \\\"?\\\"]br / [White \\\"Regis, David\\\"]br / [Black \\\"Aston, Paul A\\\"]br / [Result \\\"1-0\\\"]br / [ECO \\\"B23\\\"]br / [WhiteElo \\\"1935\\\"]br / [BlackElo \\\"2000\\\"]br / [PlyCount \\\"76\\\"]/p p1. e4 c5 2. Nc3 e6 3. Nge2 d5 4. exd5 exd5 5. d4 Nc6 (5... Nf6 6. Bg5 Nc6 7.br / Bxf6 Qxf6 8. Nxd5 Qd6 9. dxc5) 6. Be3 Nf6 7. dxc5 Qa5 8. Nd4 Ng4 9. Bb5 Nxe3br / 10. fxe3 $2 (10. Nxc6 Nxd1 (10... bxc6 11. Bxc6+ Bd7 12. Bxd7+ Kxd7 13. fxe3br / Qxc5 14. Qxd5+ Qxd5 15. Nxd5) 11. Nxa5+ Kd8 12. Rxd1) 10... Bd7 11. Nb3 Qb4 12.br / O-O Qh4 (12... O-O-O 13. Rf4) 13. Nxd5 O-O-O 14. Qf3 Be6 15. Bxc6 bxc6 16. Nf4br / Bd5 17. Nxd5 cxd5 18. Qf5+ Kc7 19. Qe5+ Kc8 20. Rxf7 Rd7 21. Qe8+ (21. Qe6 Qd8br / 22. c6) 21... Qd8 22. Qxd8+ Kxd8 23. Rxd7+ (23. Raf1) 23... Kxd7 24. Rd1 Kc6br / 25. Nd4+ Kxc5 26. Ne6+ Kc6 27. Nf4 Bc5 28. Nxd5 Rf8 29. c4 a5 30. Rf1 Re8 31.br / Rf3 Re4 32. b3 Kd6 33. Kf2 g6 34. Rf6+ Ke5 35. g3 Bxe3+ 36. Kf3 Bc5 37. Ra6 (br / 37. Re6+ Kxe6 38. Kxe4 g5 39. Ne3 Bf8 40. h3 Bc5 41. Nc2 h5 42. g4 hxg4 43.br / hxg4 Bf2 44. a3 Bc5 45. b4 Be7 46. c5) 37... Bb4 (37... g5 38. h3 h5 39. Rg6)br / 38. Nxb4 Re1 1-0br / /textarea script type='text/javascript' pgnText = document.getElementById(pgn4webTextareaId).value; pgnText = pgnText.replace(/\s*br\s*\//gi, ' '); pgnText = pgnText.replace(/\s*\/*p\s*/gi, ' '); multiGamesRegexp = /\s*\[\s*\w+\s*"[^"]*"\s*\]\s*[^\s\[\]]+[\s\S]*\[\s*\w+\s*"[^"]*"\s*\]\s*/m; if (multiGamesRegexp.test(pgnText)) { height = 302; } else { height = 268; } pgnEncoded = EncodePGN(pgnText); document.write("iframe src='" + pgn4webURL + "/board.html?am=ld=3000ss=26ps=dpf=dlcs=WumVdcs=OImtbbcs=OImthm=bhcs=xnm_bd=ccbcs=UJSNctcs=l4Ithd=jmd=jtm=13fhcs=$$$$fhs=80pfmcs=$$$$fccs=v71$hmcs=M___fms=80pfcs=mcd=ibcs=WumVfp=13hl=tfh=bfw=ppe=" + pgnEncoded + "' 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/p p[Event \"east devon #2\"]br / [Site \"east devon #2\"]br / [Date \"1994.??.??\"]br / [Round \"?\"]br / [White \"Regis, David\"]br / [Black \"Aston, Paul A\"]br / [Result \"1-0\"]br / [ECO \"B23\"]br / [WhiteElo \"1935\"]br / [BlackElo \"2000\"]br / [PlyCount \"76\"]/p pscript type="text/javascript" var pgn4webURL = "http://www.exeterchessclub.org.uk/pgn4web"; if (!document.getElementById("pgn4webEncoderScript")) { document.write('script id="pgn4webEncoderScript" type="text/javascript" src="' + pgn4webURL + '/pgn-encoder.js"/' + 'script'); } /script script type='text/javascript' var pgn4webTextareaIdNum; if (pgn4webTextareaIdNum == undefined) { pgn4webTextareaIdNum = 999; } pgn4webTextareaId = "pgn4web_" + pgn4webTextareaIdNum++; document.write("textarea id='" + pgn4webTextareaId +"' style='display: none;'"); /script br / 1. e4 c5 2. Nc3 e6 3. Nge2 d5 4. exd5 exd5 5. d4 Nc6 (5... Nf6 6. Bg5 Nc6 7.br / Bxf6 Qxf6 8. Nxd5 Qd6 9. dxc5) 6. Be3 Nf6 7. dxc5 Qa5 8. Nd4 Ng4 9. Bb5 Nxe3br / 10. fxe3 $2 (10. Nxc6 Nxd1 (10... bxc6 11. Bxc6+ Bd7 12. Bxd7+ Kxd7 13. fxe3br / Qxc5 14. Qxd5+ Qxd5 15. Nxd5) 11. Nxa5+ Kd8 12. Rxd1) 10... Bd7 11. Nb3 Qb4 12.br / O-O Qh4 (12... O-O-O 13. Rf4) 13. Nxd5 O-O-O 14. Qf3 Be6 15. Bxc6 bxc6 16. Nf4br / Bd5 17. Nxd5 cxd5 18. Qf5+ Kc7 19. Qe5+ Kc8 20. Rxf7 Rd7 21. Qe8+ (21. Qe6 Qd8br / 22. c6) 21... Qd8 22. Qxd8+ Kxd8 23. Rxd7+ (23. Raf1) 23... Kxd7 24. Rd1 Kc6br / 25. Nd4+ Kxc5 26. Ne6+ Kc6 27. Nf4 Bc5 28. Nxd5 Rf8 29. c4 a5 30. Rf1 Re8 31.br / Rf3 Re4 32. b3 Kd6 33. Kf2 g6 34. Rf6+ Ke5 35. g3 Bxe3+ 36. Kf3 Bc5 37. Ra6 (br / 37. Re6+ Kxe6 38. Kxe4 g5 39. Ne3 Bf8 40. h3 Bc5 41. Nc2 h5 42. g4 hxg4 43.br / hxg4 Bf2 44. a3 Bc5 45. b4 Be7 46. c5) 37... Bb4 (37... g5 38. h3 h5 39. Rg6)br / 38. Nxb4 Re1 1-0br / /textarea script type='text/javascript' pgnText = document.getElementById(pgn4webTextareaId).value; pgnText = pgnText.replace(/\s*br\s*\//gi, ' '); pgnText = pgnText.replace(/\s*\/*p\s*/gi, ' '); multiGamesRegexp = /\s*\[\s*\w+\s*"[^"]*"\s*\]\s*[^\s\[\]]+[\s\S]*\[\s*\w+\s*"[^"]*"\s*\]\s*/m; if (multiGamesRegexp.test(pgnText)) { height = 302; } else { height = 268; } pgnEncoded = EncodePGN(pgnText); document.write("iframe src='" + pgn4webURL + "/board.html?am=ld=3000ss=26ps=dpf=dlcs=WumVdcs=OImtbbcs=OImthm=bhcs=xnm_bd=ccbcs=UJSNctcs=l4Ithd=jmd=jtm=13fhcs=$$$$fhs=80pfmcs=$$$$fccs=v71$hmcs=M___fms=80pfcs=mcd=ibcs=WumVfp=13hl=tfh=bfw=ppe=" + pgnEncoded + "' 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"); /scriptbr /* You may use these tags:br / abbr title=""abbr/abbrbr / acronym title=""acronym/acronymbr / strongb/strongbr / objectp style="text-align:center"center/p/objectbr / codecode/codebr / [color:red]color[/color]br / dldddefine/dd/dlbr / span style="font-family:"font/spanbr / h1h1/h1br / h2h2/h2br / h3h3/h3br / h4h4/h4br / h5h5/h5br / h6h6/h6br / hr /br / emi/embr / img src='img' alt='IMAGE(img)' /br / objectp style="text-align:justify"justify/p/objectbr / objectp style="text-align:left"left/p/objectbr / ulli/li/ulbr / a href="/node/"node/abr / ol class="numeric"liulli/li/ul/li/olbr / Should be three paragraphs next:br / [p]paragraphbr / [p]paragraphbr / [p]paragraph/p pblockquotequote/blockquotebr / objectp style="text-align:right"right/p/objectbr / dels/delbr / span style="font-size:"size/spanbr / subsub/subbr / supsup/supbr / tabletbody tr class="odd"tdtable/td /tr/tbody/tablebr / span style="text-decoration:underline"u/spanbr / ul class=""liulli/li/ul/li/ulbr / a href="" title=""url/abr / a title="wikipedia on Wikipedia" href="http://www.wikipedia.org/wiki/wikipedia"wikipedia/a/p pWeb page addresses and e-mail addresses turn into links automatically:br / a href="/content/bbcode" title="/content/bbcode"/content/bbcode/a/p

legacy nid: 

383

Topics: