Topic: Index name taken from calendar

I have a problem here..

I'm making private board that can only viewed if an admin has created an account for you.
But if I use this line on the index page:

if ($pun_user['is_guest'])
message('Private Board. <br /><a href="login.php">Login</a> or contact one of the Admins');

Then the index page gets the titel from the Calendar sad

and PUN_GUEST doesn't work now because of the new admin option I have on my forum.

http://test.saf-squad.co.uk/forum/

look at the title and then login with "demo" "demo" and see then

Re: Index name taken from calendar

to get the title from the index page you want to get it from the lang index.php file

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

and i belive to the the board title you would do

 $page_title = pun_htmlspecialchars($pun_config['o_board_title']);
Sorry. Unactive due to personal life.

Re: Index name taken from calendar

Tried looking at that, but it didn't change anything when I edited it

4 (edited by Utchin 2007-08-24 17:42)

Re: Index name taken from calendar

PhaxeNor wrote:

Tried looking at that, but it didn't change anything when I edited it

What are you trying to get from the lang file?

chances are what you want is $lang_common or $lang_index

if you use lang common you want to  add
require PUN_ROOT.'lang/'.$pun_user['language'].'/common.php';

Sorry. Unactive due to personal life.