How phpBB3 users can post chess diagram?

General discussion about computer chess...
Post Reply
pakchess
Posts: 2
Joined: Sun Nov 21, 2010 3:00 am
Real Name: Waqas Ahmad

How phpBB3 users can post chess diagram?

Post by pakchess » Tue Nov 23, 2010 10:38 pm

How phpBB3 users can post chess diagram with pgn4web?
I already installed pgn4web and it works well after creating custom bbcode in phpBB as explaned at the pgn4web wiki.
BBcode is

Code: Select all

[pgn]{TEXT}[/pgn] 
and value for the HTML replacement string is

Code: Select all

<script type='text/javascript'>
var pgn4webPath = "/pgn4web";
var pgn4webTextareaIdNum;
if (pgn4webTextareaIdNum === undefined) { pgn4webTextareaIdNum = 1; }
pgn4webTextareaId = "pgn4web_" + pgn4webTextareaIdNum++;
document.write("<textarea id='" + pgn4webTextareaId +"' style='display: none;'>");
</script>
{TEXT}
</textarea>
<script type='text/javascript'>
document.getElementById(pgn4webTextareaId).value = document.getElementById(pgn4webTextareaId).value.replace(/<\s*br\s*\/>/gi, ' ');
height = 268;
multiGamesRegexp = /\s*\[\s*\w+\s*"[^"]*"\s*\]\s*[^\s\[\]]+[\s\S]*\[\s*\w+\s*"[^"]*"\s*\]\s*/m;
if (multiGamesRegexp.test(document.getElementById(pgn4webTextareaId).value)) { height += 34; }
document.write("<iframe src='" + pgn4webPath + "/board.html?am=l&d=3000&ss=26&ps=d&pf=d&lcs=TtKN&dcs=LHCg&bbcs=LHCg&hm=b&hcs=mF9_&bd=c&cbcs=RZmI&ctcs=zEtr&hd=j&md=j&tm=13&fhcs=$$$$&fhs=80p&fmcs=$$$$&fccs=v71$&hmcs=M___&fms=80p&fcs=m&cd=i&bcs=TtKN&fp=13&hl=t&fh=b&fw=p&pi=" + pgn4webTextareaId + "' 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>
But this coad does not works with the FEN. Please guide me how my users can post chess diagrams in phpBB3 fourm just like Open-chess.org?

paulyne
Posts: 1
Joined: Fri Apr 22, 2011 10:27 am
Real Name: paulyne

Re: How phpBB3 users can post chess diagram?

Post by paulyne » Sat Apr 23, 2011 11:21 am

How do I break into the local chess scene? I live in Northwestern Broward County, FL, USA. I have tried looking online for local chess clubs and tournaments but I have had no luck. I enjoy playing chess online but I enjoy it more when I play in person. I would appreciate advice about becoming active in the chess world in general, but specifics would be greatly appreciated. I am 18 years old by the way, so it can't be a children's league or anything. Please help! Thank you!


Post Reply