The Webmaster gives to me the solution :
[ariegenews]video-1375.html[/ariegenews]
But i have to include this function :
preg_replace(
'/\[ariegenews\]([^\[]+)\[\/ariegenews\]/gi',
'<script type="text/javascript"
src="http://www.ariegenews.com/data/rss/video-$1.html"></script>',
$post
);
Where and how do i have to include this function ,including it in parser.php as is give me a lot of errors.
My first idea was to include it after the youtube bbcode in parser.php here is the modifications already done :
#
#---------[ 1. OPEN ]---------------------------------------------------------
#
include/parser.php
#
#---------[ 2. FIND (line: 316) ]---------------------------------------------
#
'#\[u\](.*?)\[/u\]#s',
#
#---------[ 3. AFTER, ADD ]---------------------------------------------------
#
'#\[youtube\]http://www.youtube.com/watch\?v=(.*?)\[/youtube\]#s',
#
#---------[ 4. FIND (line: 326) ]---------------------------------------------
#
'<span class="bbu">$1</span>',
#
#---------[ 5. AFTER, ADD ]---------------------------------------------------
#
'<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$1"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="425" height="350"></embed></object>',
#
#---------[ 6. SAVE/UPLOAD ]-------------------------------------------------
#
Any advice ?