SMFPT - Suporte e Manutenção de Fórum em Português
SMF 1.1.x (Móbulos Manual) => SMF 1.1.x Módulos Manual => Media => Tópico iniciado por: candidosa2 em 19 de Fevereiro de 2011, 22:05
-
My Video BBC Tag
Yapımcı:Mave
Mod Linki: http://custom.simplemachines.org/mods/index.php?mod=791
sources/Subs.php
array(
'tag' => 'hr',
'type' => 'closed',
'content' => '<hr />',
'block_level' => true,
),
array(
'tag' => 'myvideo',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<object type="application/x-shockwave-flash" data="http://www.myvideo.de/movie/$1" width="$2" height="$3"><param name="movie" value="http://www.myvideo.de/movie/$1" /><param name="wmode" value="transparent" /></object></a> ',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$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]),
'myvideo' => array('code' => 'myvideo', 'before' => '[myvideo=425,350]', 'after' => '[/myvideo]', 'description' => $txt['myvideo']),
languages/Modifications.teuidioma.php
?>
$txt['myvideo'] = 'MyVideo insert Number';
images/ bbc
Anexo