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 05 de Maio de 2009, 05:05

Título: National Geographic Video BBC
Enviado por: candidosa2 em 05 de Maio de 2009, 05:05
http://custom.simplemachines.org/mods/index.php?mod=1507


/Sources/Subs.php
Pesquisar
Código: [Seleccione]
array(
'tag' => 'green',
'before' => '<span style="color: green;">',
'after' => '</span>',
),

Adicionar
Código: [Seleccione]
array(
'tag' => 'natgeo',
            'type' => 'unparsed_content',
            'content' => '<object width="400" height="334"><param name="movie" value="http://video.nationalgeographic.com/video/player/flash/syndicatedVideoPlayer.swf?vid=$1" ><param name="allowScriptAccess" value="never" /><embed src="http://video.nationalgeographic.com/video/player/flash/syndicatedVideoPlayer.swf?vid=$1" type="application/x-shockwave-flash" wmode="transparent" allowFullScreen="true" allowScriptAccess="never" width="400" height="334"><noembed><a href="http://video.nationalgeographic.com/video/player/flash/syndicatedVideoPlayer.swf?vid=$1">http://video.nationalgeographic.com/video/player/flash/syndicatedVideoPlayer.swf?vid=$1</a></noembed></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/Post.template.php
Pesquisar
Código: [Seleccione]
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
Adicionar
Código: [Seleccione]
'natgeo' => array('code' => 'natgeo', 'before' => '[natgeo]', 'after' => '[/natgeo]', 'description' => $txt['natgeo']),
/Themes/default/languages/Modifications.portuguese_pt.php ou Modifications.portuguese_brazilian.php

Código: [Seleccione]
?>
Adicionar antes
Código: [Seleccione]
$txt['natgeo'] = 'National Geographic Video';
A Imagem no anexo colocar 

/Themes/teuthemes/images/bbc