Autor Tópico: MetaCafe  (Lida 5279 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
MetaCafe
« em: 29 de Março de 2009, 05:44 »
subs.php

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

Adicionar
Código: [Seleccione]
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
Código: [Seleccione]
flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
Adicionar
Código: [Seleccione]
'metacafe' => array('code' => 'metacafe', 'before' => '[metacafe=400,345]', 'after' => '[/metacafe]','description' => Metacafe),


ficheiro no anexo metacafe.gif tem que estar na pasta images/bbc