vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Using cleaner.php to change tags (https://vborg.vbsupport.ru/showthread.php?t=246019)

Gleedo 07-06-2010 07:47 PM

Using cleaner.php to change tags
 
Hello

I am testing porting ipb3 to vb4.04.

The only thing I am having problems with is changing ipb's [media] tags to vb4's [video] tags.

I have used cleaner.php and added the following:
Code:

$replacer = array(
                        "[media]"        => "[video]",
                        "[/media]"        => "[/video]"

I run cleaner.php and it goes through and I then rebuild the post cache via admincp as explained here.

After ive done that, I go to my test board and refresh a thread that contained a youtube clip in [media] tags.

I was expecting to see the youtube clip embedded, but the post just had the following in it:
Code:

http://www.youtube.com/watch?v=ghPcYqn0p4Y
However, If I just click the 'edit' button, the post does in fact look like this:
Code:

[video]http://www.youtube.com/watch?v=ghPcYqn0p4Y[/video]
If I then just click save without making any changes, the video correctly appears embedded in the post.

Any thoughts to this little problem? :confused:

Attitude5ire 07-07-2010 05:44 AM

I think its because the replacer only replaces the text in forum and doesnt exactly parse it. Does it happen with any other bbcode or only video? Not an expert on it but usually if the post cache is updated it sort of should work.. since video is a sort of next vb4 tag maybe it has some bugs not sure.. should definately ask the vbulletin.com techs

Gleedo 07-07-2010 05:55 AM

The only other things ive noticed are the quotes display wrong and there are double line breaks :

https://vborg.vbsupport.ru/external/2010/07/3.gif


All times are GMT. The time now is 01:14 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.01082 seconds
  • Memory Usage 1,713KB
  • 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
  • (3)bbcode_code_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