0
if (subject.value.length < 2 || subject.value.length > 80) {
alert("您输入的标题长度不符合要求(2~80),请检查确认。");
把80全部改成255(最大只能是255)
2 \admin\admin_announcements.php 查找
if($subjectlen < 2 || $subjectlen > 80) {
showmessage('space_suject_length_error');
80改为255
3 \admin\admin_spacenews.php 查找
if(strlen($_POST['subject']) < 2 || strlen($_POST['subject']) > 80) {
showmessage('space_suject_length_error');
80改为255
type="text" id="subject" onblur="relatekw();" size="60" maxlength="80"
80改为255
onkeyup="textCounter(this, \'maxlimit\', 80);" /> 80改为255
document.getElementById(\'subject\');textCounter(theboj, \'maxlimit\', 80);
80改为255
4 \function\model.func.php 查找
//检查输入
if(strlen($_POST['subject']) < 2 || strlen($_POST['subject']) > 80) {
showmessage('space_suject_length_error');
80改为255
5 \language\admincp.lang.php
当前可再写长度80字节,最多80个字节
80改为255
6 \language\admincp_message.lang.php
'space_suject_length_error' => '您输入的标题长度不符合要求(2~80个字符)'
80改为255
7 \language\model.lang.php
'space_suject_length_error' => '您输入的标题长度不符合要求,标题长度应该为2~80个字符',
80改为255
8 更改数据库
文章发布后,在数据库的xxx_spaceitems表格中,(XXX是你的数据库的前缀),看他的结构,其中subject CHAR(80) 使用SQL命令:ALTER TABLE `supe_spaceitems` CHANGE `subject` `subject` CHAR(255) NOT NULL 就可以把80改成255了
参考 http://www.discuz.net/viewthread.php?tid=1162568 来改的。
Posted on 07:15:00 by Freddy and filed under
CMS技巧
1 打开\include\js\admin.js文件,查找:if (subject.value.length < 2 || subject.value.length > 80) {
alert("您输入的标题长度不符合要求(2~80),请检查确认。");
把80全部改成255(最大只能是255)
2 \admin\admin_announcements.php 查找
if($subjectlen < 2 || $subjectlen > 80) {
showmessage('space_suject_length_error');
80改为255
3 \admin\admin_spacenews.php 查找
if(strlen($_POST['subject']) < 2 || strlen($_POST['subject']) > 80) {
showmessage('space_suject_length_error');
80改为255
type="text" id="subject" onblur="relatekw();" size="60" maxlength="80"
80改为255
onkeyup="textCounter(this, \'maxlimit\', 80);" /> 80改为255
document.getElementById(\'subject\');textCounter(theboj, \'maxlimit\', 80);
80改为255
4 \function\model.func.php 查找
//检查输入
if(strlen($_POST['subject']) < 2 || strlen($_POST['subject']) > 80) {
showmessage('space_suject_length_error');
80改为255
5 \language\admincp.lang.php
当前可再写长度80字节,最多80个字节
80改为255
6 \language\admincp_message.lang.php
'space_suject_length_error' => '您输入的标题长度不符合要求(2~80个字符)'
80改为255
7 \language\model.lang.php
'space_suject_length_error' => '您输入的标题长度不符合要求,标题长度应该为2~80个字符',
80改为255
8 更改数据库
文章发布后,在数据库的xxx_spaceitems表格中,(XXX是你的数据库的前缀),看他的结构,其中subject CHAR(80) 使用SQL命令:ALTER TABLE `supe_spaceitems` CHANGE `subject` `subject` CHAR(255) NOT NULL 就可以把80改成255了
参考 http://www.discuz.net/viewthread.php?tid=1162568 来改的。
0
Posted on 01:45:00 by Freddy and filed under
CMS技巧
打开默认模板的CSS:common.css 第8行* { margin:0; padding:0; word-break:break-all; } 把其中的word-break:break-all;去掉就可以了 呵呵
0
网站目录如下
/ss -------supesite
/uc --------ucenter
/html -------静态目录
index.html---首页文件
首先ss后台设置:html存放目录为../html,即网站根目录下的/html目录
然后html的url地址为:http://你的网站地址/html
打开ss/index.php 查找$_SHTML['action'] = 'index'; 更改为$_SHTML['../action'] = 'index';
以上方法既可以将ss安装在子目录,避免杂乱,又可以将index.html生成在根目录,而其他静态文件在html目录,一切如你所愿 http://www.discuz.net/thread-1241123-1-1.html
Posted on 05:53:00 by Freddy and filed under
CMS技巧
用本方法可以将ss安装在子目录(比如ss),而不是网站根目录网站目录如下
/ss -------supesite
/uc --------ucenter
/html -------静态目录
index.html---首页文件
首先ss后台设置:html存放目录为../html,即网站根目录下的/html目录
然后html的url地址为:http://你的网站地址/html
打开ss/index.php 查找$_SHTML['action'] = 'index'; 更改为$_SHTML['../action'] = 'index';
以上方法既可以将ss安装在子目录,避免杂乱,又可以将index.html生成在根目录,而其他静态文件在html目录,一切如你所愿 http://www.discuz.net/thread-1241123-1-1.html
0
打开根目录的index.php
找到:
$_SHTML['action'] = 'index';
改成:
$_SHTML['../action'] = 'index';
保存即可
也就是在action前加个父路径../
重要说明:此方法需要你在空间上设定默认首页为:第一是index.php,接下来是index.html
http://www.discuz.net/thread-1241064-1-1.html
Posted on 05:50:00 by Freddy and filed under
CMS技巧
修改方法如下,只需要加两符号打开根目录的index.php
找到:
$_SHTML['action'] = 'index';
改成:
$_SHTML['../action'] = 'index';
保存即可
也就是在action前加个父路径../
重要说明:此方法需要你在空间上设定默认首页为:第一是index.php,接下来是index.html
http://www.discuz.net/thread-1241064-1-1.html
0
#date('m.d',$value['dateline'])#$value[subject]
把这个 #date('m.d',$value['dateline']) 删了
Posted on 23:44:00 by Freddy and filed under
CMS技巧
在模板里面找到代码#date('m.d',$value['dateline'])#$value[subject]
把这个 #date('m.d',$value['dateline']) 删了
0

在此为大家介绍模块代码里常见几个参数的含义,如果有其他的参数您不清楚什么含义的,可以到 SupeSite/X-Space 安装使用区发帖询问。
order ------------------------------以什么方式排序,常见的排序方式如下几种:
displayorder --------------以后台设置的显示顺序排序
views DESC ---------------- 以查看数递减的方式排序
replies DESC -------------- 以回复数递减的方式排序
posts DESC ---------------- 以帖子数递减的方式排序
m.posts DESC -------------- 以会员贴子数递减的方式排序
m.oltime DESC ------------- 以会员在线时间递减的方式排序
u.dateline DESC ----------- 以会员注册时间递减的方式排序
i.goodrate DESC ----------- 以信息好评数递减的方式排序
u.spaceallnum DESC -------- 以会员个人空间的信息总数递减排序
u.spaceblognum DESC ------- 以会员个人空间的日志总数递减排序
g.usernum DESC ------------ 以圈子会员数递减的方式排序
g.lastpost DESC ----------- 以圈子最后更新时间递减的方式排序
limit ------------------------------ 显示多少条信息
0,100 --------------------- 显示100条
dateline --------------------------- 发布时间范围,以秒(s)为单位
2592000 ------------------- 2592000秒,即:3天
showdetail ------------------------- 是否显示信息摘要
1 ------------------------- 1为显示(0为不显示)
messagelen ------------------------- 摘要显示的长度,以字节数为单位
160 ----------------------- 显示160个字节信息
subjectlen ------------------------- 主题的显示长度,以字节数为单位
40 ------------------------ 显示40个字节信息
type ------------------------------- 设置信息的类型
notype --------------------- 设置信息的类型
0 ------------------------ 日志(1 为不限制信息类型)
forum --------------------- 二级版块的信息
goods --------------------- 商品的信息
news ---------------------- 资讯的信息
video --------------------- 影音的信息
filetype --------------------------- 设置附件的类型
image --------------------- 图片附件
lastpost --------------------------- 最后回复时间范围,以秒(s)为单位
2592000 ------------------- 2592000秒,即:3天
subjectdot ------------------------- 显示主题时,如果主题长度大于显示长度,末尾是否加点
1 ------------------------- 末尾加点(0为末尾不加点)
messagedot ------------------------- 显示摘要时,如果摘要长度大于显示长度,末尾是否加点
1 ------------------------- 末尾加点(0为末尾不加点)
showattach ------------------------- 是否显示附件信息
1 ------------------------- 显示附件信息
haveattach ------------------------- 是否必须包含附件
1 ------------------------- 必须包含附件
isstar ----------------------------- 空间之星
1 ------------------------- 是
perpage ---------------------------- 每页显示的信息条数
15 ------------------------ 显示15条
regdate ---------------------------- 注册时间范围,以秒(s)为单位
2592000 ------------------- 2592000秒,即:3天
给大家一个技巧:一般可以通过英文意思来判断参数的含义,例如 subjectlen,是 subject length,即“主题长度”。
SupeSite7.0 beta1默认模板各页面调用内容说明 参看:http://faq.comsenz.com/viewnews-508
Posted on 23:18:00 by Freddy and filed under
CMS技巧
在 SupeSite的模板里,可以看到如下的模块代码:
在此为大家介绍模块代码里常见几个参数的含义,如果有其他的参数您不清楚什么含义的,可以到 SupeSite/X-Space 安装使用区发帖询问。
order ------------------------------以什么方式排序,常见的排序方式如下几种:
displayorder --------------以后台设置的显示顺序排序
views DESC ---------------- 以查看数递减的方式排序
replies DESC -------------- 以回复数递减的方式排序
posts DESC ---------------- 以帖子数递减的方式排序
m.posts DESC -------------- 以会员贴子数递减的方式排序
m.oltime DESC ------------- 以会员在线时间递减的方式排序
u.dateline DESC ----------- 以会员注册时间递减的方式排序
i.goodrate DESC ----------- 以信息好评数递减的方式排序
u.spaceallnum DESC -------- 以会员个人空间的信息总数递减排序
u.spaceblognum DESC ------- 以会员个人空间的日志总数递减排序
g.usernum DESC ------------ 以圈子会员数递减的方式排序
g.lastpost DESC ----------- 以圈子最后更新时间递减的方式排序
limit ------------------------------ 显示多少条信息
0,100 --------------------- 显示100条
dateline --------------------------- 发布时间范围,以秒(s)为单位
2592000 ------------------- 2592000秒,即:3天
showdetail ------------------------- 是否显示信息摘要
1 ------------------------- 1为显示(0为不显示)
messagelen ------------------------- 摘要显示的长度,以字节数为单位
160 ----------------------- 显示160个字节信息
subjectlen ------------------------- 主题的显示长度,以字节数为单位
40 ------------------------ 显示40个字节信息
type ------------------------------- 设置信息的类型
notype --------------------- 设置信息的类型
0 ------------------------ 日志(1 为不限制信息类型)
forum --------------------- 二级版块的信息
goods --------------------- 商品的信息
news ---------------------- 资讯的信息
video --------------------- 影音的信息
filetype --------------------------- 设置附件的类型
image --------------------- 图片附件
lastpost --------------------------- 最后回复时间范围,以秒(s)为单位
2592000 ------------------- 2592000秒,即:3天
subjectdot ------------------------- 显示主题时,如果主题长度大于显示长度,末尾是否加点
1 ------------------------- 末尾加点(0为末尾不加点)
messagedot ------------------------- 显示摘要时,如果摘要长度大于显示长度,末尾是否加点
1 ------------------------- 末尾加点(0为末尾不加点)
showattach ------------------------- 是否显示附件信息
1 ------------------------- 显示附件信息
haveattach ------------------------- 是否必须包含附件
1 ------------------------- 必须包含附件
isstar ----------------------------- 空间之星
1 ------------------------- 是
perpage ---------------------------- 每页显示的信息条数
15 ------------------------ 显示15条
regdate ---------------------------- 注册时间范围,以秒(s)为单位
2592000 ------------------- 2592000秒,即:3天
给大家一个技巧:一般可以通过英文意思来判断参数的含义,例如 subjectlen,是 subject length,即“主题长度”。
SupeSite7.0 beta1默认模板各页面调用内容说明 参看:http://faq.comsenz.com/viewnews-508
0
修改\control\admin\seccode.php这个文件:
setcookie('uc_secc', $this->authcode($seccode."\t".time(), 'ENCODE'));
@header("Expires: -1"); @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE); @header("Pragma: no-cache");
include_once UC_ROOT.'lib/seccode.class.php'; $code = new seccode(); $code->code = $seccode; $code->type = 0; $code->width = 70; $code->height = 21; $code->background = 0; $code->adulterate = 1; $code->ttf = 1; ======>> 这个地方改成 0,就OK了 $code->angle = 0; $code->color = 1; $code->size = 0; $code->shadow = 1; $code->animator = 0; $code->fontpath = UC_ROOT.'images/fonts/'; $code->datapath = UC_ROOT.'images/'; $code->includepath = ''; $code->display(); }
}
Posted on 08:25:00 by Freddy and filed under
CMS技巧
安装UCenter后 验证码老是出不来,根本就看不清楚,无法登陆进去,解决方法:修改\control\admin\seccode.php这个文件:
setcookie('uc_secc', $this->authcode($seccode."\t".time(), 'ENCODE'));
@header("Expires: -1"); @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE); @header("Pragma: no-cache");
include_once UC_ROOT.'lib/seccode.class.php'; $code = new seccode(); $code->code = $seccode; $code->type = 0; $code->width = 70; $code->height = 21; $code->background = 0; $code->adulterate = 1; $code->ttf = 1; ======>> 这个地方改成 0,就OK了 $code->angle = 0; $code->color = 1; $code->size = 0; $code->shadow = 1; $code->animator = 0; $code->fontpath = UC_ROOT.'images/fonts/'; $code->datapath = UC_ROOT.'images/'; $code->includepath = ''; $code->display(); }
}