Topic: Ban message

When the ban message is displayed to the banned user, there is a number 1 at the end. Why? See below.


"You are banned from this forum. The administrator or moderator that banned you left the following message:

You are banned.

Please direct any inquiries to the forum administrator at email@example.com.

1"

Re: Ban message

My guess is: in common.php, on lines 360 and 382 there's a message function for ban, they both end with a true flag, which is probably echoed and therefore shown as the number 1.

Re: Ban message

Fixed.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Ban message

"You are banned from this forum. The ban expires at the end of dec 01, 2008."

The 1st character of the month is not capitalized.

Re: Ban message

qubertman wrote:

"You are banned from this forum. The ban expires at the end of dec 01, 2008."

The 1st character of the month is not capitalized.

Must be a problem with your date format string.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Ban message

No: this is from the check_bans function

sprintf($lang_common['Ban message 2'], strtolower(format_time($cur_ban['expire'], true)))

I don't know why we have strtolower though (we have it in 1.2 as well).