Sources/Subs.php
Pesquisar
array(
'tag' => 'green',
'before' => '<span style="color: green;">',
'after' => '</span>',
),
Adicionar
array(
'tag' => 'facebook',
'type' => 'unparsed_content',
'content' => '<object width="576" height="460" ><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.facebook.com/v/$1" /><embed src="http://www.facebook.com/v/$1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="576" height="460"></embed></object>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';
global $context;
if (preg_match(\'~([a-z0-9]{1,15})~i\'.($context[\'utf8\'] ? \'u\' : \'\'), $data[0], $matches))
$data[0] = $matches[1];
else
$tag[\'content\'] = \'$1\';
'),
'block_level' => true,
'disabled_content' => '$1'
),
Themes/default/Post.template.php
Pesquisar
'url' => array('code' => 'url', 'before' => '[url]', 'after' => '[/url]', 'description' => $txt[257]),
Adicionar
'facebook' => array('code' => 'facebook', 'before' => '[facebook]', 'after' => '[/facebook]', 'description' => $txt['facebook']),
Themes/default/languages/Modifications.portuguese_pt.php
Pesquisar
?>
Adicionar
$txt['facebook'] = 'Facebook Video';