Changeset 1155 in ExiteCMS for trunk/includes/core_functions.php


Ignore:
Timestamp:
12/02/07 14:54:55 (4 years ago)
Author:
hverton
Message:

youtube bbcode is now xhtml compliant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core_functions.php

    r1154 r1155  
    527527    $text = preg_replace('#\[center\](.*?)\[/center\]#si', '<center>\1</center>', $text); 
    528528 
    529     $text = preg_replace('#\[youtube\](.*?)\[/youtube\]#si', '<object width="425" height="355"><param name="movie" value="\1"></param><param name="wmode" value="transparent"></param><embed src="\1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>', $text); 
     529    $text = preg_replace('#\[youtube\](.*?)\[/youtube\]#si', '<object type="application/x-shockwave-flash" width="425" height="350" data="http://www.youtube.com/v/\1"><param name="movie" value="http://www.youtube.com/v/\1"></param><param name="wmode" value="transparent"></param></object>', $text); 
    530530 
    531531    // correct illegal [url=] BBcode 
Note: See TracChangeset for help on using the changeset viewer.