Autor Tópico: Facebook Video BBC  (Lida 5133 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Facebook Video BBC
« em: 07 de Janeiro de 2009, 07:18 »

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

Adicionar
Código: [Seleccione]
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
Código: [Seleccione]
'url' => array('code' => 'url', 'before' => '[url]', 'after' => '[/url]', 'description' => $txt[257]),
Adicionar
Código: [Seleccione]
'facebook' => array('code' => 'facebook', 'before' => '[facebook]', 'after' => '[/facebook]', 'description' => $txt['facebook']),

Themes/default/languages/Modifications.portuguese_pt.php
Pesquisar
Código: [Seleccione]
?>
Adicionar
Código: [Seleccione]
$txt['facebook'] = 'Facebook Video';
« Última modificação: 03 de Setembro de 2009, 23:16 por candidosa2 »