Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

个人空间音乐盒,带播放列表。无限添加音乐。

[复制链接]
ajaxer 发表于 2010-3-2 10:23:36 | 显示全部楼层 |阅读模式
演示站
http://home.0433.tv
测试用户test123,test123
请不要恶意注册,谢谢。

安装说明:


1将musickbox解压后将里面的文件夹上传到uchome根目录
--------------------------------------------------------------
2.修改根目录下面的space.php文件
在$do = (!empty($_GET['do']) && in_array($_GET['do'], $dos))?$_GET['do']:'index';(39行左右)下面添加以下代码
/*音乐盒*/

if($_SGLOBAL['supe_uid']){
    $musicquery=$_SGLOBAL['db']->query("SELECT * FROM ".tname('musicbox')." WHERE uid=".$_SGLOBAL['supe_uid']);
    while($musicrow= $_SGLOBAL['db']->fetch_array($musicquery)){
        $musiclist[]=$musicrow;
    }
    $musiccount=count($musiclist);
}
/*音乐盒结束*/
保存,space.php修改完毕。
--------------------------------------------------------------
3.将space_musicbox.htm上传到template/default/下(根据自己的模板路径进行上传),
修改template/default/space_index.htm文件,
在<!--{if $guidelist}-->
<div id="space_app_guide">
<h2>应用菜单</h2>
上面,注意是上面
添加以下代码<!--{template space_musicbox}-->
__________________________________________________________________________________
4.修改根目录下admincp.php,找到以下代码(大概在36行左中)。
$acs = array(
        array('index','config', 'privacy', 'ip', 'spam', 'hotuser', 'defaultuser', 'usergroup', 'credit', 'magic', 'magiclog',

'profield', 'ad', 'userapp'),
        array('tag', 'mtag', 'event', 'report', 'space'),
        array('cache', 'network', 'profilefield', 'eventclass', 'click', 'task', 'censor', 'stat', 'block', 'cron', 'app', 'log'),
        array('feed', 'blog', 'album', 'pic', 'comment', 'thread', 'post', 'doing', 'share', 'poll')
);
修改成
$acs = array(
        array('index','config', 'privacy', 'ip', 'spam', 'hotuser', 'defaultuser', 'usergroup', 'credit', 'magic', 'magiclog',

'profield', 'ad', 'userapp'),
        array('tag', 'mtag', 'event', 'report', 'space'),
        array('cache', 'network', 'profilefield', 'eventclass', 'click', 'task', 'censor', 'stat', 'block', 'cron', 'app', 'log'),
        array('feed', 'blog', 'album', 'pic', 'comment', 'thread', 'post', 'doing', 'share', 'poll','musicbox')
);

----------------------------------------------------------------------------------------
5.将admincp_musicbox.php文件上传到根目录下面的admin目录里
----------------------------------------------------------------
6.修改admin/tpl目录里header.htm文件将修改
        $_TPL['menunames'] = array(
                'index' => '管理首页',
                'config' => '站点设置',
                'privacy' => '隐私设置',
                'usergroup' => '用户组',
                'credit' => '积分规则',
                'profilefield' => '用户栏目',
                'profield' => '群组栏目',
                'eventclass' => '活动分类',
                'magic' => '道具设置',
                'task' => '有奖任务',
                'spam' => '防灌水设置',
                'censor' => '词语屏蔽',
                'ad' => '广告设置',
                'userapp' => 'MYOP应用',
                'app' => 'UCenter应用',
                'network' => '随便看看',
                'cache' => '缓存更新',
                'log' => '系统log记录',
                'space' => '用户管理',
                'feed' => '动态(feed)',
                'share' => '分享',
                'blog' => '日志',
                'album' => '相册',
                'pic' => '图片',
                'comment' => '评论/留言',
                'thread' => '话题',
                'post' => '回帖',
                'doing' => '记录',
                'tag' => '标签',
                'mtag' => '群组',
                'poll' => '投票',
                'event' => '活动',
                'magiclog' => '道具记录',
                'report' => '举报',
                'block' => '数据调用',
                'template' => '模板编辑',
                'backup' => '数据备份',
                'stat' => '统计更新',
                'cron' => '系统计划任务',
                'click' => '表态动作',
                'ip' => '访问IP设置',
                'hotuser' => '推荐成员设置',
                'defaultuser' => '默认好友设置',
        );

        $_TPL['menunames'] = array(
                'index' => '管理首页',
                'config' => '站点设置',
                'privacy' => '隐私设置',
                'usergroup' => '用户组',
                'credit' => '积分规则',
                'profilefield' => '用户栏目',
                'profield' => '群组栏目',
                'eventclass' => '活动分类',
                'magic' => '道具设置',
                'task' => '有奖任务',
                'spam' => '防灌水设置',
                'censor' => '词语屏蔽',
                'ad' => '广告设置',
                'userapp' => 'MYOP应用',
                'app' => 'UCenter应用',
                'network' => '随便看看',
                'cache' => '缓存更新',
                'log' => '系统log记录',
                'space' => '用户管理',
                'feed' => '动态(feed)',
                'share' => '分享',
                'blog' => '日志',
                'musicbox'=>音乐盒管理,
                'album' => '相册',
                'pic' => '图片',
                'comment' => '评论/留言',
                'thread' => '话题',
                'post' => '回帖',
                'doing' => '记录',
                'tag' => '标签',
                'mtag' => '群组',
                'poll' => '投票',
                'event' => '活动',
                'magiclog' => '道具记录',
                'report' => '举报',
                'block' => '数据调用',
                'template' => '模板编辑',
                'backup' => '数据备份',
                'stat' => '统计更新',
                'cron' => '系统计划任务',
                'click' => '表态动作',
                'ip' => '访问IP设置',
                'hotuser' => '推荐成员设置',
                'defaultuser' => '默认好友设置',
        );
-------------------------
7.将musicbox.htm上传到 admin/tpl目录下


----------------
8。用phpmyadmin或者别的mysql工具添加一个表
--
-- 表的结构 `uchome_musicbox`
--

CREATE TABLE IF NOT EXISTS `uchome_musicbox` (
  `musicid` int(11) NOT NULL AUTO_INCREMENT,
  `musicname` varchar(50) NOT NULL,
  `musicurl` text NOT NULL,
  `uid` int(11) NOT NULL,
  PRIMARY KEY (`musicid`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-------------------------------------------------
9.修改uchome_spacefield表,添加一个字段名为musicboxstyle

----------------------
添加完成




孤独依人 发表于 2010-3-2 10:32:33 | 显示全部楼层
沙发,支持一下
回复

使用道具 举报

hong5305 发表于 2010-3-2 12:57:54 | 显示全部楼层
我来看看
回复

使用道具 举报

somotion 发表于 2010-3-2 13:01:41 | 显示全部楼层
签名没有了
回复

使用道具 举报

vivi0212 发表于 2010-3-2 16:20:21 | 显示全部楼层
这个不错,可以吸收.
回复

使用道具 举报

fzfj 发表于 2010-3-2 16:45:46 | 显示全部楼层
看起来不错~~~
回复

使用道具 举报

零刻社稷 发表于 2010-3-2 16:53:29 | 显示全部楼层
不错!支持个!
回复

使用道具 举报

零刻社稷 发表于 2010-3-2 16:55:07 | 显示全部楼层
看上去可以试试
回复

使用道具 举报

蓝色创想 发表于 2010-3-2 19:23:17 | 显示全部楼层
路过,就看看~~
回复

使用道具 举报

鬼小四 发表于 2010-3-3 13:32:25 | 显示全部楼层
谁先去试试,如果成功的话发个演示看看,谢谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-21 13:40 , Processed in 0.231797 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表