( )
( http://web-tourist.net/login/login/view.php?st=2754 ) .

-> download song

.

music_download.php root .
dl_update.php , SQL-a , .

## MOD Title: Music Download Song Add-on (for MOM 2.0.5)
## MOD Version: 1.0.1 (ex phpbb 2.0.8)
## MOD Author: Cf Manager < cf_manager@yahoo.com > (Vincent Thai)

2-3 . .

################################################################
#
#-----[ ]--------------------------------------------------
#
admin/admin_music_config.php

#
#-----[ ]--------------------------------------------------
#
'COMMENT_ENABLED' => ($new['comment'] == 1) ? 'checked="checked"' : '',
'COMMENT_DISABLED' => ($new['comment'] == 0) ? 'checked="checked"' : '',

#
#-----[ , ]---------------------------------------------
#
'DOWNLOAD_ENABLED' => ($new['download'] == 1) ? 'checked="checked"' : '',
'DOWNLOAD_DISABLED' => ($new['download'] == 0) ? 'checked="checked"' : '',

#
#-----[ ]--------------------------------------------------
#
'L_COMMENT_SYSTEM' => $lang['Comment_system'],

#
#-----[ , ]---------------------------------------------
#
'L_DOWNLOAD_SYSTEM' => $lang['Download_system'],

#
#-----[ ]--------------------------------------------------
#
'L_COMMENTS' => $lang['Comments'],

#
#-----[ , ]---------------------------------------------
#
'L_DOWNLOAD' => $lang['Download'],


#
#-----[ ]--------------------------------------------------
#
music_page.php

#
#-----[ ]--------------------------------------------------
#
'SONG_VIEW' => $thissong['song_view_count'],

#
#-----[ , ]---------------------------------------------
#
'SONG_DOWNLOAD' => $thissong['song_download_count'],

#
#-----[ ]--------------------------------------------------
#
'L_VIEW' => $lang['View'],

#
#-----[ , ]---------------------------------------------
#
'L_DOWNLOAD' => $lang['Download'],

#
#-----[ ]--------------------------------------------------
#
'U_COMMENT' => append_sid("music_comment.$phpEx?song_id=$song_id"),

#
#-----[ , ]---------------------------------------------
# I have missed the line below before :(

'U_DOWNLOAD' => append_sid("music_download.$phpEx?song_id=$song_id"),

#
#-----[ ]--------------------------------------------------
#
if ($music_config['comment'])
{
$template->assign_block_vars('comment_switch', array());
}

#
#-----[ , ]---------------------------------------------
#
if ($music_config['download'])
{
$template->assign_block_vars('download_switch', array());
}


#
#-----[ ]--------------------------------------------------
#
language/lang_english/lang_main_music.php

#
#-----[ ]--------------------------------------------------
#
$lang['Comments'] = 'Comments';

#
#-----[ AFTER ADD ]---------------------------------------------
#
$lang['Download'] = 'Download';


#
#-----[ ]--------------------------------------------------
#
language/lang_english/lang_admin_music.php

#
#-----[ ]--------------------------------------------------
#
$lang['Comment_system'] = 'Enable comment system';

#
#-----[ AFTER ADD ]---------------------------------------------
#
$lang['Download_system'] = ' ';


#
#-----[ ]--------------------------------------------------
#
templates/subSilver/admin/music_config_body.tpl

#
#-----[ ]--------------------------------------------------
#
<tr>
<td class="row1"><span class="genmed">{L_COMMENT_SYSTEM}</span></td>
<td class="row2"><span class="genmed"><input type="radio" {COMMENT_ENABLED} name="comment" value="1" />{L_YES}<input type="radio" {COMMENT_DISABLED} name="comment" value="0" />{L_NO}</span></td>
</tr>

#
#-----[ , ]---------------------------------------------
#
<tr>
<td class="row1"><span class="genmed">{L_DOWNLOAD_SYSTEM}</span></td>
<td class="row2"><span class="genmed"><input type="radio" {DOWNLOAD_ENABLED} name="download" value="1" />{L_YES}<input type="radio" {DOWNLOAD_DISABLED} name="download" value="0" />{L_NO}</span></td>
</tr>

#
#-----[ ]--------------------------------------------------
#
templates/subSilver/music_page.tpl

#
#-----[ ]--------------------------------------------------
#
<!-- BEGIN comment_switch -->
<!-- END comment_switch -->

#
#-----[ , ]---------------------------------------------
#
<!-- BEGIN download_switch -->
<!-- END download_switch -->

#
#-----[ ]--------------------------------------------------
#
<!-- BEGIN comment_switch -->
<tr>
<td align="right"><span class="genmed"><a href="{U_COMMENT}">{L_COMMENTS}:</a></span></td>
<td><b><span class="genmed">{SONG_COMMENTS}</span></b></td>
</tr>
<!-- END comment_switch -->

#
#-----[ , ]---------------------------------------------
#
<!-- BEGIN download_switch -->
<tr>
<td align="right"><span class="genmed"><a href="{U_DOWNLOAD}">{L_DOWNLOAD}:</a></span></td>
<td><b><span class="genmed">{SONG_DOWNLOAD}</span></b></td>
</tr>
<!-- END download_switch -->


!

:


/ /