|
From: Jon O. <jon...@us...> - 2008-05-22 21:06:44
|
Update of /cvsroot/mxbb/mx_news/mx_news/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13246/includes Modified Files: functions_comment.php functions_mx_news.php Log Message: News Module updated with added block (latest news) - a small truncated list block. Index: functions_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/includes/functions_comment.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** functions_comment.php 14 Mar 2008 20:42:38 -0000 1.3 --- functions_comment.php 22 May 2008 21:06:40 -0000 1.4 *************** *** 28,32 **** function init( $item_data, $comments_type = 'internal' ) { ! global $mx_news, $mx_news_config, $db, $images, $mx_block, $board_config; if ( !is_object($mx_news) || empty($mx_news_config) ) --- 28,32 ---- function init( $item_data, $comments_type = 'internal' ) { ! global $mx_news, $mx_news_config, $toplist_config, $db, $images, $mx_block, $board_config, $toplist_page_id; if ( !is_object($mx_news) || empty($mx_news_config) ) *************** *** 86,89 **** --- 86,90 ---- $this->max_comment_subject_chars = $mx_news_config['max_comment_subject_chars']; $this->max_comment_chars = $mx_news_config['max_comment_chars']; + $this->split_key = !empty($toplist_config['split_key']) ? $toplist_config['split_key'] : '<!-- split -->'; $this->formatting_comment_truncate_links = $mx_news_config['formatting_comment_truncate_links']; *************** *** 100,104 **** $this->u_edit = $mx_news->this_mxurl( 'action=post_news&item_id=' . $this->item_id . '&modrewrite=no'); $this->u_delete = $mx_news->this_mxurl( "action=post_news&delete=do&item_id=".$this->item_id . '&modrewrite=no'); ! } --- 101,105 ---- $this->u_edit = $mx_news->this_mxurl( 'action=post_news&item_id=' . $this->item_id . '&modrewrite=no'); $this->u_delete = $mx_news->this_mxurl( "action=post_news&delete=do&item_id=".$this->item_id . '&modrewrite=no'); ! $this->u_more = 'index.php?page=' . $toplist_page_id . "&action=news"; } Index: functions_mx_news.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/includes/functions_mx_news.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** functions_mx_news.php 7 May 2008 20:08:16 -0000 1.4 --- functions_mx_news.php 22 May 2008 21:06:40 -0000 1.5 *************** *** 41,44 **** --- 41,45 ---- global $db, $userdata, $debug, $mx_news_config, $mx_block; global $mx_news_functions; + global $toplist_config; unset( $this->block_id ); *************** *** 47,51 **** unset( $this->notification ); ! $this->block_id = $mx_news_functions->generate_virtualId($mx_block->block_id); // --- 48,53 ---- unset( $this->notification ); ! $temp_id = isset($toplist_config['target_block']) ? $toplist_config['target_block'] : $mx_block->block_id; ! $this->block_id = $mx_news_functions->generate_virtualId($temp_id); // |