MyBB Community Forums

Full Version: Signature Removed?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
I wasn't affected, and I changed my signature a few times after the last couple of days.
(2011-11-14, 08:54 AM)Tomm M Wrote: [ -> ]
(2011-11-14, 05:36 AM)Aristotle Wrote: [ -> ]
(2011-11-14, 04:09 AM)Tim B. Wrote: [ -> ]There is indeed a bug in 1.6.5 alpha, I think it occurs when users who have over 1,000 posts edit their signature. It will be fixed by release obviously.

Oddly specific.

Not really that specific. $post['postnum'] is formatted when the signature is checked for a minimum post count and so can't be compared accurately.

Wouldn't you be able to parse it through intval() then? Or am i misunderstanding the way it is formatted? I haven't really looked through that part of the mybb code, so i may be (and probably am) way off Toungue
(2011-11-15, 09:21 PM)Booher Wrote: [ -> ]
(2011-11-14, 08:54 AM)Tomm M Wrote: [ -> ]
(2011-11-14, 05:36 AM)Aristotle Wrote: [ -> ]
(2011-11-14, 04:09 AM)Tim B. Wrote: [ -> ]There is indeed a bug in 1.6.5 alpha, I think it occurs when users who have over 1,000 posts edit their signature. It will be fixed by release obviously.

Oddly specific.

Not really that specific. $post['postnum'] is formatted when the signature is checked for a minimum post count and so can't be compared accurately.

Wouldn't you be able to parse it through intval() then? Or am i misunderstanding the way it is formatted? I haven't really looked through that part of the mybb code, so i may be (and probably am) way off Toungue

Thats the issue. When passing 1,000 to intval you get 1 because it truncates at the first non-integer character
Why not just use str_replace()? Replace all "," with "" Smile then intval
(2011-11-15, 11:10 PM)Dylan M. Wrote: [ -> ]
(2011-11-15, 09:21 PM)Booher Wrote: [ -> ]
(2011-11-14, 08:54 AM)Tomm M Wrote: [ -> ]
(2011-11-14, 05:36 AM)Aristotle Wrote: [ -> ]
(2011-11-14, 04:09 AM)Tim B. Wrote: [ -> ]There is indeed a bug in 1.6.5 alpha, I think it occurs when users who have over 1,000 posts edit their signature. It will be fixed by release obviously.

Oddly specific.

Not really that specific. $post['postnum'] is formatted when the signature is checked for a minimum post count and so can't be compared accurately.

Wouldn't you be able to parse it through intval() then? Or am i misunderstanding the way it is formatted? I haven't really looked through that part of the mybb code, so i may be (and probably am) way off Toungue

Thats the issue. When passing 1,000 to intval you get 1 because it truncates at the first non-integer character

Ah didn't think of that.
(2011-11-15, 11:46 PM)Tom K. Wrote: [ -> ]Why not just use str_replace()? Replace all "," with "" Smile then intval

We're doing it even more efficient than that Toungue
Have something like $post['postcountunformatted']; with a shorter name of course?
(2011-11-16, 12:22 AM)Booher Wrote: [ -> ]Have something like $post['postcountunformatted']; with a shorter name of course?

No, just before we format the $post['postnum'] we assign it to $postnum Toungue
Ah, that works too xP
Hmm how strange. I haven't even edited my signature
Pages: 1 2 3 4 5