hello, does anybody know how to parse attachment bbcode?
Currently I have this little snippet that helps me to output vb posts nicely from other site:
Code:
$curdir = getcwd();
chdir('forum');
require_once('global.php');
global $vbulletin;
require_once('includes/class_bbcode.php');
$bbcode =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$text = $bbcode->parse($row->pagetext,$forumid,true,false,$row->pagetext,2,1);
print $text;
chdir($curdir);
Everything is just fine, but tags [ATTACH*?]135[/ATTACH] are parsed to "attachment135", wrapped with link.
Is there any way to parse it to image like in the posts?
p.s. sorry for bad english