主题分类插件FOR Discuz系列正式版-索引专题分类板内分类话题分类 for dz5.0
上一篇 / 下一篇 2007-01-18 18:35:36 / 个人分类:插件
查看( 1008 ) /
评论( 22 )
主题分类插件FOR Discuz系列正式版-索引专题分类板内分类话题分类 for dz5.0
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::插件名称: 专题分类插件 Subject classification FOR Discuz系列
::版本 : For Discuz5.0 FREE
::原创作者 :爱爱医技术部(aday) 转载和重写使用代码必须保留
::KEYWORDS:主题分类-板内分类-话题分类-专题分类-Subject classification
::修改作者:玫瑰天空论坛(e_zailai)
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
功能描述:
1:版本为此前Aiaiyi WorkRoom发布的主题分类或板内分类FOR2.x版本的2.5升级版本。
2:每个版块可以设置不同的专题分类,可以为所有的主题或部分主题赋一个专题分类属性。
3:特别适合论坛各版块搞各种活动需要组织和推出一批专题文章的。
4:特别适合大型论坛,帖子较多需要进一步的细分而不想使用子论坛功能的。
8:后台可为每个论坛设置不同的一个或多个专题类别。
8:后台可控制该版块是否强制会员发贴专题分类。
5:前台显示兼容精华贴显示。
6:前台无专题设置无显示。
8:前台快速发贴显示专题选择列表
6:专题列表内发新贴自动指定该专题。
7:发贴时可选择把主题归类到专题中,编辑帖子可重新指定专题类别。
9:支持把主题批量转移归属到各个专题中。
10:支持把专题归类功能限制给斑竹和管理员用。[正在整理当中]
协议声明:
1:Discuz是Comsenz Technology Ltd开发的高新产品DISCUZ论坛程序。
2:Subject classification是Aiaiyi WorkRoom[找不着北aday]为Discuz开发的专题插件,拥有对原创代码的版权
3:玫瑰天空论坛(e_zailai)没有对该插件提供任何技术支持的义务,所有的支持都是免费的或者是收费的。
4:玫瑰天空论坛(e_zailai)不对该插件可能造成用户程序文件破坏、数据丢失、直接或间接的其他损失负任何责任和连带责任。
5:当你准备使用该插件时你必须认同和接受以上声明协议,否则请不要使用本插件。
6:转贴请务必保留本协议声明。
使用安装说明:
安装前说明:
1:e_zailai 对无法完成该插件安装的以及D4.x用户 提供付费远程安装,限于业余空闲时间。
2:免费技术支持:玫瑰天空论坛。由于信箱容量限制请不要PM,请到玫瑰天空论坛发贴或本主题回贴寻求支持,我也会来逛的。
3:付费技术支持:QQ 2653318(验证通过信息为:专题插件付费技术支持),EMAIL:e_zailai@tom.com
安装前准备:
1:详细阅读功能描述看是否确实需要该插件并且版本相符,认真阅读协议声明接受并认同它,阅读安装前说明方便在自己遇到问题后得到技术支持。
2:请做数据库以及文件备份,下面是用到的文件10个请一一备份。以便随时覆盖还原。
该插件修改的档案:
修改:数据库表
主题表threads添加一个字段cate
论坛表forums添加一个字段cates
修改:PHP文档
./admin/forums.inc.php
./forumdisplay.php
./post.php
./include/editpost.inc.php
./include/newthread.inc.php
如需安装批量专题分类:
./topicadmin.php
修改:摸板
forumdisplay.htm
post_editpost.htm
post_newthread.htm
如需安装批量专题分类:
topicadmin_moderate.htm
3:图片6张 附件中请解压到/images/attachicons目录
4:再次确认自己按照说明已经备份
后台代码控制详解:
1:后台代码非常人性话和易于控制。
2:登陆到后台点 论坛编辑 专题分类栏
3: 前置on表示开启所在版块的强制会员发表新主题时候实行专题归类,默认为关闭即去掉on
4:有效的代码格式:以_所有文章开头,用|分割专题名称和它的代号 代号不能更改,名称可以更改,前后顺序可以调换
下面是有效的代码样式
_所有文章|1_考试政策|2_考研英语|3_基础课|4_专业课|5_经验交流|6_招生公告
_所有文章|4_专业课|1_考试政策|2_考研英语|3_基础课|6_招生公告|5_经验交流
on_所有文章|1_考试政策|2_考研英语|3_基础课|4_专业课|5_经验交流|6_招生公告
on_所有文章|4_专业课|1_考试政策|2_考研英语|3_基础课|6_招生公告|5_经验交流
图片附件: 专题前台显示
[attach]1277[/attach]
附件: 专题分类HACK演示
[attach]1278[/attach]
========================标准安装开始============================
第一步:升级安装请跳过第一步,全新安装(以前没有安装过主题分类或板内分类FOR 2.0/2.2)请先升级数据库
查找:
查找:
查找:
查找:
查找:
查找
查找
查找:
========================批量选项安装开始========================
如果要安装批量专题分类:
第一步:topicadmin.php
查找:
查找
共两处)
查找:
如需修改完整版请到本人论坛去下载!
[ 本帖最后由 e_zailai 于 2007-1-18 18:24 编辑 ]

1.jpg

发帖.jpg

后台管理2.gif
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::插件名称: 专题分类插件 Subject classification FOR Discuz系列
::版本 : For Discuz5.0 FREE
::原创作者 :爱爱医技术部(aday) 转载和重写使用代码必须保留
::KEYWORDS:主题分类-板内分类-话题分类-专题分类-Subject classification
::修改作者:玫瑰天空论坛(e_zailai)
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
功能描述:
1:版本为此前Aiaiyi WorkRoom发布的主题分类或板内分类FOR2.x版本的2.5升级版本。
2:每个版块可以设置不同的专题分类,可以为所有的主题或部分主题赋一个专题分类属性。
3:特别适合论坛各版块搞各种活动需要组织和推出一批专题文章的。
4:特别适合大型论坛,帖子较多需要进一步的细分而不想使用子论坛功能的。
8:后台可为每个论坛设置不同的一个或多个专题类别。
8:后台可控制该版块是否强制会员发贴专题分类。
5:前台显示兼容精华贴显示。
6:前台无专题设置无显示。
8:前台快速发贴显示专题选择列表
6:专题列表内发新贴自动指定该专题。
7:发贴时可选择把主题归类到专题中,编辑帖子可重新指定专题类别。
9:支持把主题批量转移归属到各个专题中。
10:支持把专题归类功能限制给斑竹和管理员用。[正在整理当中]
协议声明:
1:Discuz是Comsenz Technology Ltd开发的高新产品DISCUZ论坛程序。
2:Subject classification是Aiaiyi WorkRoom[找不着北aday]为Discuz开发的专题插件,拥有对原创代码的版权
3:玫瑰天空论坛(e_zailai)没有对该插件提供任何技术支持的义务,所有的支持都是免费的或者是收费的。
4:玫瑰天空论坛(e_zailai)不对该插件可能造成用户程序文件破坏、数据丢失、直接或间接的其他损失负任何责任和连带责任。
5:当你准备使用该插件时你必须认同和接受以上声明协议,否则请不要使用本插件。
6:转贴请务必保留本协议声明。
使用安装说明:
安装前说明:
1:e_zailai 对无法完成该插件安装的以及D4.x用户 提供付费远程安装,限于业余空闲时间。
2:免费技术支持:玫瑰天空论坛。由于信箱容量限制请不要PM,请到玫瑰天空论坛发贴或本主题回贴寻求支持,我也会来逛的。
3:付费技术支持:QQ 2653318(验证通过信息为:专题插件付费技术支持),EMAIL:e_zailai@tom.com
安装前准备:
1:详细阅读功能描述看是否确实需要该插件并且版本相符,认真阅读协议声明接受并认同它,阅读安装前说明方便在自己遇到问题后得到技术支持。
2:请做数据库以及文件备份,下面是用到的文件10个请一一备份。以便随时覆盖还原。
该插件修改的档案:
修改:数据库表
主题表threads添加一个字段cate
论坛表forums添加一个字段cates
修改:PHP文档
./admin/forums.inc.php
./forumdisplay.php
./post.php
./include/editpost.inc.php
./include/newthread.inc.php
如需安装批量专题分类:
./topicadmin.php
修改:摸板
forumdisplay.htm
post_editpost.htm
post_newthread.htm
如需安装批量专题分类:
topicadmin_moderate.htm
3:图片6张 附件中请解压到/images/attachicons目录
4:再次确认自己按照说明已经备份
后台代码控制详解:
1:后台代码非常人性话和易于控制。
2:登陆到后台点 论坛编辑 专题分类栏
3: 前置on表示开启所在版块的强制会员发表新主题时候实行专题归类,默认为关闭即去掉on
4:有效的代码格式:以_所有文章开头,用|分割专题名称和它的代号 代号不能更改,名称可以更改,前后顺序可以调换
下面是有效的代码样式
_所有文章|1_考试政策|2_考研英语|3_基础课|4_专业课|5_经验交流|6_招生公告
_所有文章|4_专业课|1_考试政策|2_考研英语|3_基础课|6_招生公告|5_经验交流
on_所有文章|1_考试政策|2_考研英语|3_基础课|4_专业课|5_经验交流|6_招生公告
on_所有文章|4_专业课|1_考试政策|2_考研英语|3_基础课|6_招生公告|5_经验交流
图片附件: 专题前台显示
附件: 专题分类HACK演示
========================标准安装开始============================
第一步:升级安装请跳过第一步,全新安装(以前没有安装过主题分类或板内分类FOR 2.0/2.2)请先升级数据库
CODE:
ALTER TABLE `cdb_threads` ADD `cate` VARCHAR( 2 ) DEFAULT '0' NOT NULL AFTER `fid` ;
ALTER TABLE `cdb_forums` ADD `cates` VARCHAR( 150 ) DEFAULT '_所有文章' NOT NULL AFTER `name` ;第二步:/admin/forums.inc.php查找:
CODE:
showsetting('forums_edit_name', 'namenew', $forum['name'], 'text');下面插入:
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
showsetting('主题分类', 'catesnew', $forum['cates'], 'text');
//=D50 Subject classification=Ver.5.0.0 by e_zailai=End//查找:
QUOTE:
/******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE Start******替换为:CODE:
$db->query("UPDATE {$tablepre}forums SET status='$statusnew', name='$namenew', styleid='$styleidnew', allowshare='$allowsharenew',******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE End******/
allowpostspecial='$allowpostspecialnew', allowpaytoauthor='$allowpaytoauthornew', allowhtml='$allowhtmlnew', allowbbcode='$allowbbcodenew', allowimgcode='$allowimgcodenew',
allowsmilies='$allowsmiliesnew', alloweditrules='$alloweditrulesnew', modnewposts='$modnewpostsnew',
recyclebin='$recyclebinnew', jammer='$jammernew', allowanonymous='$allowanonymousnew', forumcolumns='$forumcolumnsnew', threadcaches='$threadcachesnew',
disablewatermark='$disablewatermarknew', autoclose='".intval($autoclosenew * $autoclosetimenew)."' $fupadd
WHERE fid='$fid'");
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Change Start//
$db->query("UPDATE {$tablepre}forums SET status='$statusnew', name='$namenew', styleid='$styleidnew', allowshare='$allowsharenew',cates='$catesnew',
allowpostspecial='$allowpostspecialnew', allowpaytoauthor='$allowpaytoauthornew', allowhtml='$allowhtmlnew', allowbbcode='$allowbbcodenew', allowimgcode='$allowimgcodenew',
allowsmilies='$allowsmiliesnew', alloweditrules='$alloweditrulesnew', modnewposts='$modnewpostsnew',
recyclebin='$recyclebinnew', jammer='$jammernew', allowanonymous='$allowanonymousnew', forumcolumns='$forumcolumnsnew', threadcaches='$threadcachesnew',
disablewatermark='$disablewatermarknew', autoclose='".intval($autoclosenew * $autoclosetimenew)."' $fupadd
WHERE fid='$fid'");
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Change End//第三步:forumdisplay.php 查找:
CODE:
$discuz_action = 2;下面插入:
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
if (preg_match("/[^0-9]/",$cateid)) {$cateid="";}
//=D50 Subject classification=Ver.5.0.0 by e_zailai=End//查找:
QUOTE:
/******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE Start******替换为:CODE:
$forumdisplayadd = $filteradd = '';******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE End******/
if(isset($filter)) {
if($filter == 'digest') {
$forumdisplayadd .= '&filter=digest';
$filteradd = "AND digest>'0'";
} elseif($filter == 'type' && $forum['threadtypes']['listable'] && $typeid && isset($forum['threadtypes']['types'][$typeid])) {
$forumdisplayadd .= "&filter=type&typeid=$typeid";
$filteradd = "AND typeid='$typeid'";
} elseif(preg_match("/^\d+$/", $filter)) {
$forumdisplayadd .= "&filter=$filter";
$filteradd = $filter ? "AND lastpost>='".($timestamp - $filter)."'" : '';
} elseif($filter == 'poll') {
$forumdisplayadd .= "&filter=$filter";
$filteradd = 'AND special = 1';
} elseif($filter == 'trade') {
$forumdisplayadd .= "&filter=$filter";
$filteradd = 'AND special = 2';
} elseif($filter == 'reward') {
$forumdisplayadd .= "&filter=$filter";
$filteradd = 'AND special = 3';
} elseif($filter == 'activity') {
$forumdisplayadd .= "&filter=$filter";
$filteradd = 'AND special = 4';
} else {
$filter = '';
}
} else {
$filter = '';
}
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
$forumdisplayadd = $caturladd = $filteradd = $cateidadd ='';
if(isset($filter)) {
if($filter == 'digest') {
$forumdisplayadd .= '&filter=digest';
$filteradd = "AND digest>'0'";
} elseif($filter == 'type' && $forum['threadtypes']['listable'] && $typeid && isset($forum['threadtypes']['types'][$typeid])) {
$forumdisplayadd .= "&filter=type&typeid=$typeid";
$filteradd = "AND typeid='$typeid'";
} elseif(preg_match("/^\d+$/", $filter)) {
$forumdisplayadd .= "&filter=$filter";
$filteradd = $filter ? "AND lastpost>='".($timestamp - $filter)."'" : '';
} elseif($filter == 'poll') {
$forumdisplayadd .= "&filter=$filter";
$filteradd = 'AND special = 1';
} elseif($filter == 'trade') {
$forumdisplayadd .= "&filter=$filter";
$filteradd = 'AND special = 2';
} elseif($filter == 'reward') {
$forumdisplayadd .= "&filter=$filter";
$filteradd = 'AND special = 3';
} elseif($filter == 'activity') {
$forumdisplayadd .= "&filter=$filter";
$filteradd = 'AND special = 4';
} else {
$filter = '';
}
} else {
$filter = '';
}
if(!empty($cateid)) {
$forumdisplayadd .= "&cateid=$cateid";
$cateidadd = "AND cate=$cateid ";
} else {
$cateid = '';
}
$cates=explode("|",$forum[cates]);$cat_count=$i=count($cates);
if($cat_count==1){
$subjectcate = $thecates = $cate_must_scrīpt = $cate_must_alert = $thecates = "";}
else{
for($i = 0; $i < count($cates); $i++){
$thecates2 = $thecates1 = explode("_",$cates[$i]);
if($i == 0){if($thecates1[0]=="on"){$thecates1[0]="";}}
if($thecates1[0]==$cateid ){$subject_class=$thecates1[1];
$thecates .= "<td width=9><img src=images/attachicons/ttl.gif width=9 height=27></td><td background=images/attachicons/ttc.gif>$thecates1[1]</td><td width=9><img src=images/attachicons/ttr.gif width=9 height=27></td>";
}else{
$thecates.="<td width=9><img src=\"images/attachicons/tl.gif\" width=9 height=27></td><td background=\"images/attachicons/tc.gif\"><a href=\"?fid=$forum[fid]$caturladd&cateid=$thecates1[0]\">$thecates1[1]</a></td><td width=9><img src=\"images/attachicons/tr.gif\" width=9 height=27></td>";
}
if($i == 0){if($thecates2[0]=="on"){
$cate_must_scrīpt="||theform.cate.value == \"\"";
$cate_must_alert="专题分类亦为必选!";
}else{
$cate_must_scrīpt = $cate_must_alert ="";}
$thecates2[0]="";$thecates2[1]="选择专题";}
if($thecates2[0]==$cateid){$subjectcate .="<option value=\"$thecates2[0]\" selected >$thecates2[1]</option>";
}else{
$subjectcate .= "<option value=\"$thecates2[0]\">$thecates2[1]</option>"; }
}}
$thecates="<TABLE CELLSPACING=0 CELLPADDING=0 border=0 align=\"left\"><TR>".$thecates."</TR></TABLE>";
$subjectcate= "<select name=cate>".$subjectcate."</select>";
//=D50 Subject classification=Ver.5.0.0 by e_zailai=End//查找:
QUOTE:
/******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE Start******替换为:CODE:
if(empty($filter)) {******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE End******/
$threadcount = $forum['threads'];
} else {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}threads WHERE fid='$fid' $filteradd AND displayorder>='0'");
$threadcount = $db->result($query, 0);
}
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
if(empty($filter)||empty($cateid)) {
$threadcount = $forum['threads'];
} else {
$query = $db->query("SELECT COUNT(*) FROM {$tablepre}threads WHERE fid='$fid' $filteradd $cateidadd AND displayorder>='0'");
$threadcount = $db->result($query, 0);
}
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start// 查找:
QUOTE:
/******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE Start******替换为:CODE:
$query = $db->query("SELECT $dotadd1 t.* FROM {$tablepre}threads t $dotadd2******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE End******/
WHERE t.fid='$fid' $filteradd AND $displayorderadd
ORDER BY t.displayorder DESC, t.$orderby $ascdesc
LIMIT ".($filterbool ? $start_limit : $start_limit - $stickycount).", $tpp");
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Change Start//
$query = $db->query("SELECT $dotadd1 t.* FROM {$tablepre}threads t $dotadd2
WHERE t.fid='$fid' $filteradd $cateidadd AND $displayorderadd
ORDER BY t.displayorder DESC, t.$orderby $ascdesc
LIMIT ".($filterbool ? $start_limit : $start_limit - $stickycount).", $tpp");
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Change End//查找:
CODE:
$check[$filter] = $check[$orderby] = $check[$ascdesc] = 'selected="selected"';替换为:
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
$check[$filter] = $check[$orderby] = $check[$ascdesc] = $check[$cateid] = 'selected="selected"';
//=D50 Subject classification=Ver.5.0.0 by e_zailai=End// 第四步:post.php 查找:
CODE:
$creditspolicy['postattach'];下面加上:
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
$cateid = dhtmlspecialchars($cateid);
$subjectcate = "";
$cates=explode("|",$forum[cates]);
if(count($cates)==1) {
$subjectcate = $cate_must_scrīpt = $cate_must_alert = "";
}
else{
$i=count($cates);for($i = 0; $i < count($cates); $i++) {
$thecates1 = explode("_",$cates[$i]);if($i == 0){if($thecates1[0]=="on"){$cate_must_scrīpt="||theform.cate.value == \"\"";$cate_must_alert="专题分类亦为必选!";}else{$cate_must_scrīpt = $cate_must_alert ="";};$thecates1[0]="";$thecates1[1]="选择专题";};if($thecates1[0]==$cateid){$subjectcate .= "<option value=\"$thecates1[0]\" selected >$thecates1[1]</option>";}else{
$subjectcate .= "<option value=\"$thecates1[0]\">$thecates1[1]</option>"; }
}
}
//=D50 Subject classification=Ver.5.0.0 by e_zailai=End// 查找:
CODE:
if(!empty($tid) && !empty($fid)) {
$query = $db->query("SELECT * FROM {$tablepre}threads WHERE tid='$tid'".($auditstatuson ? '' : " AND displayorder>='0'"));
$thread = $db->fetch_array($query);
$fid = $thread['fid'];
$navigation = "? <a href=\"viewthread.php?tid=$tid\">$thread[subject]</a>";
$navtitle = $thread['subject'].' - ';下面插入:
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
$subjectcate = "";
$cates=explode("|",$forum[cates]);
if(count($cates)==1){
$subjectcate = $cate_must_scrīpt = $cate_must_alert = "";
}
else{
$i=count($cates);for($i = 0; $i < count($cates); $i++) {
$thecates1 = explode("_",$cates[$i]);if($i == 0){if($thecates1[0]=="on"){$cate_must_scrīpt="theform.cate.value == \"\"||";$cate_must_alert="专题分类亦为必选!";}else{$cate_must_scrīpt = $cate_must_alert ="";};$thecates1[0]="";$thecates1[1]="选择专题";};if($thecates1[0]==$thread[cate]){$subjectcate .= "<option value=\"$thecates1[0]\" selected >$thecates1[1]</option>";}else{
$subjectcate .= "<option value=\"$thecates1[0]\">$thecates1[1]</option>"; }
}
}
//=D50 Subject classification=Ver.5.0.0 by e_zailai=End// 第五步:include/editpost.inc.php 查找:
CODE:
$postinfo['subject'] = str_replace('"', '"', $postinfo['subject']);其后插入:
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
$postinfo['cate'] = dhtmlspecialchars($postinfo['cate']);
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//查找:
QUOTE:
/******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE Start******替换为:CODE:
$db->query("UPDATE {$tablepre}threads SET iconid='$iconid', typeid='$typeid', subject='$subject', readperm='$readperm', price='$price' $authoradd $polladd ".($auditstatuson && $audit == 1 ? ",displayorder='0', moderated='1'" : '')." WHERE tid='$tid'", 'UNBUFFERED');******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE End******/
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Change Start//
$db->query("UPDATE {$tablepre}threads SET iconid='$iconid', typeid='$typeid',cate='$cate', subject='$subject', readperm='$readperm', price='$price' $authoradd $polladd ".($auditstatuson && $audit == 1 ? ",displayorder='0', moderated='1'" : '')." WHERE tid='$tid'", 'UNBUFFERED');
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Change End//第六步:include/newthread.inc.php查找:
QUOTE:
/******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE Start******替换为:CODE:
$db->query("INSERT INTO {$tablepre}threads (fid, readperm, price, iconid, typeid, author, authorid, subject, dateline, lastpost, lastposter, displayorder, digest, blog, special, attachment, subscribed, moderated, supe_pushstatus)******=D50 Subject classification=Ver.5.0.0 by e_zailai=REMOVE End******/
VALUES ('$fid', '$readperm', '$price', '$iconid', '$typeid', '$author', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$author', '$displayorder', '$digest', '$blog', '$special', '$attachment', '$subscribed', '$moderated', '$supe_pushstatus')");
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Chanage Start//
$db->query("INSERT INTO {$tablepre}threads (fid, cate, readperm, price, iconid, typeid, author, authorid, subject, dateline, lastpost, lastposter, displayorder, digest, blog, special, attachment, subscribed, moderated, supe_pushstatus)
VALUES ('$fid', '$cate','$readperm', '$price', '$iconid', '$typeid', '$author', '$discuz_uid', '$subject', '$timestamp', '$timestamp', '$author', '$displayorder', '$digest', '$blog', '$special', '$attachment', '$subscribed', '$moderated', '$supe_pushstatus')");
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Chanage End//****第七步:post_newthread.htm查找
CODE:
<tr>
<td class="altbg1" width="20%"><span class="bold"><!--{if isset($activity) && $allowpostactivity}-->{lang activity_name}<!--{else}-->{lang subject}<!--{/if}--></span></td>
<td class="altbg2">$typeselect <input type="text" name="subject" id="subject" size="45" value="$subject" tabindex="3"></td>
</tr>在下面添加
CODE:
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//>
<!--{if !empty($subjectcate)}-->
<tr>
<td class="altbg1" width="20%">专题:</td>
<td class="altbg2"><select name=cate>$subjectcate </select> (请选择所属类别)</td>
</tr>
<!--{/if}-->
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=End//>查找:
CODE:
theform.subject.value == "" || message == ""其后添加:
CODE:
$cate_must_scrīpt查找:
CODE:
_message_isnull}其后添加:
CODE:
$cate_must_alert第八步:post_editpost.htm查找
CODE:
<tr>
<td class="altbg1" width="20%"><span class="bold"><!--{if isset($activity) && $allowpostactivity}-->{lang activity_name}<!--{else}-->{lang subject}<!--{/if}--></span></td>
<td class="altbg2">
<!--{if $isfirstpost}-->$typeselect<!--{/if}-->
<!--{if $thread['special'] == 3 && !$forum['ismoderator'] && $isfirstpost && $thread['replies'] > 0}-->
<input type="hidden" name="subject" id="subject" size="45" value="$postinfo[subject]" tabindex="3">$postinfo[subject]
<!--{else}-->
<input type="text" name="subject" id="subject" size="45" value="$postinfo[subject]" tabindex="3">
<!--{/if}-->
<input type="hidden" name="origsubject" value="$postinfo[subject]">
</td></tr>在下面添加
CODE:
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//>
<!--{if !empty($subjectcate)}-->
<tr>
<td class="ALTBG1" width="20%">专题:</td>
<td class="ALTBG2"><select name=cate>$subjectcate </select> (请选择所属类别)</td>
</tr>
<!--{/if}-->
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=End//>查找:
CODE:
message == "" && theform.subject.value == ""其前添加:
CODE:
$cate_must_scrīpt查找:
CODE:
_message_isnull}其后添加:
CODE:
$cate_must_alert第九步:forumdisplay.htm查找:
CODE:
<tr><td class="multi">$multipage</td>
<td align="right">
<!--{if $allowpost}--><a href="post.php?action=newthread&fid=$fid"><img src="{IMGDIR}/newtopic.gif" border="0"></a><!--{/if}-->
<!--{if $allowpostpoll}--><a href="post.php?action=newthread&fid=$fid&poll=yes"><img src="{IMGDIR}/poll.gif" border="0"></a><!--{/if}-->
</td></tr>其下面添加:
CODE:
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//>
<tr><td class="multi">$thecates</td></tr>
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=End//>查找:
CODE:
<tr><td colspan="4" class="header"><a href="member.php?action=credits&view=forum_post&fid=$fid" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0" /></a>{lang post_fastpost}</td></tr>
<tr>
<td width="18%" class="altbg1">其后添加:
CODE:
$subjectcate 查找:注意本代码有几个添加几个
CODE:
<a href="post.php?action=newthread&fid=$fid后面添加
CODE:
&cateid=$cateid查找:
CODE:
theform.subject.value == "" || theform.message.value == ""其后添加:
CODE:
$cate_must_scrīpt查找:
CODE:
_message_isnull}其后添加:
CODE:
$cate_must_alert========================标准安装结束====================================================批量选项安装开始========================
如果要安装批量专题分类:
第一步:topicadmin.php
查找:
CODE:
if(!$discuz_uid || !$forum['ismoderator']) {
showmessage('admin_nopermission', NULL, 'HALTED');
}其后插入:
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
$subjectcate = "";
$cates=explode("|",$forum[cates]);
$i=count($cates);
for($i = 0; $i < count($cates); $i++) {
$thecates1 = explode("_",$cates[$i]);
if($thecates1[0]==$thread[cate]){
$subjectcate .= "<option value=\"$thecates1[0]\" selected >$thecates1[1]</option>";
}else{
$subjectcate .= "<option value=\"$thecates1[0]\">$thecates1[1]</option>";
}
}
//=D50 Subject classification=Ver.5.0.0 by e_zailai=End// 查找:
CODE:
if(empty($moderate) || !is_array($moderate) || !in_array($operation, array('delete', 'move', 'copy', 'highlight', 'type', 'close', 'stick', 'digest', 'supe_push', 'removereward')) || (!$allowdelpost && $operation == 'delete') || (!$allowstickthread && $operation == 'stick'))替换:
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
if(empty($moderate) || !is_array($moderate) || !in_array($operation, array('delete', 'move', 'copy', 'highlight', 'type','cate', 'close', 'stick', 'digest', 'supe_push', 'removereward')) || (!$allowdelpost && $operation == 'delete') || (!$allowstickthread && $operation == 'stick'))
//=D50 Subject classification=Ver.5.0.0 by e_zailai=End// 查找:
CODE:
} elseif($operation == 'type') {
$typeselect = typeselect();其后插入
CODE:
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//>
} elseif($operation == 'cate') {
$cateselect = subjectcate;
}
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//>查找:
CODE:
} elseif($operation == 'type') {
if(!isset($forum['threadtypes']['types'][$typeid]) && !($typeid == 0 && !$forum['threadtypes']['required'])) {
showmessage('admin_move_invalid');
}
$db->query("UPDATE {$tablepre}threads SET typeid='$typeid', moderated='1' WHERE tid IN ($moderatetids)");
$modaction = 'TYP';其后插入
CODE:
//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//
} elseif($operation == 'cate'){
if(!isset($forum['cates'][$cate]) && !($cate == 0 && !$forum['cates']['required'])){
showmessage('admin_cate_invalid');
}
$db->query("UPDATE {$tablepre}threads SET cate='$cate' WHERE (tid IN ($moderatetids)) AND fid='$fid'");
$modaction = 'CTE';
showmessage('admin_succeed', "forumdisplay.php?fid=$fid&page=$page&cateid=$cate");
//=D50 Subject classification=Ver.5.0.0 by e_zailai=End//第二步:topicadmin_moderate.htm查找
共两处)
CODE:
<!--{elseif $operation == 'type'}-->
{lang admin_type}下面添加:
CODE:
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start// >
<!--{elseif $operation == 'cate'}-->
专题分类
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=End// >查找
CODE:
<!--{elseif $operation == 'type'}-->
<tr>
<td class="altbg1"><span class="bold">{lang admin_move_target}</span></td>
<td class="altbg2">$typeselect</td>
</tr>在其下面插入:
CODE:
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start// >
<!--{elseif $operation =='cate'}-->
<tr>
<td class="ALTBG1" width="21%">目标类别</td>
<td class="ALTBG2">
<select name="cate">$subjectcate</select>
</tr>
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=End// >第三步:forumdisplay.htm查找:
CODE:
<input type="button" class="lightbutton" ōnclick="document.moderate.operation.value = 'move';document.moderate.submit()" value="{lang admin_move}">其下添加:
CODE:
<!//=D50 Subject classification=Ver.5.0.0 by e_zailai=Start//>
<input type="button" class="lightbutton" ōnclick="document.moderate.operation.value = 'cate';document.moderate.submit()" value="专题分类">========================批量选项安装结束========================如需修改完整版请到本人论坛去下载!
[ 本帖最后由 e_zailai 于 2007-1-18 18:24 编辑 ]

1.jpg

发帖.jpg

后台管理2.gif
相关阅读:
- 帖子上方滚动显示新帖(CACHE)(向上滚动带停顿) (chinaoy, 2007-1-06)
- 仿5d6d访问推广 (童虎, 2007-1-09)
- 版主总版管理员进入系统设置的密码与论坛分开 for dz4.x 5.0 (e_zailai, 2007-1-11)
- 联盟论坛增加是否显示选项 for Discuz! 5.0 by e_zailai (e_zailai, 2007-1-11)
- 超简单首页六格,带后台控制FOR DZ5.0正式版 (e_zailai, 2007-1-13)
- Discuz! 论坛速度测试系统(For dz4.x 5.0) (e_zailai, 2007-1-13)
- 打工赚钱(支持JS版) For DZ5.0正式版 (chinaoy, 2007-1-15)
- Discuz! 5.0正式版本插件自动导入下拉菜单 (俊客, 2007-1-17)
- 语音朗读本贴[中英文都可] For D5 (俊客, 2007-1-17)
TAG: 插件
