There is a small bug in the installation instructions:
In phpinclude part, the code:
-- cut --
//Make control panel appear if user is logged in, otherwise offer them the chance of registration
if ($bbuserinfo['userid']<"1") {
//they're a guest
$register_or_controlpanel = "<a href=\"register.php?s=$session[sessionhash]&action=signup\"><img src=\"{imagesfolder}/top_register.gif\" alt=\"Registration is free!\" border=\"0\"></a>";
} else {
//they're registered
$register_or_controlpanel = "<a href=\"usercp.php?s=$session[sessionhash]\"><img src=\"{imagesfolder}/top_profile.gif\" alt=\"Here you can view your subscribed threads, work with private messages and edit your profile and preferences\" border=\"0\"></a>";
}
-- cut --
does not parse session variable so I suggest taking it outside like that:
-- cut --
//Make control panel appear if user is logged in, otherwise offer them the chance of registration
if ($bbuserinfo['userid']<1)
{
//they're a guest
$register_or_controlpanel = '<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="{imagesfolder}/top_register.gif" alt="Registration is free!" border="0"></a>';
}
else {
//they're registered
$register_or_controlpanel = '<a href="usercp.php?s='.$session[sessionhash].'"><img src="{imagesfolder}/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a>';
}
-- cut --
BTW nice idea and good hack...
Regards,
Logician