Lo All,
I am trying to integrate Itemstats module
http://sourceforge.net/project/showfiles.php?group_id=69529&package_id=70632&release_id=381547 with CBB (newbb). This module can display items from wow.allakhazam.com etc.
Itemstats only works with PHPBB by inserting a custom bbcode tag and then rendering the custom tag with a function call. The whole set of instructions is as follows :
----------------------------------------------
OPEN
{forum_root}/include/bbcode.php
FIND
define("BBCODE_UID_LEN", 10);
ADD-AFTER
include('./itemstats/phpbb_itemstats.php');
FIND
function bbencode_second_pass($text, $uid)
{
global $lang, $bbcode_tpl;
ADD-AFTER
// Parse text for ItemStats mod
$text = itemstats_parse($text);
SAVE AND CLOSE
{forum_root}/include/bbcode.php
OPEN
{forum_root}/templates/subSilver/overall_header.tpl
FIND
ADD-AFTER
SAVE AND CLOSE
{forum_root}/templates/subSilver/overall_header.tpl
----------------------------------------------------
So, the question is, is there a place in CBB code (or XOOPS code) where I can
1. Intercept/Retrieve the text of the post (before it is rendered).
2. inject the 'itemstats_parse($text)' function where 'text' is the content I got from 1. above, and modify it before handing it back to the forum renderer.
Since CBB does not support BBCodes, I don't know how to do this. Also I don't know what XOOPS codes are, or if I can add custom XOOPS codes etc
Any help would be appreciated.
Cheers