You are not logged in. Please login or register.
Active topics Unanswered topics
Search options
Now it does work, I had a spare / which was confusing it. Thanks alot Chacmoo for all your helpl.
@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!
Still no luck!
Sorry!
Damm! It's stopped working once I take it out of the forum root.
I set it up as follows:
But it still gives a config.php error.
Thanks, works a charm!
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
Posts found: 5