音乐插件musicbox GBK FOR uchome 2.0
演示地址: http://www.ad119.cn/home/space.php?do=musicbox一、解压缩安装包,上传到uch根目录。运行http://你的uch地址/musicbox_install/index.php。数据库安装完后请删除musicbox_install文件夹
二、打开config.php
找到$_SC['tplrefresh'] = 0;在下面添加$_SC['music_upload'] = '0';
$_SC['music_link'] = '1';
$_SC['music_integralset'] = '1';
$_SC['music_i_upload'] = '5';
$_SC['music_i_upload_del'] = '-5';
$_SC['music_i_addlink'] = '3';
$_SC['music_i_addlink_del'] = '-3';
$_SC['music_i_addzj'] = '2';
$_SC['music_i_addzj_del'] = '-1';
$_SC['music_i_pingfen'] = '1';
$_SC['music_i_pinglun'] = '1';
$_SC['music_i_pinglun_del'] = '-3';
$_SC['music_i_share'] = '4';
$_SC['music_play_auto'] = '1';
$_SC['music_down_auto'] = '0';
$_SC['music_palyer_style'] = '0';
$_SC['music_i_disk'] = '1';
$_SC['music_v_guest'] = '1';
$_SC['music_i_edit'] = '0';三、打开language文件内的lang_showmessage.php
找到'you_do_not_have_permission_to_visit' => '您已被禁止访问。',在下面添加//自定义'm_commend_success' => '推荐音乐成功!',
'm_commendedit_success' => '修改音乐成功!',
'm_newmymusicalbum_success' => '创建专辑成功!',
'nomusic' => '对不起!参数错误,此音乐不存在!',
'deletemusic_success' => '音乐删除成功!',
'deletemusicalbum_success' => '专辑删除成功!',
'musicpingfen_success' => '添加评分成功!',
'musicpinglun_success' => '评论发表成功!',
'musicsetbg_success' => '设置成功!',四、打开language文件内的lang_cp.php
找到'note_space_bar' => '把你设置为站点推荐用户了',在下面添加'music_collection' => '收藏了你的音乐 <a href="space.php?uid=\\1&do=musicbox&mview=mpage&mid=\\2" target="_blank">\\3</a>',
'music_topingfen' => '给你的音乐 <a href="space.php?uid=\\1&do=musicbox&mview=mpage&mid=\\2" target="_blank">\\3</a> 评了\\4分',
'music_topinglun' => '评论了你的音乐 <a href="space.php?uid=\\1&do=musicbox&mview=mpage&mid=\\2" target="_blank">\\3</a>',
'music_toshare' => '与你分享音乐 <a href="space.php?uid=\\1&do=musicbox&mview=mpage&mid=\\2" target="_blank">\\3</a> ,邀你试听...',五、打开space.php
找到$dos = array('feed', 'doing', 'mood', 'blog', 'album', 'thread', 'mtag', 'friend', 'wall', 'tag', 'notice', 'share', 'topic', 'home', 'pm', 'event', 'poll', 'top', 'info', 'videophoto');替换为$dos = array('feed', 'musicbox', 'doing', 'mood', 'blog', 'album', 'thread', 'mtag', 'friend', 'wall', 'tag', 'notice', 'share', 'topic', 'home', 'pm', 'event', 'poll', 'top', 'info', 'videophoto');六、打开do.php
找到$acs = array('login', 'register', 'lostpasswd', 'swfupload', 'inputpwd',替换为$acs = array('login', 'ajaxm', 'register', 'lostpasswd', 'swfupload', 'inputpwd',七、打开template\default\header.htm
找到<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>在下面添加<script type="text/javascript" src="js/SuggestFramework.js"></script>
<script type="text/javascript">window.onload = initializeSuggestFramework;</script>
<style type="text/css">
@import url(template/default/musicboxstyle.css);
</style>找到<li><img src="image/app/album.gif"><a href="space.php?do=album">相册</a><em><a href="cp.php?ac=upload" class="gray">上传</a></em></li>在下面添加<li><img src="images/musicicon.gif"><a href="space.php?do=musicbox">音乐</a><em><a href="space.php?do=musicbox&mview=commend">推荐</a></em></li>八、第二到第七步修改的文件上传覆盖
九、更新缓存
十、完成。祝各位顺利
页:
[1]