TrTube

Iniciado por candidosa2, 13 de Outubro de 2007, 09:55

Tópico anterior - Tópico seguinte

0 Membros e 3 Visitantes estão a ver este tópico.

candidosa2


Subs.php

array(
'tag' => 'green',
'before' => '<span style="color: green;">',
'after' => '</span>',
),


array(
'tag' => 'trtube',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<object width="$2" height="$3"><param name="movie" value="http://www.trtube.com/flvplayer_3_7.swf?" ></param><embed src="http://www.trtube.com/flvplayer_3_7.swf?" type="application/x-shockwave-flash" width="$2" height="$3"></embed></object>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';
$pattern = \'/http:\/\/.+v=(.+)(&.+)*/i\';
if (preg_match($pattern, $data[0], $matches))
$data[0] = $matches[1];'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),


Post.template.php

'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),

'trtube' => array('code' => 'trtube', 'before' => '[trtube=425,350]', 'after' => '[/trtube]', 'description' => $txt['trtube']),


Modifications.portuguese.php

?>

$txt['trtube'] = 'TrTube';