|
From: FlorinCB <ory...@us...> - 2009-07-11 03:22:14
|
Update of /cvsroot/mxbb/core/modules/mx_phpbb3blocks In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv23243/core/modules/mx_phpbb3blocks Modified Files: mx_last_msg.php Log Message: some fixes not commited Index: mx_last_msg.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb3blocks/mx_last_msg.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mx_last_msg.php 31 Oct 2008 18:55:36 -0000 1.6 --- mx_last_msg.php 11 Jul 2009 03:22:06 -0000 1.7 *************** *** 19,22 **** --- 19,24 ---- // =================================================== require_once($module_root_path .'includes/phpbb3blocks_constants.'. $phpEx); + require_once($mx_root_path . 'includes/mx_functions_tools.' . $phpEx); + $mx_text_formatting = new mx_text_formatting(); // *************** *** 218,222 **** $message = $postrow[$row_count]['topic_title']; ! $url = mx_append_sid(PHPBB_URL . 'viewtopic.' . $phpEx . '?' . 'f=' . $postrow[$row_count]['forum_id'] . '&lmsg_start='. $msg_start .'&t='. $postrow[$row_count]['topic_id'] .'#'. $postrow[$row_count]['topic_last_post_id']); --- 220,228 ---- $message = $postrow[$row_count]['topic_title']; ! $bbcode_uid = $postrow[$row_count]['bbcode_uid']; ! $bbcode_bitfield = $postrow[$row_count]['bbcode_bitfield'] ? $postrow[$row_count]['bbcode_bitfield'] : true; ! ! $message = $mx_bbcode->decode($message, $bbcode_uid, true, $bbcode_bitfield); ! $url = mx_append_sid(PHPBB_URL . 'viewtopic.' . $phpEx . '?' . 'f=' . $postrow[$row_count]['forum_id'] . '&lmsg_start='. $msg_start .'&t='. $postrow[$row_count]['topic_id'] .'#'. $postrow[$row_count]['topic_last_post_id']); *************** *** 377,385 **** if (strlen($message) > $nb_characteres) { ! $message = substr($message, 0, $nb_characteres); ! $position_espace = strrpos($message,''); ! ! $position_espace = empty($position_espace) ? $nb_characteres : $position_espace; ! $message = substr($message, 0, $position_espace); $message .='...'; } --- 383,387 ---- if (strlen($message) > $nb_characteres) { ! $message = $mx_text_formatting->truncate_text($message, $nb_characteres, true); $message .='...'; } *************** *** 406,414 **** if ( strlen($forum_name) > $nb_characteres ) { ! $forum_name = substr($forum_name, 0, $nb_characteres); ! $position_espace = strrpos($forum_name,''); ! ! $position_espace = empty($position_espace) ? $nb_characteres : $position_espace; ! $forum_name = substr($forum_name, 0, $position_espace); $forum_name .='...'; } --- 408,412 ---- if ( strlen($forum_name) > $nb_characteres ) { ! $forum_name = $mx_text_formatting->truncate_text($forum_name, $nb_characteres, true); $forum_name .='...'; } |