subs.php
array(
'tag' => 'green',
'before' => '<span style="color: green;">',
'after' => '</span>',
),
array(
'tag' => 'uzmantv',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<object width="$2" height="$3"><param name="movie"
value="http://www.uzmantv.com/getswf/$1" ></param><embed src="http://www.uzmantv.com/getswf/$1" 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]),
'uzmantv' => array('code' => 'uzmantv', 'before' => '[uzmantv=425,350]', 'after' => '[/uzmantv]', 'description' => $txt['uzmantv']),
Modifications.portuguese_pt.php
?>
$txt['uzmantv'] = 'uzmantv';