The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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]" 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 Code:
[video]http://www.youtube.com/watch?v=ghPcYqn0p4Y[/video] Any thoughts to this little problem? |
#2
|
||||
|
||||
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
|
#3
|
|||
|
|||
The only other things ive noticed are the quotes display wrong and there are double line breaks :
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|