This is for the UTF-8 guys who use the SMF-bridge.
In some places, SMF decides to shorten the subject of a post, and as usual, we get the annoying �...
SMF declares that it can manage it (
http://support.simplemachines.org/funct ... nction=284) - but it doesn't.
So here is my solution:
This part is optional:Updating:
/Sources/Recent.php - lines 74, 130 - 24 to 48 (the length, due to UTF-8)
/Sources/BoardIndex.php - line 220 - 24 to 48
/Sources/MessageIndex.php - lines 184, 268 - 24 to 48
/Themes/default/MessageIndex.template.php - line 769 - 24 to 48
SSI.php - lines 289, 391 - 25 to 50
---
This part was due to the TOO-SHORT subjects that happened because of the fact that UTF-8 chars in some languages count as 2 chars.
--
This part is a must:/Sources/Subs.php - line 911.
Instead of:
Code:
return $func['substr']($subject, 0, $len) . '...';
Put:
Code:
// return $func['substr']($subject, 0, $len) . '...';
// Peleg's addition
$output = $func['substr']($subject, 0, $len);
$op_arr = explode(" ",$output);
array_pop($op_arr );
$output = implode(" ",$op_arr) . '...';
return $output;
Hope it helps.
Cheers,
Peleg.
_________________
No rain, no rainbows.
http://www.freeall.org - sorry - still only in Hebrew...