I've been wanting a logout button for my album too, except I use UBB, so what I did was just modify the code to add a logout button next to the "Welcome ~~!". The button would point to the UBB logout link, but only if the authentification mode was 2 (UBB). In future releases it would be good if you could have this built in, along with a config item for the logout function, as it varies from version to version of UBB.
Code modifications:
Below...
if (($::authentication_type eq 1) || ($::authentication_type eq 5))
{
if ($::textmenu)
{
$data.=" || ";
}
$data.=" <a href=\"$::albumprog?function=$::logout_code\" class=\"optionslink\">";
if ($::textmenu)
{
$data.=$::S{305};
}
else
{
$data.="<img class=\"button\" src=\"$::logout_button\" title=\"$::S{305}\" />";
}
$data.="</a>";
if ($::textmenu)
{
$data.=" || ";
}
}I added this:
if ($::authentication_type eq 2)
{
if ($::textmenu)
{
$data.=" || ";
}
$data.=" <a href=\"http://www.sb2wpics.com/cgi-bin/ultimatebb.cgi?ubb=logoff\" class=\"optionslink\">";
if ($::textmenu)
{
$data.=$::S{305};
}
else
{
$data.="<img class=\"button\" src=\"$::logout_button\" title=\"$::S{305}\" />";
}
$data.="</a>";
if ($::textmenu)
{
$data.=" || ";
}
}