Autor Tópico: National Geographic Video BBC  (Lida 5979 vezes)

0 Membros e 2 Visitantes estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
National Geographic Video BBC
« em: 05 de Maio de 2009, 05:05 »


/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