Página 1 de 1

Error al añadir custom action

Publicado: 03 May 2012, 20:50
por Gigio
URL: http://la-rg.es/foro/aboutus.php
Plantilla(s) usuada(s): aboutus.html; aboutus_body.html
aboutus.html

Código: Seleccionar todo

    <?php
    define('IN_PHPBB', true);
    $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
    $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('About Us');
	$template->set_filenames(array(
        'body' => 'aboutus_body.html',
    ));

    make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
    page_footer();
    ?>
aboutus_body.html

Código: Seleccionar todo

    <!-- INCLUDE overall_header.html -->

    <h2>About Us</h2>

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

       <div class="content">
          <p>
             We were founded this year to bring you the best forum on the Internet!
             
             We promise to do the following:
             <ul>
                <li>Provide new content</li>
                <li>provide a friendly atmosphere</li>
                <li>Provide an environment where you can have fun!</li>
             </ul>
          </p>
       </div>

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

    <!-- INCLUDE jumpbox.html -->
    <!-- INCLUDE overall_footer.html -->
MODs instalados: http://www.phpbb.com/kb/article/add-a-n ... -to-phpbb/ (no es un mod exactamente)
Versión de phpBB: 3.0.10

Seguí un manual para añadir custom actions al foro (http://www.phpbb.com/kb/article/add-a-n ... -to-phpbb/), primero lo añadí a mi foro de pruebas, funcionó perfectamente, luego en cuanto lo implementé en mi foro normal (otro host) me daba el siguiente error:

Código: Seleccionar todo

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/aboutus.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/aboutus.php:1) 
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/aboutus.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/aboutus.php:1)
He buscado en todos lo sitios, pero no he encontrado nada, el error sigue por si quieren entrar: http://la-rg.es/foro/aboutus.php. Me pasa con todas las customs actions que quiero añadir, en sí el "mod" funciona perfectamente, pero me da ese error... Gracias de antemano!

Re: Error al añadir custom action

Publicado: 03 May 2012, 23:51
por Megabyte
Podrías chekar éste tema y comparar lo que te hace falta:
http://www.phpbb-es.com/biblioteca/kb_show.php?id=25

Re: Error al añadir custom action

Publicado: 04 May 2012, 00:02
por Gigio
Es exactamente el mismo "mod" que yo utlice, pero este esta traducido, volvi a repasarlo y nada :(

Re: Error al añadir custom action

Publicado: 04 May 2012, 00:18
por Megabyte
Primero: el archivo que va en la raiz, creo que debería de ser aboutus.php y no html.

segundo: ese archivo inicia con ésto:

Código: Seleccionar todo

   <?php
    define('IN_PHPBB', true);
y antes de ésta parte:

Código: Seleccionar todo

   <?php
no debe de haber ningun espacio en blanco...

cheka que eso esté asi...sin espacio antes de este signo <

Re: Error al añadir custom action

Publicado: 04 May 2012, 21:09
por Gigio
Megabyte escribió:Primero: el archivo que va en la raiz, creo que debería de ser aboutus.php y no html......
Al copiar el texto, se quedo el espacio, pero eso lo lei antes de pedir ayuda aqui y , no habia espacios, el archivo en la raiz, es el php, el html es el template que va dentro del estilo que uso todo lo que puedas aportar me ayuda :D