- Entrou
- Set 19, 2006
- Mensagens
- 7,829
- Gostos Recebidos
- 67
Deixo aqui a alteração que vos permite inserir vídeos sapo em foruns com software SMF.
Compatível com versão 2.0.4 do SMF.
Abrir o ficheiro Sources/Subs.php
Procurar bo ficheiro por:
Adicionar depois:
Pesquisar no ficheiro Sources/Subs-Editor.php por:
Adicionar depois:
Adicione a imagem em anexo na pasta Themes/seu-template/bbc/
Compatível com versão 2.0.4 do SMF.
Abrir o ficheiro Sources/Subs.php
Procurar bo ficheiro por:
PHP:
array(
'tag' => 'white',
'before' => '<span style="color: white;" class="bbc_color">',
'after' => '</span>',
),
Adicionar depois:
PHP:
array(
'tag' => 'sapo',
'type' => 'unparsed_content',
'content' => '<embed src="http://rd3.videos.sapo.pt/play?file=http://rd3.videos.sapo.pt/$1/mov/1" type="application/x-shockwave-flash" allowFullScreen="true" width="500" height="350"></embed>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';
global $context;
if (preg_match(\'~([a-z0-9]{1,20})~i\'.($context[\'utf8\'] ? \'u\' : \'\'), $data[0], $matches))
$data[0] = $matches[1];
else
$tag[\'content\'] = \'$1\';
'),
'block_level' => true,
'disabled_content' => '$1'
),
Pesquisar no ficheiro Sources/Subs-Editor.php por:
PHP:
array(
'image' => 'flash',
'code' => 'flash',
'before' => '[flash=200,200]',
'after' => '[/flash]',
'description' => $txt['flash']
),
Adicionar depois:
PHP:
array(
'image' => 'sapo',
'code' => 'sapo',
'before' => '[sapo]',
'after' => '[/sapo]',
'description' => $txt['sapo']
),
Adicione a imagem em anexo na pasta Themes/seu-template/bbc/