Ver Mensaje Individual
  #10 (permalink)  
Antiguo 19/03/2008, 05:36
Avatar de casf79
casf79
 
Fecha de Ingreso: noviembre-2007
Mensajes: 184
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: Como insertar video en php nuke SOLUCION

CONSEGUIDO!!!!!!!!!!!

Es algo cutre la manera de hacerlo, pero ha funcionado.

Atentos:

Lo que vamos a hacer es una web en HTML e insertarla en el nuke conserbando todos los bloques.

1. Vamos a diseñar una web en html e introduciremos el enlace de YOUTUBE.

2. Borramos el principio (< html>) y el final (</html>). Copiais este código y lo pegais en la apertura de la etiqueta (<html>):

<?php if(!isset($mainfile)) { include("mainfile.php"); }
$index = 1;
include("header.php");
openTable(); ?>


3. Copiais el siguiente y lo pegais en el cierre (</html>):

<?php CloseTable(); OpenTable(); ?>
<? CloseTable();
include("footer.php"); ?>


4. Por último, guardais la página como *.php y la meteis en el servidor y listo!!!!


La cosa quedaría de la siguiente manera:

Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php if(!isset($mainfile)) { include("mainfile.php"); }
$index = 1;
include("header.php");
openTable(); ?>


<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Varios</title>
<style type="text/css">
<!--
.Estilo1 {color: #D4D0C8}
body {
background-color: #D4D0C8;
}
-->
</style>
</head>

<body>
<div align="center"><span class="Estilo1"></span><object width="425" height="373"><param name="movie" value="http://www.youtube.com/v/VHtgXi-B9dA&rel=0&color1=0x006699&color2=0x54abd6&border= 1&hl=es"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/VHtgXi-B9dA&rel=0&color1=0x006699&color2=0x54abd6&border= 1&hl=es" type="application/x-shockwave-flash" wmode="transparent" width="425" height="373"></embed></object>
</div>
</body>
<?php CloseTable(); OpenTable(); ?>
<? CloseTable();
include("footer.php"); ?>
Saludos

PD: La solucion la encontré en www.phpnuke-hispano.com
http://www.phpnuke-hispano.com/modules.php?name=News&file=article&sid=167