Log in

View Full Version : Using global.php in web site


The Eye
08-26-2005, 06:22 AM
I'm sure this has been asked a millions times, but I'm struggling to find an answer...

Very new to vB but I want to check that a user is logged in on my site on pages other than the forum. I've tried including the global.php but there are path problems as my forum is in a sub directory.

I've actually created a new global page, but before I go hacking away at paths and include files, is there an easy way to include the global page or an FAQ anywhere on how to integrate the forum with a website?

Adrian Schneider
08-26-2005, 06:45 AM
Before including global.php:
chdir('./path/to/forum/dir');

The Eye
08-26-2005, 10:43 AM
D'oh! Cheers for that, works a treat.