Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/12/2009, 02:51
InFoRo
 
Fecha de Ingreso: noviembre-2005
Mensajes: 38
Antigüedad: 18 años, 5 meses
Puntos: 0
Crear una única web con aspecto de mi foro

Hola,

Intentaré explicarme.

Objetivo: Crear una web utlizando el mismo aspecto que mi foro. Para ello me han pasado 2 ficheros:

prueba.html: (tiene que ir dentro de la carpeta /template de mi foro phpbb v3.0.6)

<!-- INCLUDE overall_header.html -->

<h2>Mi Página</h2>

<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>

<div class="content">
<p>
TU CONTENIDO IRÃA AQUÃ. PUEDE SER TEXTO O CÓDIGO
</p>
</div>

<span class="corners-bottom"><span></span></span></div>
</div>

<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->

----------------

testeo.php (tiene que ir en /public_html)

<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './foro/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();

page_header('Mi página');

$template->set_filenames(array(
'body' => 'prueba.html',
));

make_jumpbox(append_sid("{$phpbb_root_path}viewfor um.$phpEx"));
page_footer();
?>

-----------------

A mi particularmente NO ME FUNCIONA, osea, me muestra una web con la cabecera de mi foro, el overral_header y el overrall_footer,pero mi pone 4 lineas de error arriba del todo:

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4183: Cannot modify header information - headers already sent by (output started at /home/mi_usuario/domains/mi_dominio.com/public_html/testeo.php:1)

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4185: Cannot modify header information - headers already sent by (output started at /home/mi_usuario/domains/mi_dominio.com/public_html/testeo.php:1)

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4186: Cannot modify header information - headers already sent by (output started at /home/mi_usuario/domains/mi_dominio.com/public_html/testeo.php:1)

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4187: Cannot modify header information - headers already sent by (output started at /home/mi_usuario/domains/mi_dominio.com/public_html/testeo.php:1)


--------- El caso es que a la persona que lo ha diseñado le funciona pero a mi no -----

Estas 4 lineas salen ARRIBA DEL TODO, a contiación el logo del foro, y a continuacion el resto. Es todo correcto si no fuera por esta 4 lineas...


Agradeceré cualquier ayuda..

Un saludo,