Cleaner.php question/ help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BasilFawlty
    Senior Member
    • Jul 2012
    • 255
    • 4.2.X

    Cleaner.php question/ help

    Ok, I did an Impex import from UBB.Threads to VB and have had a lot of luck parsing most of the code (smilies, etc) using cleaner.php. But wherever someone has posted a video on my old forum looks like this:

    Code:
    [COLOR=#333333]<object width="425" height="350"> <param name="movie" value="http://www.youtube.com/v/16kh-AP4OCU"></param> <param name="wmode" value="transparent"></param> <embed src="http://www.youtube.com/v/16kh-AP4OCU" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"> </embed></object>[/COLOR]
    I first wanted to get the front part to change to a "" tag, then the back part to look like "

    This is the code I put in cleaner.php for the first try:

    PHP Code:
    $replacer = array(            '<object width="425" height="350">' => "",
                                                 
    '<param name="movie" value="' => "[video]",
                                                 
    '"></param>' => "[/video]",
                                                 
    ""    => "",
                                                 
    ""    => ""
              
    ); 
    But cleaner didn't touch it. Any ideas why not? Thanks in advance.

Related Topics

Collapse

Working...