Topic: make a new page on punbb

hi
i just make a smiley's galery on a new file.
i want to apply files header.php and footer.php in my new galery's file.
so i am worry at present, because i put in my nex file this code, but i've an error:
my code =>

<?php
/***********************************************************************

  Copyright (C) 2002-2005  Rickard Andersson (rickard@punbb.org)

  This file is part of PunBB.

  PunBB is free software; you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 2 of the License,
  or (at your option) any later version.

  PunBB is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  MA  02111-1307  USA

************************************************************************/


define('PUN_ROOT', './');
require PUN_ROOT.'include/common.php';

// Load the index.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';

$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';

?>
my galery's file here ....

<?
require ('./footer.php');
?>

my problem =>

Erreur : unable to find guest's informations.

2

Re: make a new page on punbb

try this...

<?php
 
define('PUN_ROOT', './');
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
//Set the page title here
$page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / New page 1';
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';
 
?>
    

 your stuff here


<?php
 
require PUN_ROOT.'footer.php';

Re: make a new page on punbb

if my new page is named : galery.php
i have to put => $page_title = pun_htmlspecialchars($pun_config['o_board_title']) . ' / galery.php'; ????

4

Re: make a new page on punbb

yes, just replace were it says New Page with your page title

Re: make a new page on punbb

sorry but i have the same error, i've modify

6

Re: make a new page on punbb

does all your other pages on your site work ok?

Re: make a new page on punbb

yes of course, all my pages run ok!
but this error is comming ever!
i just want include header and footer, use all functions in parser.php and common.php!
between both, put my new page, but ...

8

Re: make a new page on punbb

if you send me the whole code your trying to do ill try it on mine and see if i get same error.

Re: make a new page on punbb

in fact, the problem doesn't come from my new page,but from code header or footer i include.
if i put :" blalalablablabalabalbaa " between header & footer the problem is it!
Can you give me a model, to put in a page header.php, "some text : blbalbalabalalla", and footer ?

Thank you so much

10

Re: make a new page on punbb

all you should need is that page i posted befor and that should work.

11

Re: make a new page on punbb

i use private message and easybbcode like mods, isn't there here the problem ?

my new page is simply text :
look at my html code :

<div id="bgcomments" class="ctbox">
<p>
<h1>welcome area members</h1>
<form method="post" action="viewer.php">
Your name : <imput type="text" value="" name="autor" /> <br />
Your email<imput type="text" value="" name="email" /> <br />
Your country<imput type="" value="" name="country" /> <br />
Comments<textarea name="comments" value="" />
</form>
</p>
</div>

12

Re: make a new page on punbb

up