|
From: FlorinCB <ory...@us...> - 2008-09-09 06:54:16
|
Update of /cvsroot/mxbb/mx_music In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11737 Modified Files: music.php music_flv.php music_lists.php Log Message: color username on music page all backends Index: music.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** music.php 9 Sep 2008 06:23:57 -0000 1.19 --- music.php 9 Sep 2008 06:54:12 -0000 1.20 *************** *** 494,507 **** // Write username of last poster // ---------------------------- ! ! if( ($lastrow['user_id'] == MUSIC_GUEST) or ($lastrow['username'] == '') ) ! { ! $last_song_info .= ($lastrow['song_username'] == '') ? $lang['Guest'] : $lastrow['song_username']; ! } ! else ! { ! $last_song_info .= $lang['Poster'] .': <a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $lastrow['user_id']) .'">'. $lastrow['username'] .'</a>'; ! } ! // ---------------------------- --- 494,498 ---- // Write username of last poster // ---------------------------- ! $last_song_info .= $lang['Poster'] .': ' . album_get_profile_url('full', $lastrow['user_id'], $lastrow['username'], false); // ---------------------------- *************** *** 509,513 **** // Truncate it if it's too long // ---------------------------- - if( !isset($music_config['last_song_title_length']) ) { --- 500,503 ---- Index: music_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_lists.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** music_lists.php 9 Sep 2008 03:28:44 -0000 1.5 --- music_lists.php 9 Sep 2008 06:54:12 -0000 1.6 *************** *** 219,232 **** // Write username of last poster // ---------------------------- ! ! if( ($lastrow['user_id'] == MUSIC_GUEST) or ($lastrow['username'] == '') ) ! { ! $last_song_info .= ($lastrow['song_username'] == '') ? $lang['Guest'] : $lastrow['song_username']; ! } ! else ! { ! $last_song_info .= $lang['Poster'] .': <a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $lastrow['user_id']) .'">'. $lastrow['username'] .'</a>'; ! } ! // ---------------------------- --- 219,223 ---- // Write username of last poster // ---------------------------- ! $last_song_info .= $lang['Poster'] .': ' . album_get_profile_url('full', $lastrow['user_id'], $lastrow['username'], false); // ---------------------------- *************** *** 234,238 **** // Truncate it if it's too long // ---------------------------- - if( !isset($music_config['last_song_title_length']) ) { --- 225,228 ---- *************** *** 444,448 **** else { ! $top_poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $topsongrow[$j]['user_id']) .'">'. $topsongrow[$j]['username'] .'</a>'; } --- 434,438 ---- else { ! $top_poster = album_get_profile_url('full', $topsongrow[$j]['user_id'], $topsongrow[$j]['username'], false); } Index: music_flv.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_flv.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** music_flv.php 7 Sep 2008 18:06:27 -0000 1.5 --- music_flv.php 9 Sep 2008 06:54:12 -0000 1.6 *************** *** 396,407 **** */ ! if( ($thissong['song_user_id'] == MUSIC_GUEST) or ($thissong['username'] == '') ) ! { ! $poster = ($thissong['song_username'] == '') ? $lang['Guest'] : $thissong['song_username']; ! } ! else ! { ! $poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $thissong['song_user_id']) .'">'. $thissong['song_username'] .'</a>'; ! } --- 396,400 ---- */ ! $poster = album_get_profile_url('full', $thissong['user_id'], $thissong['username'], false); |