|
From: Jon O. <jon...@us...> - 2008-10-31 18:55:39
|
Update of /cvsroot/mxbb/core/modules/mx_phpbb3blocks In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6255/mx_phpbb3blocks Modified Files: mx_last_msg.php mx_statistics.php mx_viewforum.php Log Message: http://www.mx-publisher.com/phpBB2/viewtopic.php?p=65197#65197 Massive update. Index: mx_viewforum.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb3blocks/mx_viewforum.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mx_viewforum.php 4 Oct 2008 07:04:38 -0000 1.6 --- mx_viewforum.php 31 Oct 2008 18:55:36 -0000 1.7 *************** *** 609,613 **** 'TOPIC_AUTHOR_FULL' => get_username_string('full', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']), 'FIRST_POST_TIME' => $mx_user->format_date($row['topic_time']), ! 'LAST_POST_SUBJECT' => $phpBB3->censor_text($row['topic_last_post_subject']), 'LAST_POST_TIME' => $mx_user->format_date($row['topic_last_post_time']), 'LAST_VIEW_TIME' => $mx_user->format_date($row['topic_last_view_time']), --- 609,613 ---- 'TOPIC_AUTHOR_FULL' => get_username_string('full', $row['topic_poster'], $row['topic_first_poster_name'], $row['topic_first_poster_colour']), 'FIRST_POST_TIME' => $mx_user->format_date($row['topic_time']), ! 'LAST_POST_SUBJECT' => phpBB3::censor_text($row['topic_last_post_subject']), 'LAST_POST_TIME' => $mx_user->format_date($row['topic_last_post_time']), 'LAST_VIEW_TIME' => $mx_user->format_date($row['topic_last_view_time']), *************** *** 619,623 **** 'REPLIES' => $replies, 'VIEWS' => $row['topic_views'], ! 'TOPIC_TITLE' => $phpBB3->censor_text($row['topic_title']), 'TOPIC_TYPE' => $topic_type, --- 619,623 ---- 'REPLIES' => $replies, 'VIEWS' => $row['topic_views'], ! 'TOPIC_TITLE' => phpBB3::censor_text($row['topic_title']), 'TOPIC_TYPE' => $topic_type, Index: mx_statistics.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb3blocks/mx_statistics.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mx_statistics.php 4 Oct 2008 07:04:38 -0000 1.5 --- mx_statistics.php 31 Oct 2008 18:55:36 -0000 1.6 *************** *** 167,176 **** $firstcount = $user_data[0]['user_posts']; ! $get_db_stats = $phpBB2->get_db_stat( 'postcount' ); for( $i = 0; $i < $user_count; $i++ ) { do_math($firstcount, $user_data[$i]['user_posts'], $get_db_stats, $percentage, $bar_percent); ! $top_poster_profile = mx_get_username_string('full', $user_data[$i]['user_id'], $user_data[$i]['username'], $user_data[$i]['user_colour']); --- 167,176 ---- $firstcount = $user_data[0]['user_posts']; ! $get_db_stats = phpBB2::get_db_stat( 'postcount' ); for( $i = 0; $i < $user_count; $i++ ) { do_math($firstcount, $user_data[$i]['user_posts'], $get_db_stats, $percentage, $bar_percent); ! $top_poster_profile = mx_get_username_string('full', $user_data[$i]['user_id'], $user_data[$i]['username'], $user_data[$i]['user_colour']); *************** *** 179,183 **** "CLASS" => ( !( $i + 1 % 2 ) ) ? $theme['td_class2'] : $theme['td_class1'], "USERNAME" => $user_data[$i]['username'], ! "USERCOLOR" => $user_data[$i]['user_colour'], "PERCENTAGE" => $percentage, "BAR" => $bar_percent, --- 179,183 ---- "CLASS" => ( !( $i + 1 % 2 ) ) ? $theme['td_class2'] : $theme['td_class1'], "USERNAME" => $user_data[$i]['username'], ! "USERCOLOR" => $user_data[$i]['user_colour'], "PERCENTAGE" => $percentage, "BAR" => $bar_percent, *************** *** 255,262 **** // $total_posts = $get_db_stats; //Already queried above ! $total_users = $phpBB2->get_db_stat('usercount'); ! $total_topics = $phpBB2->get_db_stat('topiccount'); ! $start_date = $phpBB2->create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']); $boarddays = ( time() - $board_config['board_startdate'] ) / 86400; --- 255,262 ---- // $total_posts = $get_db_stats; //Already queried above ! $total_users = phpBB2::get_db_stat('usercount'); ! $total_topics = phpBB2::get_db_stat('topiccount'); ! $start_date = phpBB2::create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']); $boarddays = ( time() - $board_config['board_startdate'] ) / 86400; *************** *** 414,418 **** // Newest user data // ! $newest_userdata = $phpBB2->get_db_stat('newestuser'); $newest_user = $newest_userdata['username']; $newest_uid = $newest_userdata['user_id']; --- 414,418 ---- // Newest user data // ! $newest_userdata = phpBB2::get_db_stat('newestuser'); $newest_user = $newest_userdata['username']; $newest_uid = $newest_userdata['user_id']; *************** *** 444,453 **** $row = $db->sql_fetchrow($result); $db->sql_freeresult($result); ! $most_users_date = ( $row['config_value'] > 0 ) ? $phpBB2->create_date($board_config['default_dateformat'], $row['config_value'], $board_config['board_timezone']) : $lang['Not_available']; $most_users = ( $row['config_value'] > 0 ) ? $row['config_value'] : $lang['Not_available']; $statistic_array = array($lang['Number_posts'], $lang['Posts_per_day'], $lang['Number_topics'], $lang['Topics_per_day'], $lang['Number_users'], $lang['Users_per_day'], $lang['Board_started'], $lang['Board_Up_Days'], $lang['Database_size'], $lang['Avatar_dir_size'], $lang['Latest_Reg_User_Date'], $lang['Latest_Reg_User'], $lang['Most_Ever_Online_Date'], $lang['Most_Ever_Online'], $lang['Gzip_compression']); ! $value_array = array($total_posts, $posts_per_day, $total_topics, $topics_per_day, $total_users, $users_per_day, $start_date, sprintf('%.2f', $boarddays), $dbsize, $avatar_dir_size, $phpBB2->create_date($board_config['default_dateformat'], $newest_user_date, $board_config['board_timezone']), sprintf($newest_user_profile), $most_users_date, $most_users, ( $board_config['gzip_compress'] ) ? $lang['Enabled'] : $lang['Disabled']); // --- 444,453 ---- $row = $db->sql_fetchrow($result); $db->sql_freeresult($result); ! $most_users_date = ( $row['config_value'] > 0 ) ? phpBB2::create_date($board_config['default_dateformat'], $row['config_value'], $board_config['board_timezone']) : $lang['Not_available']; $most_users = ( $row['config_value'] > 0 ) ? $row['config_value'] : $lang['Not_available']; $statistic_array = array($lang['Number_posts'], $lang['Posts_per_day'], $lang['Number_topics'], $lang['Topics_per_day'], $lang['Number_users'], $lang['Users_per_day'], $lang['Board_started'], $lang['Board_Up_Days'], $lang['Database_size'], $lang['Avatar_dir_size'], $lang['Latest_Reg_User_Date'], $lang['Latest_Reg_User'], $lang['Most_Ever_Online_Date'], $lang['Most_Ever_Online'], $lang['Gzip_compression']); ! $value_array = array($total_posts, $posts_per_day, $total_topics, $topics_per_day, $total_users, $users_per_day, $start_date, sprintf('%.2f', $boarddays), $dbsize, $avatar_dir_size, phpBB2::create_date($board_config['default_dateformat'], $newest_user_date, $board_config['board_timezone']), sprintf($newest_user_profile), $most_users_date, $most_users, ( $board_config['gzip_compress'] ) ? $lang['Enabled'] : $lang['Disabled']); // Index: mx_last_msg.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb3blocks/mx_last_msg.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** mx_last_msg.php 4 Oct 2008 07:04:38 -0000 1.5 --- mx_last_msg.php 31 Oct 2008 18:55:36 -0000 1.6 *************** *** 387,391 **** if ($display_date == "TRUE") { ! //$message_date = $phpBB2->create_date($board_config['default_dateformat'], $postrow[$row_count]['post_time'], $board_config['board_timezone']); $message_date = $mx_user->format_date($postrow[$row_count]['post_time']); $topic_date = $mx_user->format_date($postrow[$row_count]['topic_time']); --- 387,391 ---- if ($display_date == "TRUE") { ! //$message_date = phpBB2::create_date($board_config['default_dateformat'], $postrow[$row_count]['post_time'], $board_config['board_timezone']); $message_date = $mx_user->format_date($postrow[$row_count]['post_time']); $topic_date = $mx_user->format_date($postrow[$row_count]['topic_time']); |