Autor Tópico: Colocar videos Manualmente no SMF  (Lida 6299 vezes)

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

Offline joomlamz

  • Fundador
  • *
  • Mensagens: 4265
  • Rank: 4877
  • Sexo: Masculino
  • Joomla!
    • Web Master !
Colocar videos Manualmente no SMF
« em: 22 de Julho de 2007, 17:17 »
Aqui vou explicar como colocar os MOD de videos Manualmente..

Youtube, Google, Metacafe, Mynet, Livevideo, Birghtcove, VidiVodo, İzlesene



Depois de passar as imagens para a pasta /image/bbc do nosso tema

Ir a pasta souces/subs.php

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

[logged]
Código: [Seleccione]
array(
'tag' => 'mynet',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<object width="400" height="334"><param name="movie" value="http://vdo.mynet.com/e/$1" ></param><embed src="http://vdo.mynet.com/e/$1" type="application/x-shockwave-flash" wmode="transparent" width="400" height="334"></embed></object>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),



array(
'tag' => 'bright',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<embed src="http://admin.brightcove.com/destination/player/player.swf" bgcolor="#FFFFFF" flashVars="allowFullScreen=true&initVideoId=$1&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false" base="http://admin.brightcove.com" width="486" height="412" type="application/x-shockwave-flash" wmode="transparent"></embed>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),



array(
'tag' => 'vidivodo',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<embed src="http://www.vidivodo.com/VideoPlayerShare.swf?lang=tr&vidID=$1.flv" type="application/x-shockwave-flash" wmode="transparent" width="425" height="343"></embed>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),


array(
'tag' => 'izlesene',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<embed src="http://www.izlesene.com/player2.swf?video=$1" wmode="transparent" width="432" height="344" type="application/x-shockwave-flash"></embed>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),




array(
'tag' => 'youtube',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<object width="$2" height="$3"><param name="movie" value="http://www.youtube.com/v/$1" ></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="$2" height="$3"></embed></object>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),


array(
'tag' => 'google',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<embed style="width:400px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=$1&hl=en" flashvars=""></embed> ',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),







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>',
),

array(
'tag' => 'livevideo',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+\]',
'content' => '<embed src="http://www.livevideo.com/flvplayer/embed/$1" type="application/x-shockwave-flash" quality="high" WIDTH="445" HEIGHT="369" wmode="transparent"></embed>',
'validate' => create_function('&$tag, &$data, $disabled', '
if (isset($disabled[\'url\']))
$tag[\'content\'] = \'$1\';'),
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),
[/logged]

Passo seguinte e ir ao Nosso tema e encontar esse ficheiros...
display.template.php ou post.template.php

Podemos pesquisar por este codigo
Código: [Seleccione]
'ftp' => array('code' => 'ftp', 'before' => '[ftp=', 'after' => ']', 'after' => '[/ftp]', 'description' => $txt[434]),
depois colocar o código
[logged]
Código: [Seleccione]
array(),

'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => Youtube),

'google' => array('code' => 'google', 'before' => '[google=400,326]', 'after' => '[/google]', 'description' => Google),

'metacafe' => array('code' => 'metacafe', 'before' => '[metacafe=400,345]', 'after' => '[/metacafe]', 'description' => Metacafe),

'mynet' => array('code' => 'mynet', 'before' => '[mynet=400,334]', 'after' => '[/mynet]', 'description' => Mynet),

'livevideo' => array('code' => 'livevideo', 'before' => '[livevideo=445,369]', 'after' => '[/livevideo]', 'description' => Livevideo),

'bright' => array('code' => 'bright', 'before' => '[bright=486,412]', 'after' => '[/bright]', 'description' => Brightcove),

'vidivodo' => array('code' => 'vidivodo', 'before' => '[vidivodo=425,343]', 'after' => '[/vidivodo]', 'description' => Vidivodo),

'izlesene' => array('code' => 'izlesene', 'before' => '[izlesene=432,344]', 'after' => '[/izlesene]', 'description' => izlesene),


[/logged]

Mais informações o poste fica aberto para tal
« Última modificação: 05 de Agosto de 2007, 10:46 por joomlamz »
Apllic   Alojamentos Profissionais de Moçambique!

Offline mario junior

  • Iniciar SmfPt
  • *
  • Mensagens: 69
  • Rank: 8
  • Sexo: Masculino
Re: Colocar videos Manualmente no SMF
« Responder #1 em: 07 de Janeiro de 2008, 02:25 »
Gostaria de coloca video youtube no meu smf, versao 1.1.4 tema Dilber MC e nao tem os ficheiros display.template.php ou post.template.php. alguem poderia me passa alguma dica de como eu resolvo este problema...


Offline slimbullet

  • Iniciar SmfPt
  • *
  • Mensagens: 12
  • Rank: 2
Re: Colocar videos Manualmente no SMF
« Responder #2 em: 07 de Janeiro de 2008, 04:45 »
Acho que ja foi respondido a uma questao parecida.
No tema Default tens la o display.template.php
Copia-o para a pasta do tem dilber mc

 pesquisar2:

Offline mario junior

  • Iniciar SmfPt
  • *
  • Mensagens: 69
  • Rank: 8
  • Sexo: Masculino
Re: Colocar videos Manualmente no SMF
« Responder #3 em: 07 de Janeiro de 2008, 05:25 »
Resunido e so eu copiar do tema default e colocar no Dilber MC que resolve

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re: Colocar videos Manualmente no SMF
« Responder #4 em: 07 de Janeiro de 2008, 06:00 »
exactamente...
depois faz o que quer...

Offline mario junior

  • Iniciar SmfPt
  • *
  • Mensagens: 69
  • Rank: 8
  • Sexo: Masculino
Re: Colocar videos Manualmente no SMF
« Responder #5 em: 07 de Janeiro de 2008, 19:27 »
Seguir manual Acima so que nao esta aparecer do video do youtube fica apenas uma quadrado em branco alguem saber como resolver isso...


Seguir o video que quero colocar
http://www.youtube.com/watch?v=9flsJ39QMbM

imagem do erro logo abaixo
« Última modificação: 07 de Janeiro de 2008, 21:13 por mario junior »

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re: Colocar videos Manualmente no SMF
« Responder #6 em: 07 de Janeiro de 2008, 22:58 »
Mais
Nao tem nenhum problema aqui
[youtube=425,350]9flsJ39QMbM[/youtube]

Basta fazer cmo manda o procedimento que fez deve estar errado

e ao colocar o video nao precisa por o link todo
So as ultimas letras
Código: [Seleccione]
9flsJ39QMbM

Offline mario junior

  • Iniciar SmfPt
  • *
  • Mensagens: 69
  • Rank: 8
  • Sexo: Masculino
Re: Colocar videos Manualmente no SMF
« Responder #7 em: 08 de Janeiro de 2008, 02:28 »
Problema 100% Resolvido...

Offline cabanas

  • Iniciar SmfPt
  • *
  • Mensagens: 42
  • Rank: 5
Re:Colocar videos Manualmente no SMF
« Responder #8 em: 07 de Outubro de 2009, 19:43 »
é possível me facultarem os Smiliyes  livevideo e izlesene obrigado