Topic: Users Online Integration
I would like to use the PunBB users online on my website pages as well as the forums. So if a visitor is just on my website it would add them as a guest online on the forums. I searched through the forums and found a page that said to add this code:
define('PUN_TURN_OFF_MAINT', 1);
define('PUN_QUIET_VISIT', 1);
$PUN_ROOT = '../bb/';
@include $PUN_ROOT.'include/common.php';
// If PUN isn't defined, config.php is missing or corrupt
if (!defined('PUN'))
exit('config.php doesn\'t exist or is corrupt. Please run install.php to install PunBB first.');
When I do that it tells me:
The constant PUN_ROOT must be defined and point to a valid PunBB installation root directory.
My directories are as follows:
/bb/ is where my PunBB is installed
/test/ is where I'm trying to use this script from
Any ideas what I'm doing wrong here?