(2012-12-20, 04:13 AM)Leefish Wrote: [ -> ]I think the replies are there for if you use threaded view,which is quite archaic.
Wouldn't there be a way to code in something along the lines as:
Post #1 = Max Length
Posts #2 through Infinite = Max Length + 4
(2012-12-20, 04:27 AM)geekywebadmin Wrote: [ -> ] (2012-12-20, 04:13 AM)Leefish Wrote: [ -> ]I think the replies are there for if you use threaded view,which is quite archaic.
Wouldn't there be a way to code in something along the lines as:
Post #1 = Max Length
Posts #2 through Infinite = Max Length + 4
That's exactly what I thought would be the perfect solution...
Is this bug still around? It has been happening to me on 1.6.9. I just used this quick patch for now.
This bug is still present in 1.6.9 and I face it now.
Hope someone create a qucick fix.
(2013-01-26, 06:37 PM)alv4 Wrote: [ -> ]Same bug in 1.6.9 D:
MyBB 1.6.9 was a security release.
i have this same problem please help
just done the fix in link above works thanks
Can someone here please be kind enough to re-upload a fixed inc/datahandlers/post.php with the correct bug fix inside?
https://github.com/mybb/mybb/commit/2f87...338e2675a6
}
}
- if(my_strlen($subject) > 85)
+ // If post is reply and begins with "RE: ", remove 4 from subject length.
+ $subject_length = my_strlen($subject);
+ if($this->action == "post")
+ {
+ $position_re = my_strpos($subject, "RE: ");
+ if($position_re !== false && $position_re == 0)
+ {
+ $subject_length = $subject_length - 4;
+ }
+ }
+
+ if($subject_length > 85)
{
// Subject is too long
$this->set_error('subject_too_long', my_strlen($subject));