使用方法:到后台 “数据库” 的 “数据库升级” 然后把需要升级的语句贴在该空格里,过后按 “提交” 即可。cdb_ 是默认的表名前缀,如果不同大家可以自行修改。
====================================================
启用全局置顶
UPDATE `cdb_settings` SET `value` = '1' WHERE `variable` = 'globalstick' LIMIT 1 ;
启用页面 Gzip 压缩
UPDATE `cdb_settings` SET `value` = '1' WHERE `variable` = 'gzipcompress' LIMIT 1;
启用 RSS
UPDATE `cdb_settings` SET `value` = '1' WHERE `variable` = 'rssstatus' LIMIT 1;
启用 URL 静态化 1 (Discuz! Archiver 静态化)
UPDATE `cdb_settings` SET `value` = '1' WHERE `variable` = 'rewritestatus' LIMIT 1;
启用 URL 静态化 2 (普通页面静态化)
UPDATE `cdb_settings` SET `value` = '2' WHERE `variable` = 'rewritestatus' LIMIT 1;
启用 URL 静态化 3 (Archiver 和普通页面均静态化)
UPDATE `cdb_settings` SET `value` = '3' WHERE `variable` = 'rewritestatus' LIMIT 1;
启用生日显示与邮件祝福 1 (仅在首页显示过生日会员)
UPDATE `cdb_settings` SET `value` = '1' WHERE `variable` = 'bdaystatus' LIMIT 1;
启用生日显示与邮件祝福 2 (仅向过生日会员发送邮件祝福)
UPDATE `cdb_settings` SET `value` = '2' WHERE `variable` = 'bdaystatus' LIMIT 1;
启用生日显示与邮件祝福 3 (显示并发送邮件祝福)
UPDATE `cdb_settings` SET `value` = '3' WHERE `variable` = 'bdaystatus' LIMIT 1;
启用允许查看会员列表
UPDATE `cdb_settings` SET `value` = '1' WHERE `variable` = 'memliststatus' LIMIT 1;
启用首页显示论坛的下级子论坛
UPDATE `cdb_settings` SET `value` = '1' WHERE `variable` = 'subforumsindex' LIMIT 1;
启用显示风格下拉菜单
UPDATE `cdb_settings` SET `value` = '1' WHERE `variable` = 'stylejump' LIMIT 1;
关闭隐藏无权访问的论坛
UPDATE `cdb_settings` SET `value` = '0' WHERE `variable` = 'hideprivate' LIMIT 1;
启用主题回收站
UPDATE `cdb_forums` SET `recyclebin` = '1';
启用允许加入 Blog
UPDATE `cdb_forums` SET `allowblog` = '1';
启用允许使用 html 代码
UPDATE `cdb_forums` SET `allowhtml` = '1';
启用允许使用 Discuz! 代码
UPDATE `cdb_forums` SET `allowbbcode` = '1';
启用允许使用 [img] 代码
UPDATE `cdb_forums` SET `allowimgcode` = '1';
启用允许使用 Smilies
UPDATE `cdb_forums` SET `allowsmilies` = '1';
启用启用内容干扰码
UPDATE `cdb_forums` SET `jammer` = '1';
启用允许匿名发贴
UPDATE `cdb_forums` SET `allowanonymous` = '1';
启用允许版主修改本论坛规则 1 (允许版主修改,但不支持 html 代码)
UPDATE `cdb_forums` SET `alloweditrules` = '1';
启用允许版主修改本论坛规则 2 (允许版主修改,并支持 html 代码)
UPDATE `cdb_forums` SET `alloweditrules` = '2';
[ 本帖最后由 agfx 于 2006-8-21 10:59 编辑 ]