UseBB Community

The official board for UseBB help and discussion

UseBB Community » Help & Support » Creating new pages within the forum

Creating new pages within the forum

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: Oct 2006
Posts: 15
Is there any special function required to use the UseBB template and create new pages within the forum?

I'm a PHP coder, so I can do some customization, I just wanted to know if there is any existing convention to create other pages.

Regards.
Developer
Registered: Apr 2004
Posts: 2215
Location: Belgium
You just create a new .php file and start with:
<?php

define('INCLUDED', true);
define('ROOT_PATH', './');
require(ROOT_PATH.'sources/common.php');
$session->update('pagename'); // please edit
require(ROOT_PATH.'sources/page_head.php');
$template->set_page_title($lang['Page']);

// over here you can do the processing
// and parsing templates

require(ROOT_PATH.'sources/page_foot.php');

?>


Note the pagename and page title you have to alter. It is recommended to create a language file if you want to support multiple languages. Additional sections are loaded with:
$lang = $functions->fetch_language('', 'section');


Of course, you also create a new template section and parse it the same way it is done in other files.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Oct 2006
Posts: 15
Thanks Dietrich! :)

Related to the earlier problem, now I'm trying in Opera for Windows and it seems to accept cookies on this board. Is there any specific cookie domain setting I should use on my own forum when using the board on a subdomain?

Again IE 6.0 is not accepting cookies from this board. I wonder why this is the case. :( I'm pretty sure the browsers work with other forum software. Strange...
Developer
Registered: Apr 2004
Posts: 2215
Location: Belgium
Please keep the posts related to that problem in the right topic, instead of going off-topic in others.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Help & Support » Creating new pages within the forum

UseBB Community is powered by UseBB 1 Forum Software