ipprof
11-06-2010, 02:12 PM
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:
$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 135 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 :)
Currently I have this little snippet that helps me to output vb posts nicely from other site:
$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 135 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 :)