vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Parsing [video] bbcodes in own script (https://vborg.vbsupport.ru/showthread.php?t=245947)

tscargo 07-05-2010 09:46 PM

Parsing [video] bbcodes in own script
 
Hi,

I am working on some custom php-scripts. I used to parse bbcode in some db-fields using this function:

Code:

//parse bbcode to html
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$content = $parser->parse($post['pagetext']);

Unfortunately this does not parse any video bbcodes.

How should i make this parse all tags ?

Thanks,

Taco

--------------- Added [DATE]1278373095[/DATE] at [TIME]1278373095[/TIME] ---------------

Found out it was forum permission related....

NeDra 09-14-2010 01:57 PM

Thank a lot! your code helped me ^^
I needed the same thing as you.

Here, we use bbcode made custom and it parsing the custom code perfectly.
I haven't tried if the
[video=youtube;eOUq4Z6R7xI]http://www.youtube.com/watch?v=eOUq4Z6R7xI[/video]
where also being parsed correctly, but i figure the video one will since it came with vbulletin?

Sorry, I guess you needed that info 3 months ago, if your still having an issue, let me know and i will peak at it and try to figure out what the issue is.

I was using the $text=parse_wysiwyg_html($text); method but that wasn't parsing the bbcode at all.

Kyojii 04-13-2012 10:42 PM

Quote:

Originally Posted by tscargo (Post 2064997)
Hi,

I am working on some custom php-scripts. I used to parse bbcode in some db-fields using this function:

Code:

//parse bbcode to html
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
$content = $parser->parse($post['pagetext']);

Unfortunately this does not parse any video bbcodes.

How should i make this parse all tags ?

Thanks,

Taco

--------------- Added [DATE]1278373095[/DATE] at [TIME]1278373095[/TIME] ---------------

Found out it was forum permission related....

Does anyone happen to know what permission this is? Found my problem, it's completely unrelated to the parsing it's because the option parameter for the video is missing.


All times are GMT. The time now is 04:00 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00952 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete