Quote:
Today at 01:18 PM NTLDR said this in Post #6
Yes, if you haven't included global.php you will see and error saying something saying call to undefined function vbdate() on line x in file x.php.
Are you using echo/print and HTML within the PHP file or are you using templates for the page?
|
I'm using HTML/PHP rather than the vB templates for the page. The site is separate from the forum content-wise (aside from displaying recent threads), but is integrated with the vB user database via global.php, and most of the pages are structured like this:
PHP Code:
chdir('./vB/');
require('global.php');
require ('header.php');
if ($bbuserinfo['userid']>0)
{
// Page content
}
if ($bbuserinfo['userid']==0)
{
echo "You must be registered to view this page. Please login or register";
}
require ('footer.php');