1

(7 replies, posted in PunBB 1.2 discussion)

Now it does work, I had a spare / which was confusing it. Thanks alot Chacmoo for all your helpl. big_smile

@Rod-
You want something that shows who is online etc. on every page of your site? If so try making a function and including it in every page. I expect the experts will be able to help you better than I could! big_smile

2

(7 replies, posted in PunBB 1.2 discussion)

Still no luck! sad
Sorry!

3

(7 replies, posted in PunBB 1.2 discussion)

Damm! It's stopped working once I take it out of the forum root.
I set it up as follows:

$pun_root = 'forum/';

But it still gives a config.php error.

4

(7 replies, posted in PunBB 1.2 discussion)

Thanks, works a charm! big_smile

5

(7 replies, posted in PunBB 1.2 discussion)

I downloading PunBB today and I think it's great, just what I needed. I tried to write a script that would work out if a user was logged on on other pages of my site, but I gives this error:

"The file 'config.php' doesn't exist or is corrupt. Please run install.php to install PunBB first."

I know config.php is working because the rest of the forum is fine.

Here is the code that I used:

I wrote:

<?

require ('include/common.php');

if ($cookie['is_guest'])
{
    echo "guest";
}

if (!$cookie['is_guest'])
    {
        $username = $cur_user['username'];
        $email = $cur_user['email'];
       
        echo $username;
        echo $email;
    }


?>

Are they any adjustments to be made or is it alot less simple than I originally thought?
Any help will be greatly appreciated.
Thanks smile