|
From: FlorinCB <ory...@us...> - 2008-09-09 06:54:18
|
Update of /cvsroot/mxbb/mx_music/music_box/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11737/music_box/modules Modified Files: music_cat.php music_comment.php music_comment_edit.php music_list.php music_media_cat.php music_modcp.php music_page.php music_pic_cat.php music_rate.php Log Message: color username on music page all backends Index: music_comment_edit.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_comment_edit.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** music_comment_edit.php 7 Sep 2008 18:06:43 -0000 1.3 --- music_comment_edit.php 9 Sep 2008 06:54:12 -0000 1.4 *************** *** 173,186 **** Comments Screen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ ! ! 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['user_id']) .'">'. $thissong['username'] .'</a>'; ! } ! // // Start output of page --- 173,177 ---- Comments Screen ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ ! $poster = album_get_profile_url('full', $thissong['user_id'], $thissong['username'], false); // // Start output of page Index: music_pic_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_pic_cat.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** music_pic_cat.php 7 Sep 2008 18:06:48 -0000 1.6 --- music_pic_cat.php 9 Sep 2008 06:54:13 -0000 1.7 *************** *** 409,420 **** ); ! if( ($songrow[$j]['user_id'] == MUSIC_GUEST) or ($songrow[$j]['username'] == '') ) ! { ! $song_poster = ($songrow[$j]['song_username'] == '') ? $lang['Guest'] : $songrow[$j]['song_username']; ! } ! else ! { ! $song_poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $songrow[$j]['user_id']) .'">'. $songrow[$j]['username'] .'</a>'; ! } // ------------------------------------ --- 409,413 ---- ); ! $song_poster = album_get_profile_url('full', $songrow[$j]['user_id'], $songrow[$j]['username'], false); // ------------------------------------ Index: music_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_cat.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** music_cat.php 9 Sep 2008 06:23:57 -0000 1.8 --- music_cat.php 9 Sep 2008 06:54:12 -0000 1.9 *************** *** 195,208 **** // 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>'; ! } ! // ---------------------------- --- 195,199 ---- // Write username of last poster // ---------------------------- ! $last_song_info .= $lang['Poster'] .': ' . album_get_profile_url('full', $lastrow['user_id'], $lastrow['username'], false); // ---------------------------- *************** *** 210,214 **** // Truncate it if it's too long // ---------------------------- - if( !isset($music_config['last_song_title_length']) ) { --- 201,204 ---- *************** *** 754,765 **** ); ! if( ($songrow[$j]['user_id'] == MUSIC_GUEST) or ($songrow[$j]['username'] == '') ) ! { ! $song_poster = ($songrow[$j]['song_username'] == '') ? $lang['Guest'] : $songrow[$j]['song_username']; ! } ! else ! { ! $song_poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $songrow[$j]['user_id']) .'">'. $songrow[$j]['username'] .'</a>'; ! } // ------------------------------------ --- 744,748 ---- ); ! $song_poster = album_get_profile_url('full', $songrow[$j]['user_id'], $songrow[$j]['username'], false); // ------------------------------------ Index: music_modcp.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_modcp.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** music_modcp.php 7 Sep 2008 18:06:46 -0000 1.4 --- music_modcp.php 9 Sep 2008 06:54:13 -0000 1.5 *************** *** 328,339 **** for ($i = 0; $i <count($songrow); $i++) { ! if( ($songrow[$i]['user_id'] == MUSIC_GUEST) or ($songrow[$i]['username'] == '') ) ! { ! $song_poster = ($songrow[$i]['song_username'] == '') ? $lang['Guest'] : $songrow[$i]['song_username']; ! } ! else ! { ! $song_poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $songrow[$i]['user_id']) .'">'. $songrow[$i]['username'] .'</a>'; ! } $template->assign_block_vars('songrow', array( --- 328,332 ---- for ($i = 0; $i <count($songrow); $i++) { ! $song_poster = album_get_profile_url('full', $songrow[$i]['user_id'], $songrow[$i]['username'], false); $template->assign_block_vars('songrow', array( Index: music_list.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_list.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** music_list.php 7 Sep 2008 18:06:44 -0000 1.3 --- music_list.php 9 Sep 2008 06:54:13 -0000 1.4 *************** *** 155,166 **** ); ! if( ($searchsongrow[$j]['user_id'] == MUSIC_GUEST) or ($searchsongrow[$j]['username'] == '') ) ! { ! $search_poster = ($searchsongrow[$j]['song_username'] == '') ? $lang['Guest'] : $searchsongrow[$j]['song_username']; ! } ! else ! { ! $search_poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $searchsongrow[$j]['user_id']) .'">'. $searchsongrow[$j]['username'] .'</a>'; ! } $template->assign_block_vars('search_songs.search_detail', array( --- 155,159 ---- ); ! $search_poster = album_get_profile_url('full', $searchsongrow[$j]['user_id'], $searchsongrow[$j]['username'], false); $template->assign_block_vars('search_songs.search_detail', array( Index: music_media_cat.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_media_cat.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** music_media_cat.php 7 Sep 2008 18:06:45 -0000 1.6 --- music_media_cat.php 9 Sep 2008 06:54:13 -0000 1.7 *************** *** 436,447 **** } ! if( ($songrow[$j]['user_id'] == MUSIC_GUEST) or ($songrow[$j]['username'] == '') ) ! { ! $song_poster = ($songrow[$j]['song_username'] == '') ? $lang['Guest'] : $songrow[$j]['song_username']; ! } ! else ! { ! $song_poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $songrow[$j]['user_id']) .'">'. $songrow[$j]['username'] .'</a>'; ! } // ------------------------------------ --- 436,440 ---- } ! $song_poster = album_get_profile_url('full', $songrow[$j]['user_id'], $songrow[$j]['username'], false); // ------------------------------------ Index: music_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_comment.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** music_comment.php 7 Sep 2008 18:06:42 -0000 1.4 --- music_comment.php 9 Sep 2008 06:54:12 -0000 1.5 *************** *** 261,272 **** for ($i = 0; $i < count($commentrow); $i++) { ! if( ($commentrow[$i]['user_id'] == MUSIC_GUEST) or ($commentrow[$i]['username'] == '') ) ! { ! $poster = ($commentrow[$i]['comment_username'] == '') ? $lang['Guest'] : $commentrow[$i]['comment_username']; ! } ! else ! { ! $poster = '<a href="'. mx_append_sid($phpbb_root_path . "profile.$phpEx?mode=viewprofile&". POST_USERS_URL .'='. $commentrow[$i]['user_id']) .'">'. $commentrow[$i]['username'] .'</a>'; ! } if ($commentrow[$i]['comment_edit_count'] > 0) --- 261,265 ---- for ($i = 0; $i < count($commentrow); $i++) { ! $poster = album_get_profile_url('full', $commentrow[$i]['user_id'], $commentrow[$i]['username'], false); if ($commentrow[$i]['comment_edit_count'] > 0) Index: music_page.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_page.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** music_page.php 7 Sep 2008 18:06:47 -0000 1.6 --- music_page.php 9 Sep 2008 06:54:13 -0000 1.7 *************** *** 237,249 **** ); ! 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>'; ! } ! if ($music_config['rate']) --- 237,241 ---- ); ! $poster = album_get_profile_url('full', $thissong['user_id'], $thissong['username'], false); if ($music_config['rate']) Index: music_rate.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/modules/music_rate.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** music_rate.php 7 Sep 2008 18:06:49 -0000 1.3 --- music_rate.php 9 Sep 2008 06:54:13 -0000 1.4 *************** *** 184,195 **** ); ! 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['user_id']) .'">'. $thissong['username'] .'</a>'; ! } $template->assign_vars(array( --- 184,188 ---- ); ! $poster = album_get_profile_url('full', $thissong['user_id'], $thissong['username'], false); $template->assign_vars(array( |