How to integrate embedchessboard joomla Plugin in Kunena Forum?

Sort:
Avatar of ridhem01

hi
I am using the kunena forum 1.5 joomla component. and i am using your plugin for replay chess games. it works fine in the joomla site but the problem is that in kunena forum posts it does not work.
I read pgn4web wiki (http://code.google.com/p/pgn4web/wiki/User_Notes_joomla) carefully and find the required file (kunena.parser.php) in the instalation directory and i see the file cods many times and finally i find the required code i.e
function TagExtended(&$tag_new, &$task, $tag, $between) {
$tag_new = $between;
return TAGPARSER_RET_NOTHING;
}
Now i am confused where to paste your given codes in this above codes. I am trying to paste after
$tag_new = $between;
but it does not work then i am try after above all codes but now the result is same. i am alo try after
(&$tag_new, &$task, $tag, $between)
but in all cases my frontend is disappear and i am facing an error that at some line (864 ,865;866,867) in the file joomla/components/com_kunena/lib/kunena.…
As explained in the wiki,
First locate the file joomla/components/com_kunena/lib/kunena.… and make a backup copy.
Then edit the file, locating the function TagExtended(&$tag_new, &$task, $tag, $between) and at the end of the function, after
case 'spoiler':
...
break;
add an additional case statement dealing with the pgn tag:
case 'pgn':
$tag_new = '';
$pgn4webPath = JURI::root(true) . "/plugins/content/embedchessboard/pgn4we…
$pgnText = preg_replace("/
/", " ", html_entity_decode($between));

$height = 268;
$multiGamesRegexp = '/\s*\[\s*\w+\s*"[^"]*"\s*\]\s*[^\s\[\]]…
if (preg_match($multiGamesRegexp, $pgnText) > 0) { $height += 34; }
$pgnId = "pgn4web_" . dechex(crc32($pgnText));
$tag_new .= "" . $pgnText . "";
$tag_new .= "</em></span><br /><span style="color:#ff0000;" _mce_style="color: #ff0000;"><em> $tag_new .= "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";
return TAGPARSER_RET_REPLACED;
break;
At the end of the function, I dont find below code
case 'spoiler':
...
break;
I dont know this is the right place for this support but if you help me i am very thankful to you. please help me if you can.
You can see this plugin in action at http://pgn4web-test.casaschi.net/joomla/index.php?option=com_kunena&Itemid=53&func=view&catid=4&id=2
Best Regards
Waqas