I removed the status checking (Moderator/Administrator) after figuring out this would affect normal members in some awful way (no status shown at all, haha).
Here's the finished code:
-------------------------
# get status line
&RequireVars("$vars_config{VariablesPath}/vars_idle.cgi");
# get status separator
if ($vars_idle{status_sep} ne ''){
$status_sep = "$vars_idle{status_sep}";
} else {
$status_sep = "
";
}# end get status separator
$status = $user_profile[8];
$custom_status = $user_profile[31];
if ($vars_idle{append_status} eq 'APPEND' && $custom_status ne '') {
$user_status = &CustomTitle($status) . $status_sep . $user_profile[31];
}
elsif ($vars_idle{append_status} eq 'APPEND' && $custom_status eq '') {
$user_status = &CustomTitle($status);
}
elsif ($vars_idle{append_status} eq 'OVERWRITE' && $custom_status ne '') {
$user_status = $user_profile[31];
}
elsif ($vars_idle{append_status} eq 'OVERWRITE' && $custom_status eq '') {
$user_status = &CustomTitle($status);
}
#end get status line
-------------------------
I don't get it, but sometimes it would read vars_idle.cgi, sometimes not.
So I added the RequireVars and "completed" the if-elsif part so I'd definately get the status looking the way I want it to be.
Interesting site, by the way.
Thanks!