|
From: FlorinCB <ory...@us...> - 2008-09-07 18:11:16
|
Update of /cvsroot/mxbb/mx_music In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9110 Modified Files: music.php music_flv.php music_lists.php Added Files: release.txt Log Message: upgrade not ready yet --- NEW FILE: release.txt --- [b][Release][mx_music]: Music Center[/b] [b][Authors]: Cf Manager, OryNider[/b] [b][Version]: 2.9.2 [/b] [b]Designed for mxBB Version: 2.8.x/3.0.x[/b] [b][Support]:[/b] [u]Here[/u] [b][DEMO]:[/b] [url=http://atcer.ministry.ro/board/?page=16]Here[/url] [b][Note]:[/b] [color=red]If you upgrade from 2.7.x and you have mx_musiconline, the posibility of migration to mx_music it's just teoretical with unknown rezult, and you do it at your own risc!!! A mx_musiconline module for 2.8.0 may be relesed by Selven.[/color] [b][Description]:[/b] This Module allows you create the Music Center Page/Block where users can upload, listen, rate and comment on songs. Beside that, users can link URL of the song from the another server without uploading. You have an admin panel that allows you to manage the features of the module. Some modifications on the original MODS have been applied to make this package more integrated, flexible and multilanguage. Allowed files: MP3, WMA, WMV, WAV, MIDI, MPEG, AVI, AU, SWF, QT, RAM, RM and others. [b]Additionaly:[/b] [list] [*][u]Music Song Image[/u] - You can add the Song Image to the section of each song. (Maybe CD Cover, Artist Photo or any image you want ;) ) Maximum image size is configurable in adminCP :D [*][u]Music Search Song[/u] - is helping you find the song by Song Title, Singer or Song Poster quickly and easily. [*][u]Music Cat Views[/u] - is adding a viewed counter of each Category; [*][u]Music Download Song[/u] - alows users to directly download the song to their computer.[/list] [b]Special Note:[/b] [color=blue] In version 2.0.2 and above if you are posting a radio stream that ends with "/listen.pls" on music_page will be swiched to music_stream mode and will make traffic on your website, but if it's submited like a normal url with no "/listen.pls" will make traffic on the shotcast server who is brotcasting the stream. But if it's submited with "/listen.pls" can be listened with your favorite player and the original stream informations will he hidden To do this copy the link from Download/Listen in your player on the website or local computer such as WinAMP :wink: But do not try to save the file couse you will just make not needed traffic and get a very large file!!![/color] [b][Download]:[/b] [URL=http://www.mx-system.com/modules/mx_pafiledb/dload.php?action=download&file_id=368]mx_music_center.zip[/URL] [b][Languages]:[/b] [color=blue]Please if you traslate the language files to your language post a link to a zip with the traslated files. Thaks![/color] [b][Romanian Language][/b]: [url=http://pubory.uv.ro/portal/modules/mx_pafiledb/dload.php?action=download&file_id=44]mx_music_romanian_language.zip[/url] [b][German Language][/b]: [url=http://pubory.uv.ro/portal/modules/mx_pafiledb/dload.php?action=download&file_id=45]mx_music_german_language.zip[/url] [b][Dutch Language][/b]: [url=http://pubory.uv.ro/portal/modules/mx_pafiledb/dload.php?action=download&file_id=46]mx_music_lang_dutch.zip[/url] [b][Chinese Language][/b]: [url=http://pubory.uv.ro/portal/modules/mx_pafiledb/dload.php?action=download&file_id=47]mx_music_lang_chinese.zip[/url] [b][Vietnamese Language][/b]: [url=http://pubory.uv.ro/portal/modules/mx_pafiledb/dload.php?action=download&file_id=48]mx_music_lang_vietnamese.zip[/url] Index: music.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** music.php 15 Jul 2008 22:06:07 -0000 1.17 --- music.php 7 Sep 2008 18:06:26 -0000 1.18 *************** *** 179,185 **** // Read block Configuration // - $title = $mx_block->block_info['block_title']; $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); if( is_object($mx_block)) --- 179,188 ---- // Read block Configuration // [...1231 lines suppressed...] *** 1038,1042 **** 'L_SELECT_SORT_METHOD' => $lang['Select_sort_method'], 'L_SONG_LIMIT' => $lang['Song_Limit'], - 'L_NO_SONGS' => $lang['No_Songs'], 'L_SONG_TITLE' => $lang['Song_Title'], 'L_SINGER' => $lang['Singer'], --- 1922,1925 ---- *************** *** 1047,1051 **** 'L_PUBLIC_CATS' => $lang['Public_Categories'], 'L_SEARCH_SONGS' => $lang['Search_song'], ! 'S_MUSIC_LIST' => append_sid(this_mo_mxurl("music_mode=music_list")), 'L_TIME' => $lang['Time'], --- 1930,1934 ---- 'L_PUBLIC_CATS' => $lang['Public_Categories'], 'L_SEARCH_SONGS' => $lang['Search_song'], ! 'S_MUSIC_LIST' => mx_append_sid(this_mo_mxurl("music_mode=music_list")), 'L_TIME' => $lang['Time'], Index: music_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_lists.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** music_lists.php 29 Jan 2008 07:48:55 -0000 1.3 --- music_lists.php 7 Sep 2008 18:06:27 -0000 1.4 *************** *** 30,33 **** --- 30,38 ---- $title = $mx_block->block_info['block_title']; $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); + $description = $mx_block->block_info['block_desc']; + $show_block = $mx_block->block_info['show_block']; + $show_title = ($userdata['user_level'] == ADMIN) ? true : $mx_block->block_info['show_title']; + $show_stats = $mx_block->block_info['show_stats']; + $bullet_full = '<span class="genmed" style="color:#FFA34F"><b>›</b> </span>'; *************** *** 113,123 **** $grouprows= array(); ! if( $catrows[$i]['cat_moderator_groups'] != '') { // We have usergroup_ID, now we need usergroup name $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . " ! WHERE group_single_user <> 1 AND group_type <> ". GROUP_HIDDEN ." AND group_id IN (". $catrows[$i]['cat_moderator_groups'] .") --- 118,140 ---- $grouprows= array(); ! if( $catrows[$i]['cat_moderator_groups'] != '') { + switch (PORTAL_BACKEND) + { + case 'internal': + case 'phpbb2': + $sql_where = 'group_single_user <> " . true . "'; + break; + + case 'phpbb3': + $sql_where = 'group_id <> " . true . "'; + break; + } + // We have usergroup_ID, now we need usergroup name $sql = "SELECT group_id, group_name FROM " . GROUPS_TABLE . " ! WHERE " . $sql_where . " AND group_type <> ". GROUP_HIDDEN ." AND group_id IN (". $catrows[$i]['cat_moderator_groups'] .") *************** *** 180,184 **** // ---------------------------- ! $sql = "SELECT s.song_id, s.song_title, s.song_singer, s.song_user_id, s.song_username, s.song_time, s.song_cat_id, u.user_id, u.username FROM ". MUSIC_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.song_user_id = u.user_id WHERE s.song_cat_id = '". $catrows[$i]['cat_id'] ."' $song_approval_sql --- 197,201 ---- // ---------------------------- ! $sql = "SELECT s.*, u.user_id, u.username FROM ". MUSIC_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.song_user_id = u.user_id WHERE s.song_cat_id = '". $catrows[$i]['cat_id'] ."' $song_approval_sql *************** *** 195,199 **** // Write the Date // ---------------------------- ! $last_song_info = (@function_exists( 'create_date' )) ? create_date($board_config['default_dateformat'], $lastrow['song_time'], $board_config['board_timezone']) : phpBB2::create_date($board_config['default_dateformat'], $lastrow['song_time'], $board_config['board_timezone']); $last_song_info .= '<br />'; --- 212,216 ---- // Write the Date // ---------------------------- ! $last_song_info = music_create_date($board_config['default_dateformat'], $lastrow['song_time'], $board_config['board_timezone']); $last_song_info .= '<br />'; *************** *** 366,370 **** if ($allowed_cat != '') { ! $sql = "SELECT s.song_id, s.song_title, s.song_desc, s.song_singer, s.song_user_id, s.song_user_ip, s.song_username, s.song_time, s.song_cat_id, s.song_view_count, u.user_id, u.username, r.rate_song_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment FROM ". MUSIC_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.song_user_id = u.user_id --- 383,387 ---- if ($allowed_cat != '') { ! $sql = "SELECT s.*, u.user_id, u.username, r.rate_song_id, AVG(r.rate_point) AS rating, COUNT(DISTINCT c.comment_id) AS comments, MAX(c.comment_id) as new_comment FROM ". MUSIC_TABLE ." AS s LEFT JOIN ". USERS_TABLE ." AS u ON s.song_user_id = u.user_id *************** *** 400,403 **** --- 417,431 ---- break; } + + if ($topsongrow[$j]['song_imagename'] == '') + { + $img_full = $images['no_image']; + $img_id = $images['no_image']; + } + else + { + $img_full = (PORTAL_URL . str_replace('./', '/', MUSIC_IMAGE_PATH) . $topsongrow[$j]['song_imagename']); + $img_id = mx_append_sid(this_mo_mxurl("music_mode=music_image&width=212&song_id=". $topsongrow[$j]['song_id'], true)); + } if(!$topsongrow[$j]['rating']) *************** *** 419,423 **** } ! $song_user_ip = (@function_exists( 'decode_ip' )) ? decode_ip($topsongrow[$j]['song_user_ip']) : phpBB2::decode_ip($topsongrow[$j]['song_user_ip']); $template->assign_block_vars('music_recent_lists', array( --- 447,451 ---- } ! $song_user_ip = music_decode_ip($topsongrow[$j]['song_user_ip']); $template->assign_block_vars('music_recent_lists', array( *************** *** 446,450 **** 'L_COMMENTS' => $lang['Comments'], ! 'TIME' => (@function_exists( 'create_date' )) ? create_date($board_config['default_dateformat'], $topsongrow[$j]['song_time'], $board_config['board_timezone']) : phpBB2::create_date($board_config['default_dateformat'], $topsongrow[$j]['song_time'], $board_config['board_timezone']), 'VIEW' => $topsongrow[$j]['song_view_count'], --- 474,478 ---- 'L_COMMENTS' => $lang['Comments'], ! 'TIME' => music_create_date($board_config['default_dateformat'], $topsongrow[$j]['song_time'], $board_config['board_timezone']), 'VIEW' => $topsongrow[$j]['song_view_count'], *************** *** 457,460 **** --- 485,490 ---- 'U_SONG' => mx_append_sid(this_mo_mxurl("music_mode=music_page&song_id=". $topsongrow[$j]['song_id'])), + + 'U_SONG_IMG' => $img_id, 'DESC' => $topsongrow[$j]['song_desc'], *************** *** 509,513 **** +---------------------------------------------------------- | Start output the page ! +---------------------------------------------------------- */ --- 539,543 ---- +---------------------------------------------------------- | Start output the page ! +--------------------------------------------------------- */ *************** *** 525,532 **** $template->assign_vars(array( 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : '100%' ), 'L_TOP_SONGS' => $lang['Top_Songs'], 'L_RECENT_SONGS' => $lang['Recent_Songs'], ! 'L_NO_SONGS' => $lang['No_Songs']) ! ); --- 555,565 ---- $template->assign_vars(array( 'BLOCK_SIZE' => ( !empty($block_size) ? $block_size : '100%' ), + 'BLOCK_TITLE' => $title, 'L_TOP_SONGS' => $lang['Top_Songs'], 'L_RECENT_SONGS' => $lang['Recent_Songs'], ! 'L_NO_SONGS' => $lang['No_Songs'], ! 'L_DESCRIPTION' => $description, ! 'S_SHOW_TITLE' => $show_title, ! 'TARGET_BLANK' => ($music_config['fullpic_popup']) ? 'target="_blank"' : '') ); Index: music_flv.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_flv.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** music_flv.php 15 Jul 2008 22:06:07 -0000 1.4 --- music_flv.php 7 Sep 2008 18:06:27 -0000 1.5 *************** *** 717,721 **** 'POSTER' => $poster, ! 'SONG_TIME' => (@function_exists( 'create_date' )) ? create_date($board_config['default_dateformat'], $thissong['song_time'], $board_config['board_timezone']) : phpBB2::create_date($board_config['default_dateformat'], $thissong['song_time'], $board_config['board_timezone']), 'SONG_VIEW' => $thissong['song_view_count'], --- 717,721 ---- 'POSTER' => $poster, ! 'SONG_TIME' => (@function_exists( 'create_date' )) ? music_create_date($board_config['default_dateformat'], $thissong['song_time'], $board_config['board_timezone']) : phpBB2::create_date($board_config['default_dateformat'], $thissong['song_time'], $board_config['board_timezone']), 'SONG_VIEW' => $thissong['song_view_count'], |