|
From: FlorinCB <ory...@us...> - 2008-11-01 15:11:56
|
Update of /cvsroot/mxbb/core/modules/mx_coreblocks In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13747/modules/mx_coreblocks Modified Files: mx_online.php Log Message: fixed user link for phpbb2 mode Index: mx_online.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_coreblocks/mx_online.php,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** mx_online.php 1 Nov 2008 13:55:22 -0000 1.35 --- mx_online.php 1 Nov 2008 15:11:48 -0000 1.36 *************** *** 275,284 **** $total_users = phpBB2::get_db_stat('usercount'); $newest_userdata = phpBB2::get_db_stat('newestuser'); ! $newest_username = (PORTAL_BACKEND == 'phpbb3') ? $board_config['newest_username'] : $newest_userdata['username']; ! $newest_uid = (PORTAL_BACKEND == 'phpbb3') ? $board_config['newest_user_id'] : $newest_userdata['user_id']; switch (PORTAL_BACKEND) { case 'internal': if ( $newest_userdata['user_level'] == ADMIN ) { --- 275,297 ---- $total_users = phpBB2::get_db_stat('usercount'); $newest_userdata = phpBB2::get_db_stat('newestuser'); ! switch (PORTAL_BACKEND) ! { ! case 'internal': ! case 'phpbb2': ! $newest_username = $newest_userdata['username']; ! $newest_uid = $newest_userdata['user_id']; ! break; ! ! case 'phpbb3': ! $newest_username = $board_config['newest_username']; ! $newest_uid = $board_config['newest_user_id']; ! break; ! } ! switch (PORTAL_BACKEND) { case 'internal': + case 'phpbb2': if ( $newest_userdata['user_level'] == ADMIN ) { *************** *** 294,311 **** //This is not used in internal mode template, but here only added $newest_user = "The newest registered user is " . $mx_backend->get_username_string('full', $newest_uid, $newest_username, $newest_color); - break; - case 'phpbb2': - if ( $newest_userdata['user_level'] == ADMIN ) - { - $newest_color = $theme['fontcolor3']; - $newest_username = '<b>' . $newest_username . '</b>'; - } - else if ( $newest_userdata['user_level'] == MOD ) - { - $newest_color = $theme['fontcolor2']; - $newest_username = '<b>' . $newest_username . '</b>'; - } - $newest_style_color = 'style="color:#' . $newest_color . '"'; - $newest_user = sprintf($lang['Newest_user'], $mx_backend->get_username_string('full', $newest_uid, $newest_username, $newest_color)); break; --- 307,310 ---- *************** *** 461,464 **** --- 460,467 ---- 'L_ONLINE_LEGEND' => !empty($mx_user->lang['LEGEND']) ? $mx_user->lang['LEGEND'] : 'Legend', 'ONLINE_BIRTHDAY_LIST' => $birthday_list, + + //For comp. with phpBB2 backend + 'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'), + 'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'), 'L_ONLINE_EXPLAIN' => $lang['Online_explain'], |