The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Parsing bbcode not working on all tags.
I'm parsing bbcode like so...
Code:
$bbcode_parser =& new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),false); echo $bbcode_parser->do_parse($vbulletin->GPC['article']); EDIT: I found the answer for custom tags here: http://members.vbulletin.com/api/vBu...nd_custom_tags $bbcode_parser->append_custom_tags(); and that's resolved, the video tag is still just returning a link though. EDIT: I've been messing around with the handle_bbcode_video() function but I haven't been able to get it to work yet. I've tried using regex to get the video url and pass that in, however that didn't work and I've tried giving it the whole post, however that didn't work either. --------------- Added [DATE]1333747841[/DATE] at [TIME]1333747841[/TIME] --------------- *sigh* not sure why but this function doesn't seem to work no matter what data I throw at it. I think I'm calling it wrong or something. I've tried... Code:
$bbcode_parser = new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),false); $bbcode_parser->handle_bbcode_video('http://www.youtube.com/watch?v=zTpsrqvGL2Q'); Code:
$bbcode_parser = new vB_BbCodeParser($GLOBALS['vbulletin'], fetch_tag_list(),false); $bbcode_parser->handle_bbcode_video('[video]http://www.youtube.com/watch?v=zTpsrqvGL2Q[/video]'); Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|