UBBCentral
Posted By: Anonymous Code problem? [NOTABUG] - 10/19/2001 11:10 PM
Is this an error in ubb_lib_posting.cgi or is this a command I'm not familiar with?

--

# if moderator- only list as mod if actually a mod in this forum
if (($user_status eq "$vars_misc{ModeratorTitle}") && $Moderator) {
if ($Moderator =~ /$this_user_number/) {
$user_status = "$vars_misc{ModeratorTitle}";
} else {
$user_status = "$vars_misc{MemberTitle}";
}
} elsif(($user_status eq "$vars_misc{ModeratorTitle}") && !$Moderator) {
$user_status = "$vars_misc{MemberTitle}";
} # end mod check

###

Admin
Gangster BB
http://www.TheGodfatherTrilogy.Net/

[This message was edited by Charles Capps on November 05, 2002 at 10:26 AM.]
Posted By: Anonymous Re: Code problem? [NOTABUG] - 10/19/2001 11:16 PM
elsif is Perl's else if.

Not a bug. <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" /> If you're interesting in learning Perl, there's a forum in the Resources category.

--
Charles Capps
Programmer, Infopop Corporation
Please do not contact me privately for support - post on the board or open a support ticket instead!
Posted By: Anonymous Re: Code problem? [NOTABUG] - 10/19/2001 11:45 PM
Doh! Okay, thanks - never seen it <img src="https://www.ubbcentral.com/boards/images/graemlins/blush.gif" alt="" /> <img src="https://www.ubbcentral.com/boards/images/graemlins/laugh.gif" alt="" />

Sorry,

JG
© 2019 UBB.threads PHP Forum Software Community