══════════════════════════════════════
■ 最近的一次更新是: 2005-12-18 13:00
本插件为 Discuz! Plus! Team 的第一个免费产品.
══════════════════════════════════════
# 原创 oytktk(靖飒)
#
# 版权 归 oytktk(靖飒) 所有
#
# 技术支持 http://www.huasa.net
#
#
══════════════════════════════════════
■ 演示站点: http://www.huasa.net/bbs/plugin. ... &module=mymusic
══════════════════════════════════════
══════════════════════════════════════
■ 以下是我的小站的友情连接信息
══════════════════════════════════════
1). 论坛名称: 华飒科技
2). 论坛 URL: http://www.huasa.net
3). 文字说明[可选]: BT发布 视频 短片 图片 尤物 搞笑 电脑 技术 网络 下载 电影 插件
4). logo 地址: http://www.huasa.net/bbs/logo.php
══════════════════════════════════════
■ 已经做好连接的朋友PM我个,我立即交换连接
══════════════════════════════════════
══════════════════════════════════════
■ 安装方法:
══════════════════════════════════════
->建议在安装前先行安装
发贴标题自动加发布时间插件
https://discuz.dismall.com/viewthread.php?tid=179388
SQL:
- ALTER TABLE `cdb_posts` ADD `mp3_url` VARCHAR( 255 ) NOT NULL ;
- ALTER TABLE `cdb_threads` ADD `mp3_type` VARCHAR( 10 ) NOT NULL ;
复制代码
■ 1. 按结构上传所有文件;
■ 2. 以管理员身份进入后台,
■ 添加插件, 导入 *plug_weather.txt 并开启插件.
文件修改如下:
templates\default\VIEWHTHREAD.HTM
查找:
- <input type="text" name="subject" size="80" value="" tabindex="1"
复制代码
后面加
templates\default\post_newthread.htm
查找:
- <input type="text" name="subject" size="45" value="$subject" tabindex="3"
复制代码
后面加
_______________________________________________________________________
上面这一步是为了让发贴时不能改标题,你可以选择不改,那么在发贴时的标题是可以改的
查找:
上面加:
- $MY_MUSIC_FOR_D4_BY_OYTKTK_START
- <!--{if $readonly && !$poll}-->
- {template post_musical}
- <!--{/if}-->
- $MY_MUSIC_FOR_D4_BY_OYTKTK_END
复制代码
templates\default\post_editpost.htm
查找:
上面加
- $MY_MUSIC_FOR_D4_BY_OYTKTK_START
- <!--{if $readonly && !$polloptions}-->
- {template post_musicedit}
- <!--{/if}-->
- $MY_MUSIC_FOR_D4_BY_OYTKTK_END
复制代码
include/newthread.inc.php
查找:
下面加:
- //Music Heartland (音乐厅) By oytktk(靖飒)
- @require DISCUZ_ROOT.'./forumdata/cache/plugin_mymusic.php';
- $mucfg = $_DPLUGIN['mymusic']['vars'];
- $musicfid=$mucfg['musicfid'];
- foreach( explode(',', $musicfid) as $fids ){
- if ($fid == $fids) {$readonly = "readonly"; break;}
- }
- //Music Heartland (音乐厅) By oytktk(靖飒) end...
复制代码
查找:
- if($subject == '' || $message == '') {
复制代码
上面加:
- if($readonly && ($mp3_name == '' || $mp3_artist == '') && (!$upload && !$mp3_m_r == '')) {
- showmessage("对不起, 您没有输入音乐必选参数!");
- }
复制代码
查找:
后面加:
查找:
- '$displayorder', '$digest'
复制代码
后面加:
查找:
- usesig, htmlon, bbcodeoff
复制代码
后面加:
查找:
- '$usesig', '$htmlon', '$bbcodeoff'
复制代码
后面加:
include/editpost.inc.php
查找:
下面加:
- //Music Heartland (音乐厅) By oytktk(靖飒)
- @require DISCUZ_ROOT.'./forumdata/cache/plugin_mymusic.php';
- $mucfg = $_DPLUGIN['mymusic']['vars'];
- $musicfid=$mucfg['musicfid'];
- foreach( explode(',', $musicfid) as $fids ){
- if ($fid == $fids) {$readonly = "readonly"; break;}
- }
- //Music Heartland (音乐厅) By oytktk(靖飒) end...
复制代码
查找:
后面加:
查找:
- message='$message', usesig='$usesig'
复制代码
后面加:
templates\default\actions.lang.php
查找:
下面加:
修改文件部分已经完成.
到后台设置插件参数!
[ 本帖最后由 oytktk 于 2007-8-24 14:14 编辑 ] |