curse
Customer
Setting the Post Preview Character Limit to 0 doesn't actually disable the display of the post preview. You still get (username length) amount of preview text.
The logic in class_profileblock doesn't take into account the extra characters added by this line when calculating $end below.
Something like this would fix the message length:
This still leaves the prefix and suffix to fix. I fixed it in a different way, as this will always be set to 0 for us.
The logic in class_profileblock doesn't take into account the extra characters added by this line when calculating $end below.
PHP:
$remaining = substr($message, ($origstart + strlen($userinfo['username'] . ':')));
Something like this would fix the message length:
PHP:
$end = $this->registry->options['dbtech_usertag_postpreview_charlimit'] - strlen($remaining) - strlen($userinfo['username'] . ':');
This still leaves the prefix and suffix to fix. I fixed it in a different way, as this will always be set to 0 for us.