Publicidad

Autor Tema: [pequeña modificacion] url acotada de youtube  (Leído 268 veces)

Desconectado fighten

  • Sr. Member
  • ****
  • Mensajes: 433
  • Power: 298
  • Sexo: Masculino
  • NO TODO ES LO QUE PARESE BUENO SI XD
    • MSN Messenger - aldofighten@hotmail.com
    • Ver Perfil
    • PostExtremo
    • Email
[pequeña modificacion] url acotada de youtube
« en: Enero 21, 2012, 01:46:06 am »
en su subs buscan por
Código: [Seleccionar]
'tag' => 'youtube',
arriba de eso hay un
Código: [Seleccionar]
array(

de ahy asta el final del array
Rempazamos por:

Código: [Seleccionar]
array(
'tag' => 'youtube',
'type' => 'unparsed_content',
'content' => '<object width="425px" height="350px">'
.'<param name="movie" value="http://www.youtube.com/v/$1&rel=0&color1=0x2b405b&color2=0x6b8ab6&border=0" />'
.'<param name="wmode" value="transparent" />'
.'<param name="allowScriptAccess" value="never" />'
.'<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/$1&amp;hl=es_ES"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/$1&amp;hl=es_ES" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object><br>Miralo en YouYube: <a href="http://youtu.be/$1" target="_blank">http://youtu.be/$1</a>'
.'</object>',
'validate' => create_function('&$tag, &$data, $disabled', '
global $txt;
$data = strtr($data, array(\'<br />\' => \'\'));
$site = \'www.\';
if (preg_match(\'#^([0-9A-Za-z-_]{11})$#i\', trim($data), $matches))
$data = $matches[1];
else
{
if (preg_match(\'#^http://((?:www|uk|fr|ie|it|jp|pl|es|nl|br|au|hk|mx|nz|de|ca)\.|)youtube\.com/(?:(?:watch|)\?v=|v/|jp\.swf\?video_id=)([0-9A-Za-z-_]{11})(?:.*?)#i\', trim($data), $matches))
{
$data = $matches[2];
$site = !empty($matches[1]) ? strtolower($matches[1]) : $site;
unset($matches);
}
else
{
// Invalid link
$tag[\'content\'] = $txt[\'youtube_invalid\'];
return;
}
}
if (isset($disabled[\'url\']) && isset($disabled[\'youtube\']))
{
$tag[\'content\'] = $txt[\'youtube\'].\': http://\'.$site.\'youtu.be\'.$data;
return;
}
elseif(isset($disabled[\'youtube\']))
{
$tag[\'content\'] = \'<a href="http://\'.$site.\'youtube.com/watch?v=\'.$data.\'" target="_blank">\'.$txt[\'youtube\'].\': http://\'.$site.\'youtu.be\'.$data.\'</a>\';
return;
}
'),
'disabled_content' => '$1',
            ),

Desconectado Sir_German

  • Hero Member
  • *****
  • Mensajes: 517
  • Power: 139
  • Sexo: Masculino
  • Germancho!!! ?
    • Ver Perfil
    • http://www.descargatelofree.net
    • Email
Re:[pequeña modificacion] url acotada de youtube
« Respuesta #1 en: Enero 21, 2012, 04:07:20 pm »
chicos al hacer la modificacion me salio esto miren

Warning: Unterminated comment starting line 28 in /home3/los2ger/public_html/Sources/Subs.php on line 28

Fatal error: Call to undefined function db_query() in /home3/los2ger/public_html/Sources/Load.php on line 149
Para mas Info escanea   :-D
<b><center>???_g?????<b></center>

Desconectado JorgeDRB

  • VIP
  • *
  • Mensajes: 433
  • Power: 48
  • Sexo: Masculino
  • Diseñador grafico
    • MSN Messenger - jorgegaona77@hotmail.com
    • Ver Perfil
    • Email
Re:[pequeña modificacion] url acotada de youtube
« Respuesta #2 en: Enero 22, 2012, 05:47:49 am »
chicos al hacer la modificacion me salio esto miren

Warning: Unterminated comment starting line 28 in /home3/los2ger/public_html/Sources/Subs.php on line 28

Fatal error: Call to undefined function db_query() in /home3/los2ger/public_html/Sources/Load.php on line 149