subs.php
Pesquisar
array(
'tag' => 'green',
'before' => '<span style="color: green;">',
'after' => '</span>',
),
Adicionar
array(
'tag' => 'metacafe',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<embed src="http://www.metacafe.com/fplayer/$1.swf" type="application/x-shockwave-flash" width="400" height="345"></embed>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
)
Themes/Post.template.php
Pesquisar
flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
Adicionar
'metacafe' => array('code' => 'metacafe', 'before' => '[metacafe=400,345]', 'after' => '[/metacafe]','description' => Metacafe),
ficheiro no anexo metacafe.gif tem que estar na pasta images/bbc