点歌系统 GBK FOR Discuz! 4.1.0
//===========================================================//插件名称:点歌系统
//适用版本:Discuz! 4.1.0
//作 者:未知
//技术支持:www.discuz.net
//数据升级:有
//修改文件:index.php
//修改模版:index.htm
//最后更新:2006-05-08
//版权依然归原作者,虽然不知道是谁
//===========================================================
*****************************
安装之前注意事项:
*****************************
修改index_song.htm修改滚动设置,高度等等,
另外,用到了members中的extcredits2。
本插件己美化过。
*****************************
*****************************
特点:
*****************************
主页点歌台部分无查询,通过cache包含数据。
*****************************
1、 [color=blue]调节songconfig.php文件,其中可调歌曲保留时间等,搞定后将附件解压后按其结构上传于您的论坛各文件夹内。 [/color]
2、 [color=blue]升级数据库。 [/color]
[code]CREATE TABLE cdb_plugin_song (
sgid int(12) NOT NULL auto_increment,
username varchar(50) NOT NULL,
touser varchar(50) NOT NULL,
songname varchar(50) NOT NULL,
songurl varchar(80) NOT NULL,
songtype varchar(10) NOT NULL,
content varchar(200) NOT NULL,
stime int(11) DEFAULT '0' NOT NULL,
particular int(1) DEFAULT '0' NOT NULL,
PRIMARY KEY (sgid),
UNIQUE sid (sgid),
KEY sid_2 (sgid)
)TYPE=MyISAM ;
[/code]
显示乱码的朋友在升级数据库的最后;号前,加上 CHARSET=gbk ,如果还不行,那就是你的MYSQL版本不支持此插件,卸载之。
3、 [color=blue]修改index.php文件。 [/color]
查找:
[code]if(empty($gid)) {
[/code]
在上面插入:
[code]//-----------------------------------------
require DISCUZ_ROOT.'./indexsong.php';
//-----------------------------------------
[/code]
4、 [color=blue]修改所有模板index.htm。 [/color]
查找:
[code]<div class="maintable">
{template pmprompt}
</div>
<!--{/if}-->
[/code]
在下面插入:
[code]<div class="maintable">
{template index_songs}
</div>
[/code]
5、 [color=blue]后台更新缓存。[/color]
[url=http://www.discuz.net/attachment.php?aid=43134][color=Red]附件下载[/color][/url]
[img]http://www.discuz.net/attachments/month_0605/show_B2mcA71AABp0.gif[/img]
页:
[1]
老班长论坛,股票论坛,股票社区,绿色软件,破解补丁,休闲笑话,大型休闲理财论坛