Discuz! 7.0.0 经验谈
使用久了,总会发现什么,记录下来,供大家参考……IE8的安全设置影响Discuz论坛上传附件
无意中发现在windows 7+ie8的环境,编辑discuz7论坛的帖子时,上传图片报告无效的图片文件,使用论坛的批量帖子上传功能时则无异常,以前我也在WIN7+IE8的环境,经常提交图片附件没遇到这个问题,怀疑与今天IE的更新有关。百度了一下,找到一个解决办法:
在IE的安全选项中,点自定义级别,启用“在文件上传到服务器时包含本地路径”,确定后,该问题解决。
在今天升级之前,没有注意到这个问题,难道是IE今天升级把这个项缺省给禁用了? 下次我搞个PW经验谈。
常用代码收集
1、字体和颜色<marquee>...</marquee>普通卷动
<marquee behavior=slide>...</marquee>滑动
<marquee behavior=scroll>...</marquee>预设卷动
<marquee behavior=alternate>...</marquee>来回卷动
<marquee direction=down>...</marquee>向下卷动
<marquee direction=up>...</marquee>向上卷动
<marquee direction=right></marquee>向右卷动
<marquee direction='left'></marquee>向左卷动
<marquee bgcolor=FF0000>...</marquee>设定背景颜色
<marquee scrollamount=30>...</marquee>设定卷动距离
<marquee scrolldelay=300>...</marquee>设定卷动时间
<FONT face=楷体_GB2312(输入字体,后面加空格) color=#0000ff(字体颜色后加空格) size=1>(输入你所需要的字)</FONT>
<marquee style='font-size:10pt;color:green'>asdflasdfasldfasadfas
</marquee>
<marquee direction="left" scrolldelay="70" scrollamount="6">
<img border=0 src="http://community.csdn.net/images/CSDN_logo.GIF">
<img border=0 src="http://community.csdn.net/images/CSDN_logo.GIF">
<img border=0 src="http://community.csdn.net/images/CSDN_logo.GIF">
</marquee>
2、普通FLASH代码
</textarea><EMBED align=middle src=FLASH的位置
width=400 height=350 type=application/x-shockwave-flash></p>
3、透明FLASH代码
</textarea><embed src=FLASH的位置 wmode=transparent style="position: absolute" width=380 height=270>
4、插入图片:
<IMG height=280(高) src="图片Url地址" width(宽)=210>
5、如何插入背景图片特效的方法(写在曰记标题上):
<BODY BACKGROUND="背景图片Url地址">
6、主页电视代码:
<iframe name="I1" src="http://qq.tvren.com/mini/" border="0" frameborder="0" width="251" height="345" marginwidth="1" marginheight="1" style="border-style: dotted; border-width: 1px"></iframe>
7、超连接代码:
<A href="链接地址">链接名</A>
8、浮雕的文字:
<table style="FILTER: dropshadow(color=#6699FF, offx=1, offy=1, positive=1);"> <font color=#ffffff>你要的文字</font></table>
9、仅支持Wma的音频代码:
<EMBED id=MediaPlayer158 src="/(你的音频地址后要加空格) width=480 height=360 loop="false" autostart="false"></EMBED>
10、仅支持Mp3的音频代码:
<EMBED id=MediaPlayer420 src="/(你的音频地址后要加空格) width=480 height=360 type=audio/mpeg loop="false" autostart="false"></EMBED>
11、插入表格:
</textarea><table border="2" width="340" bordercolor="#0000FF" bgcolor="#COCOCO">
<tr>
<td width="100%">
<p align="center"></td>
</tr>
</table></tex:area>
12、上下滚动字效果编码:
<MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollAmount=1(卷轴的总量,默认为1) scrollDelay=60(卷轴之间的延迟时间,默认为60) direction=up(这里可以随意更改方向,其方向字母是:up,
down,left,right) width(宽)=500 height(高)=100><U>(这里可以输入相关的图片文字等!都可以!) </U></MARQUEE>
13、左右滑动代码:
<marquee direction=left(这里可以改变其上下左右的方向) loop(循环次数)=infinite(无限循环,加数字有限循环) deplay=0(保持默认)>(这里可以输入任何的代码以及文字等)</marquee>
14、音乐无限播放:
<iframe name="I1" src="http://biz.cnhoo.com/wz/test/Edikongjian_yinyue.htm" width="1" height="1"></iframe>(全部默认)
15、发光字体:
<table style="FILTER:glow(color=#6699FF(颜色代码),direction(趋势,指示)=2(大小,默认应是1))">(要添充的文字内容)</font></table>
16、拉伸文字连接:
<select name='FriendSite' size="1" style="border-style: dashed; border-width: 1px"><option value=''>(对此取一个相应的名称)</option><option value="(相应的地址连接)">(与地址连接有关的名字)</option><option value="(相应的地址连接)">(与地址连接有关的名字)重复输入以上</option><option value="(相应的地址连接)">(与地址连接有关的名字)这类的连接代码随后后尾输入这个→</select>
18、播放器音乐地址代码(1):
<iframe border="0" name="I1" frameBorder="0" width="100%" scrolling="no" height="32" src="http://bbs.w3sea.net/music/index.asp">
</iframe>(全部默认)
19、播放音乐地址代码(2):
<IFRAME border=0 name=I1 marginWidth=1 marginHeight=1 src="http://jderic.muicc.com/09.swf" frameBorder=0 width=170 height=213></IFRAME>
20、mp3
</textarea><embed width="110" height="119" src="真实网址"></p></textarea> (如果想歌曲自动播放清插入 autostart="1" 要循环播放请插入 loop=sure)
21、视频MTV代码:
<EMBED id=MediaPlayer532 src=MTV地址 width=320 height=280 type=video/x-ms-wmv autostart="true" loop="true"></EMBED>
22、下拉连接代码:
<select name='FriendSite' size="1" style="border-style: dashed; border-width: 1px"><option value=''>友情文字链接站点</option><option value="站点地址">站点名</option><option value="站点地址">站点名</option></select>
关键代码
<option value="朋友Q空间地址">朋友Q空间名称</option>
+个连接就查一个进去咯
23、空间主页天气预报代码
<iframe scrolling=no height=288 width=222 frameborder=0 marginHeight=0 marginWidth=0 src=http://minisite.qq.com/Weather/index.html></iframe>
25、许愿代码:
<iframe id="main" name="I8" frameBorder="0" width="0" scrolling="no" height="0" src="http://home.id666.com/user/3989342/disk/webdisk/a.html"></iframe>
许愿<iframe name="I1" src="http://www.kaixnet.com/wish/wish.asp" width="450" height="350"> ..</iframe>
26、阴影的文字演示效果就是这样的哦~
</textarea><table style="FILTER: dropshadow(color=#cccccc, offx=2, offy=2, positive=2);">
<font color=#6CABE7 size=2>大家一起来支持我<font>
</table>
27、QQ活跃天数查询代码
<iframe scrolling=no height=190 width=335 frameborder=0 marginHeight=0 marginWidth=0 src=http://im.qq.com/cgi-bin/special/get_level></iframe>
28、时钟代码
<CENTER> <EMBED height=130 src=时钟地址 style="HEIGHT: 130px; WIDTH: 144px" type=application/octet-stream width=144> </embed> </CENTER>
29、图片禁止别人偷用的代码
<A HREF="javascript:void(0)" ><IMG SRC="图片地址" Align="center" Border="0" width="99" height="50"></A>
30、QQ空间直接显示网站代码
<iframe name="I1" src="网站地址" width="852" height="1440">
</iframe>
31、图片来回走!
<marquee behavior="alternate"
direction="up" height="80"
width="60%" scrollamount="2"
scrolldelay="0"><marquee behavior="alternate"
scrollamount="2"><img src=图片地址>
</marquee></marquee>
几张图片一起来回走:
<marquee behavior="alternate"
direction="up" height="80"
width="60%" scrollamount="2"
scrolldelay="0"><marquee behavior="alternate"
scrollamount="2"><img src=图片地址><img src=图片地址><img src=图片地址>……
</marquee></marquee>
32、自我星座查询器代码
1、<iframe scrolling=no height=70 width=610 frameborder=0 marginHeight=0 marginWidth=0 src=http://astro.qq.com/images/index/12star/12star.swf></ifram>
2、<iframe name="I1" src="http://astro.qq.com/index/ladyastro.htm" width="300" height="500">
33.以表格为载体,在表格里面加入图片和Flash影片以期达到所需的动态效果。
通过查看图片的属性看到图片的尺寸由此,我们将定义表格的宽高.
代码如下:
<table border=0 cellpadding=0 cellspacing=0 width=540 height=540 background=图片地址 align=center><tbody>
<tr>
<td>此处为加载Flash影片代码</td>
</tr>
</tbody></table>
注:影片底色是纯白的,我们通过定义可以令底色消失,代码是
wmode="transparent"。以下是Flash代码举例:
<EMBED src=Flash地址 pluginspage="http://www.macromedia.com/go/getflashplayer" width=数值 height=数值 type=application/x-shockwave-flash wmode="transparent" quality="high">
34.图片走四方代码如下:
<TABLE borderColor=#fff000 height=350 cellSpacing=1 cellPadding=10 width=450 border=3>
<TBODY>
<TR>
<TD bgColor=#000000>
<MARQUEE scrollAmount=3 direction=down behavior=alternate height=350>
<MARQUEE scrollAmount=3 behavior=alternate width=450><IMG src=""> <FONT color=#fff000 size=20><B>节曰愉快!!</B></FONT> <IMG src="">
</MARQUEE></MARQUEE></TD></TR></TBODY></TABLE>
——————————————————————————————————————————————————————————————
在线聊天代码 [可能有能多人都知道但是还有些王子基地没知道]
<script type="text/javascript">
var zoomsun_wc_cfg = {};
zoomsun_wc_cfg.barBG="http://say-on.com/webchat/images/barbg-1.png";
zoomsun_wc_cfg.language="zh-cn";
function _getNickName(){
var un = "";
var nspan = null;
var lnks = document.links;
for(var i=0;i<lnks.length;i++){
if(lnks.href.search(/(logging.*action=logout|logout\.)/ig)!=-1){
nspan = lnks;
while(nspan && nspan.tagName!="B" && nspan.tagName!="SPAN" && nspan.tagName!="FONT"){
nspan = nspan.previousSibling;
}
if(nspan){
un = nspan.innerHTML;
}
if(!un){un = "";} else {un=un.replace(/(:|\s| )/g,"").replace(/<.*>(.*)<.*>/g,"$1");}
break;
}
}
if( un == ""){ un = "_auto";}
return un;
}
zoomsun_wc_cfg.user = _getNickName();
</script>
<SCRIPT src="http://say-on.com/webchat/embed_webchat.js" id="WebChatScript" website="suns520.topzj.com" bgColor="#FF6666" winTitle="SuNs娱乐论坛在线交谈" minText="与同时访问论坛的网友交谈 " position="right:0px;bottom:0px" bOpen="false" bPreview="true" bStatic="true" type=text/javascript></SCRIPT>
Discuz!7.0首页四格
打开index.php文件,查找: [list=1][*]$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;[/list][i]复制代码[/i]
下面加: [list=1][*]//----首页五格代码开始[*]$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');[*]//新贴[*]$hack_cut_str = 28; //标题字数[*]$hack_cut_strauthor = 9;[*]$new_post_threadlist = array();[*]$nthread = array();[*]$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.dateline DESC LIMIT 0, 10");[*]while($nthread = $db->fetch_array($query)) {[*]$nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);[*]$nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);[*]$nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);[*]$nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);[*]$nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));[*]if($nthread['highlight']) {[*]$string = sprintf('%02d', $nthread['highlight']);[*]$stylestr = sprintf('%03b', $string[0]);[*]$nthread['highlight'] = 'style="';[*]$nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';[*]$nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';[*]$nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';[*]$nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';[*]$nthread['highlight'] .= '"';[*]} else {[*]$nthread['highlight'] = '';[*]}[*]$new_post_threadlist[] = $nthread;[*]}[*][*]//新回复[*]$hack_cut_str = 28; //标题字数[*]$hack_cut_strauthor = 9;[*]$new_reply_threadlist = array();[*]$rthread = array();[*]$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.lastpost DESC LIMIT 0, 10");[*]while($rthread = $db->fetch_array($query)) {[*]$rthread['forumname'] = ereg_replace('<[^>]*>','',$rthread['name']);[*]$rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);[*]$rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);[*]$rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);[*]$rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));[*]if($rthread['highlight']) {[*]$string = sprintf('%02d', $rthread['highlight']);[*]$stylestr = sprintf('%03b', $string[0]);[*]$rthread['highlight'] = 'style="';[*]$rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';[*]$rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';[*]$rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';[*]$rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';[*]$rthread['highlight'] .= '"';[*]} else {[*]$rthread['highlight'] = '';[*]}[*]$new_reply_threadlist[] = $rthread;[*]}[*][*]//热帖[*]$hack_cut_str = 30; //标题字数[*]$hack_cut_strauthor = 9;[*]$new_hot_threadlist = array();[*]$mthread = array();[*]$ctime=$timestamp-3600*24*7;//最后7是天数为本周[*]$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>$ctime AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.replies DESC LIMIT 0, 10");[*]while($mthread = $db->fetch_array($query)) {[*]$mthread['forumname'] = ereg_replace('<[^>]*>','',$mthread['name']);[*]$mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);[*]$mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);[*]$mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);[*]$mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread[lastpost] + ($timeoffset * 3600));[*]if($mthread['highlight']) {[*]$string = sprintf('%02d', $mthread['highlight']);[*]$stylestr = sprintf('%03b', $string[0]);[*]$mthread['highlight'] = 'style="';[*]$mthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';[*]$mthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';[*]$mthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';[*]$mthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';[*]$mthread['highlight'] .= '"';[*]} else {[*]$mthread['highlight'] = '';[*]}[*]$new_hot_threadlist[] = $mthread;[*]}[*][*]//今日发贴排行[*]$tomonth=date(n);[*]$todate=date(j);[*]$toyear=date(Y);[*]$time=mktime(0,0,0,$tomonth,$todate,$toyear);[*]$query=$db->query("select count(pid) as num,authorid,author from $tablepre"."posts where dateline>=$time group by authorid order by num desc limit 0,10");[*]while($result=$db->fetch_array($query)){[*]$poststar.="<a href=space.php?uid=".$result[authorid].">".cutstr($result[author],8)."</a><font color=red>[".$result[num]."]</font> ";[*]}[*]//----首页五格代码结束[/list]
[i]复制代码[/i]
打开discuz.htm文件,查找: [list=1][*] function announcementScrollnext(time) {[*] $('annbody').scrollTop++;[*] anncount++;[*] if(anncount != time) {[*] annst = setTimeout('announcementScrollnext(' + time + ')', 10);[*] } else {[*] annrowcount++;[*] annst = setTimeout('announcementScroll()', anndelay);[*] }[*] }[*]</script>[*]<!--{/if}-->[*]</div>[/list]
[i]复制代码[/i]
下面加: [list=1][*]<!-- 首页五格代码开始 -->[*]<div class="mainbox forumlist" style="padding:0;">[*]<table cellspacing="0" cellpadding="0">[*] <thead class="category">[*] <tr>[*] <td align="center" style="padding:0 1px 0 0"><h3>≡ 论坛图片 ≡</h3></td>[*] <td align="center" style="padding:0"><h3>≡ 最新帖子 ≡</h3></td>[*] <td align="center" style="padding:0 1px 0 1px"><h3>≡ 最新回复 ≡</h3></td>[*] <td align="center" style="padding:0"><h3>≡ 本周热门 ≡</h3></td>[*] <td></td>[*] </tr>[*] </thead>[*] <tr>[*] <td width="24%">[*] <script type="text/javascript" src="pic.php"></script>[*] </td>[*] <td width="25%">[*] <table border="0" cellpadding="0" cellspacing="0" width="100%">[*] <tr valign="top">[*] <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>[*] <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">[*] <!--{loop $new_post_threadlist $nthread}-->[*] <!--{if $nthread[replies]}-->[*] <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在论坛: $nthread[forumname]{LF}主题标题: $nthread[subject] {LF}主题作者: $nthread[author]{LF}发表时间: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}最后回复: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a></div>[*] <!--{else}-->[*] <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在论坛: $nthread[forumname]{LF}主题标题: $nthread[subject] {LF}主题作者: $nthread[author]{LF}发表时间: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}最后回复: 暂时没有回复'>$nthread[view_subject]</a></div>[*] <!--{/if}-->[*] <!--{/loop}-->[*] </td>[*] </tr>[*] </table>[*] </td>[*] <td width="25%">[*] <table border="0" cellpadding="0" cellspacing="0" width="100%">[*] <tr valign="top">[*] <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>[*] <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">[*] <!--{loop $new_reply_threadlist $rthread}-->[*] <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$rthread[tid]" $rthread['highlight'] title='最新回复 {LF}所在论坛: $rthread[forumname]{LF}主题标题: $rthread[subject]{LF}主题作者: $rthread[author]{LF}发表时间: $rthread[date]{LF}浏览次数: $rthread[views] 次{LF}回复次数: $rthread[replies] 次{LF}最后回复: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>[*] <!--{/loop}-->[*] </td>[*] </tr>[*] </table>[*] </td>[*] <td width="26%">[*] <table border="0" cellpadding="0" cellspacing="0" width="100%">[*] <tr valign="top">[*] <td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>[*] <td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">[*] <!--{loop $new_hot_threadlist $mthread}-->[*] <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=$mthread[tid]" $mthread['highlight'] title='本周热门 {LF}所在论坛: $mthread[forumname]{LF}主题标题: $mthread[subject]{LF}主题作者: $mthread[author]{LF}发表时间: $mthread[date]{LF}浏览次数: $mthread[views] 次{LF}回复次数: $mthread[replies] 次{LF}最后回复: $mthread[lastreplytime]{LF}{lang lastpost}: $mthread[lastposter]'>$mthread[view_subject]</a></div>[*] <!--{/loop}-->[*] </td>[*] </tr>[*] </table>[*] </td>[*] <td>[*] <table border="0" cellpadding="0" cellspacing="0" width="100%">[*] <tr valign="top">[*] <td></td>[*] <td>[*][*] </td>[*] </tr>[*] </table>[*] </td>[*] </tr>[*]</table>[*][*]<table cellspacing="2" cellpadding="2">[*]<tr>[*]<td><font color=red><b>Top10: </b></font>$poststar</td>[*]</tr>[*]</table>[*]</div>[*]<!-- 首页五格代码结束 -->[/list]
[i]复制代码[/i]
更新缓存,OK!
详见:[url=http://www.discuz.net/thread-1312462-1-1.html]http://www.discuz.net/thread-1312462-1-1.html[/url]
PS:这个修改不错,技术上也很简单,但总感觉简洁才是美,先放着吧
帖内广告去掉AD小图标
后台模板编辑templates\default\css_common.htm搜索:如下代码
{ margin: 10px 0; padding-left: 20px; background: url({IMGDIR}/icon_ad.gif) no-repeat 0 50%; }
复制代码
把它改成
{ margin: 10px 0; padding-left: 1px; }
复制代码
Discuz!7.0的边栏添加广告
一、添加模块:工具——数据调用——模块脚本——自由代码——添加,可以命名为“自定义广告代码”
二、代码设置:
界面——边栏——首页——自定义广告代码——编辑——代码内容,本站设置如下:
<div><img src="/web/banner/2009/yqghgb.jpg" border="0"></div> 管理员,对这程序还挺有研究的嘛。。。
嘿嘿。。。
开启FLASH播放
界面——>编辑器设置——>Discuz! 代码——>flash(可用选上),记得提交。用户——>用户组——>详情——>帖子相关 ——>允许使用自定义Discuz!代码(是)
版块——>编辑版块——>帖子相关——>允许使用 Discuz! 代码
各类搜索引擎蜘蛛IP地址大全
百度蜘蛛220.181.38.177
220.181.19.*
159.226.50.*
202.108.11.*
202.108.22.*
202.108.23.*
202.108.249.*
202.108.250.*
61.135.145.*
61.135.146.*
google蜘蛛
216.239.33.*
216.239.35.*
216.239.37.*
216.239.39.*
216.239.51.*
216.239.53.*
216.239.55.*
216.239.57.*
216.239.59.*
64.233.161.*
64.233.189.*
66.102.11.*
66.102.7.*
66.102.9.*
66.249.64.*
66.249.65.*
66.249.66.*
66.249.71.*
66.249.72.*
72.14.207.*
163蜘蛛
202.106.186.*
202.108.36.*
202.108.44.*
202.108.45.*
202.108.5.*
202.108.9.*
220.181.12.*
220.181.13.*
220.181.14.*
220.181.15.*
220.181.28.*
220.181.31.*
222.185.245.*
become.com
64.124.85.*
china蜘蛛
61.151.243.*
gais.cs.ccu.edu.tw
202.165.96.*
iask蜘蛛
61.135.152.*
msn蜘蛛
65.54.188.*
65.54.225.*
65.54.226.*
65.54.228.*
65.54.229.*
207.46.98.*
207.68.157.*
noxtrumbot
194.224.199.*
Outfox
220.181.8.*
221.239.209.*
psbot
217.212.224.*
QQ蜘蛛
219.133.40.*
202.96.170.*
202.104.129.*
61.135.157.*
sina蜘蛛
219.142.118.*
219.142.78.*
sohu蜘蛛
61.135.132.*
220.181.26.*
220.181.19.*
tom蜘蛛
61.135.158.*
yahoo蜘蛛
66.196.90.*
66.196.91.*
68.142.249.*
68.142.250.*
68.142.251.*
72.30.101.*
72.30.102.*
72.30.103.*
72.30.104.*
72.30.107.*
72.30.110.*
72.30.111.*
72.30.128.*
72.30.129.*
72.30.131.*
72.30.133.*
72.30.134.*
72.30.135.*
72.30.216.*
72.30.226.*
72.30.252.*
72.30.97.*
72.30.98.*
72.30.99.*
74.6.74.*
yahoo中国蜘蛛
202.165.102.*
202.160.178.*
202.160.179.*
202.160.180.*
202.160.181.*
202.160.183.*
中搜蜘蛛
202.108.4.*
202.108.4.*
202.108.33.*
202.96.51.*
219.142.53.*
删掉Discuz!7:注册时“注册超大Hotmail邮箱”
templates/default/register.htm中删除下面的代码就可以了<label><em> </em><a href=\"https://domains.live.com/members/signup.aspx?domain=$msn[domain]\" target=\"_blank\" style=\"float: left; overflow: hidden; width: 223px; white-space: nowrap;\"><!--{if $msn['on']}-->{lang msn_email_reglink}<!--{else}-->{lang msn_email_reglink_default}<!--{/if}--></a></label>
注意,如果你想直接不需要这个注册什么hotmail邮箱,你就把这段代码直接删除了。如果你想保留下来。那你可以修改代码中的链接为你想要的并继续第二步:
templates/default/templates.lang.php
查找 hotmail 发现以下二处:
'msn_email_reglink_default' => '注册超大 Hotmail 邮箱',
'msn_email_reglink' => '注册 @$msn[domain] 超大 Hotmail 邮箱',
这个自己可以修改相关文字成你喜欢的吧。 配合第一步用。
限制某一后缀邮箱注册的处理方法
论坛为了防止注册机,设置了问答提示的同时又设置了邮件激活认证,前一段时间还好,但从上周开始,又有大量注册机注册成功,查过后发现这些注册机ID都是激活成功了,邮箱集中在两个域名上,且这两个域名都是正式注册过的,所以我猜想很有可能这个注册机可以自动激活。现在封了很多IP还是不断有ID注册进来。 总结机器注册的邮箱规律,只要发现一个特点域名就添加一个。[b]处理方法:[/b]
登陆discuz论坛——后台——uc后台——注册设置——禁止的Email 地址
如:
@chongblog.com
@qqneiyi.cn
@war3map.net.cn
@wpmu.org.cn
@chongsoft.cn
@seorj.cn
@bjbeihai.com.cn
@3126.com
@gyoung.com.cn
@chongsoft.org 不是吧!不错努! 自从转为使用 Discuz!7 后不久,发现每天垃圾注册的 ID 非常多,垃圾广告满屏皆是,验证码、验证问答对其几乎不起作用。
Discuz!7 后台提供了‘用户栏目定制’功能,在这里添加几个必填、必选项是不错的选择,可以有效地防止机器注册。
但添加的这些项目一方面对我们并不是太重要,只是为了防止垃圾注册。另一方面这对论坛老会员修改个人资料的时候会产生烦恼,就是会员进入‘个人中心’修改自己资料的时候会提示你‘您没有填写必填项目,请返回修改。’,而这些我们增加的注册必填项在‘个人中心’里还没有加 * 号,这时,会员无法识别究竟哪些要必须填写。
当然,我们可以修改文件让这些必填项显示 * 号,或更新数据库给每个会员以默认值来解决。
但我更希望将论坛固有的一些项目来设置为注册必填项,比如:性别、来自何方等常用信息,一方面起来防止垃圾注册的作用,一方面完善会员资料。修改方法如下:
1、修改 bbs/templates/default/register.htm 文件:
查找:
[color=#339933]<[/color]label[color=#339933]><[/color]em[color=#339933]>[/color][color=#009900]{[/color]lang email[color=#009900]}[/color][color=#339933]:</[/color]em[color=#339933]>[/color]
在这行上面加入代码:
[color=#339933]<[/color]label[color=#339933]><[/color]em[color=#339933]>[/color][color=#009900]{[/color]lang gender[color=#009900]}[/color][color=#339933]:</[/color]em[color=#339933]>[/color][color=#009900]{[/color]lang please_select[color=#009900]}[/color][color=#339933]<[/color]input type[color=#339933]=[/color][color=#0000ff]"radio"[/color] name[color=#339933]=[/color][color=#0000ff]"fufuok"[/color] value[color=#339933]=[/color][color=#0000ff]"1"[/color] tabindex[color=#339933]=[/color][color=#0000ff]"1"[/color] [color=#339933]/>[/color] [color=#009900]{[/color]lang authorinfoitems_gender_male[color=#009900]}[/color] [color=#339933]<[/color]input type[color=#339933]=[/color][color=#0000ff]"radio"[/color] name[color=#339933]=[/color][color=#0000ff]"fufuok"[/color] value[color=#339933]=[/color][color=#0000ff]"2"[/color] tabindex[color=#339933]=[/color][color=#0000ff]"1"[/color] [color=#339933]/>[/color] [color=#009900]{[/color]lang authorinfoitems_gender_female[color=#009900]}[/color] [color=#339933]*</[/color]label[color=#339933]>[/color][color=#339933]<[/color]label[color=#339933]><[/color]em[color=#339933]>[/color][color=#009900]{[/color]lang location[color=#009900]}[/color][color=#339933]:</[/color]em[color=#339933]><[/color]input type[color=#339933]=[/color][color=#0000ff]"text"[/color] name[color=#339933]=[/color][color=#0000ff]"ffokok"[/color] autocomplete[color=#339933]=[/color][color=#0000ff]"off"[/color] size[color=#339933]=[/color][color=#0000ff]"25"[/color] id[color=#339933]=[/color][color=#0000ff]"ffokok"[/color] tabindex[color=#339933]=[/color][color=#0000ff]"1"[/color] [color=#000000][b]class[/b][/color][color=#339933]=[/color][color=#0000ff]"txt"[/color] [color=#339933]/>[/color] [color=#339933]*</[/color]label[color=#339933]>[/color]
为了防止自动填表,在表单中将‘性别’和‘来自何方’分别用‘fufuok’和‘ffokok’代替。
2、修改 bbs/templates/default/messages.lang.php 文件:
查找:
register_activation_invalid
在这行下面加入代码:
[i]//Fufu_for register.htm[/i][color=#0000ff]'register_gender_invalid'[/color] [color=#339933]=>[/color] [color=#0000ff]'请正确选择性别。'[/color][color=#339933],[/color][color=#0000ff]'register_location_invalid'[/color] [color=#339933]=>[/color] [color=#0000ff]'请填写你来自何方。'[/color][color=#339933],[/color][i]//Fufu_end[/i]
3、修改 bbs/register.php 文件:
查找:
[color=#b1b100]if[/color][color=#009900]([/color][color=#000088]$bbrules[/color] [color=#339933]&&[/color] [color=#000088]$bbrulehash[/color] [color=#339933]!=[/color] [color=#000088]$_POST[/color][color=#009900][[/color][color=#0000ff]'agreebbrule'[/color][color=#009900]][/color][color=#009900])[/color] [color=#009900]{[/color] showmessage[color=#009900]([/color][color=#0000ff]'register_rules_agree'[/color][color=#009900])[/color][color=#339933];[/color][color=#009900]}[/color]
在这一段代码下面添加代码:
[color=#b1b100]if[/color][color=#009900]([/color][color=#000088]$fufuok[/color][color=#339933]!=[/color] [color=#0000ff]'1'[/color] [color=#339933]&&[/color] [color=#000088]$fufuok[/color][color=#339933]!=[/color] [color=#0000ff]'2'[/color][color=#009900])[/color] [color=#009900]{[/color] showmessage[color=#009900]([/color][color=#0000ff]'register_gender_invalid'[/color][color=#009900])[/color][color=#339933];[/color][color=#009900]}[/color] [color=#000088]$ffokok[/color] [color=#339933]=[/color] [color=#990000]trim[/color][color=#009900]([/color][color=#000088]$ffokok[/color][color=#009900])[/color][color=#339933];[/color][color=#b1b100]if[/color][color=#009900]([/color][color=#000088]$ffokok[/color] [color=#339933]==[/color] [color=#0000ff]''[/color][color=#009900])[/color] [color=#009900]{[/color] showmessage[color=#009900]([/color][color=#0000ff]'register_location_invalid'[/color][color=#009900])[/color][color=#339933];[/color][color=#009900]}[/color]
再查找:
[color=#000088]$db[/color][color=#339933]->[/color][color=#004000]query[/color][color=#009900]([/color][color=#0000ff]"INSERT INTO [color=#006699][b]{$tablepre}[/b][/color]members[/color]
照下面的代码修改,完整代码如下:
[color=#000088]$db[/color][color=#339933]->[/color][color=#004000]query[/color][color=#009900]([/color][color=#0000ff]"INSERT INTO [color=#006699][b]{$tablepre}[/b][/color]members (uid, username, password, secques, adminid, groupid, regip, regdate, lastvisit, lastactivity, posts, credits, extcredits1, extcredits2, extcredits3, extcredits4, extcredits5, extcredits6, extcredits7, extcredits8, email, showemail, timeoffset, pmsound, invisible, newsletter, gender) VALUES ('[color=#006699][b]$uid[/b][/color]', '[color=#006699][b]$username[/b][/color]', '[color=#006699][b]$password[/b][/color]', '[color=#006699][b]$secques[/b][/color]', '0', '[color=#006699][b]$groupinfo[groupid][/b][/color]', '[color=#006699][b]$onlineip[/b][/color]', '[color=#006699][b]$timestamp[/b][/color]', '[color=#006699][b]$timestamp[/b][/color]', '[color=#006699][b]$timestamp[/b][/color]', '0', [color=#006699][b]$initcredits[/b][/color], '[color=#006699][b]$email[/b][/color]', '0', '9999', '1', '[color=#006699][b]$invisiblenew[/b][/color]', '1', '[color=#006699][b]$fufuok[/b][/color]')"[/color][color=#009900])[/color][color=#339933];[/color] [color=#000088]$db[/color][color=#339933]->[/color][color=#004000]query[/color][color=#009900]([/color][color=#0000ff]"REPLACE INTO [color=#006699][b]{$tablepre}[/b][/color]memberfields (uid, authstr [color=#006699][b]$fieldadd1[/b][/color], location) VALUES ('[color=#006699][b]$uid[/b][/color]', '[color=#006699][b]$authstr[/b][/color]' [color=#006699][b]$fieldadd2[/b][/color], '[color=#006699][b]$ffokok[/b][/color]')"[/color][color=#009900])[/color][color=#339933];[/color]
保存文件,二进制上传到服务器,更新缓存。
Discuz! 7.0 后台使用系列教程: 系统设置- 用户-用户栏目定制
用户栏目定制功能是 Discuz! 老版本早就有的功能,但是还有新手还是不太懂,所以特此做个教程供新手参考。首先简单介绍下什么是用户栏目定制:您可以通过该功能,自定义一个用户资料信息的项目,显示在注册面板和控制面板内。比如,你可以增加“兴趣爱好”、“毕业学校”等,这样便于大家互相了解。具体的显示效果在您增加时有控制选项,您可以自由定制。比如官方论坛里个人信息中的 "从哪里知道 Discuz! :" 就是自己定制的。
[b]一、添加[/b]
进入论坛后台“用户 => 用户栏目定制”,如下图所示:
[img=600,280]http://faq.comsenz.com/userguide/discuz/images/profilefields/1.gif[/img]
点击“添加新栏目”会在上面新添加出一行,点击多次添加多行。然后填写新增栏目的标题,点击“提交”,如下图所示:
[img=600,175]http://faq.comsenz.com/userguide/discuz/images/profilefields/2.gif[/img]
提交后如下图所示:
[img=600,179]http://faq.comsenz.com/userguide/discuz/images/profilefields/3.gif[/img]
上图中点击“详情”,进入如下图所示的界面进行设置:
[img=600,594]http://faq.comsenz.com/userguide/discuz/images/profilefields/4.gif[/img]
其中:
1、栏目标题:可以在这里修改定制的栏目标题;
2、简短描述(可选):对该用户栏目的简短描述,比如其属性等等;
3、内容最大长度:用户注册的时候可以填写的该栏目内容最大长度,范围 1~255 字节;
4、隐藏:选择“是”将只有管理员和用户自身可以查看填写的内容;
5、必填内容:选择“是”将要求用户在注册或控制面板中必须填写或选择,这是比较常用到的一个设置;
6、不可修改:选择“是”则用户一旦填写此内容,将不可再次自行修改该项目的内容;
7、在帖子中显示:选择“是”将在浏览帖子时显示该项目,如果是隐私信息建议不要选择此项,也可以结合上面
第4条的“隐藏”设置,在这里选择“是”,“隐藏”那里也选择“是”,那么该信息将可以在帖子中显示,但是只有管
理员和用户自身才可以看到;
8、是否可选:选择“是”该项目为选择型,否则为任意填写。一旦确定后切勿更改,否则将导致显示错误;
9、选项内容:只在项目为可选时有效,每行一个选项,等号前面为选项索引(建议用数字),后面为内容,例如:
1 = 光电鼠标
2 = 机械鼠标
3 = 没有鼠标
注意: 选项确定后请勿修改索引和内容的对应关系,但仍可以新增选项。如需调换显示顺序,可以通过移动整
行的上下位置来实现。
上面的各项都设置好之后“提交”即可完成用户栏目的定制。
[b]二、使用[/b]
根据上面的方法添加好用户栏目后,返回到论坛注册页面,如下图所示:
[img=600,250]http://faq.comsenz.com/userguide/discuz/images/profilefields/5.gif[/img]
在一定程度上使用“用户栏目定制”功能可以防止灌水现象,但是它并不是万能的,有些时候不是最好的防止灌水的方法。
6.1版本论坛教程帮助文档整理(2008-9-11强力更新)
1、[color=red]UCenter体系下,如何恢复Discuz!的备份数据?[/color][url=http://www.discuz.net/thread-964865-1-1.html][color=#0000ff]http://www.discuz.net/thread-964865-1-1.html[/color][/url]
2、[color=red]UCenter体系下,如何备份Discuz!论坛的数据?[/color]
[url=http://www.discuz.net/thread-964863-1-1.html][color=#810081]http://www.discuz.net/thread-964863-1-1.html[/color][/url]
3、[color=red]如何使用Discuz!6.1的数据调用功能[/color]
[url=http://www.discuz.net/thread-964845-1-1.html][color=#0000ff]http://www.discuz.net/thread-964845-1-1.html[/color][/url]
4、[color=red]Discuz!6.1后台运行记录介绍[/color]
[url=http://www.discuz.net/thread-964843-1-1.html][color=#0000ff]http://www.discuz.net/thread-964843-1-1.html[/color][/url]
5、[color=red]Discuz!6.1 主题TAG开启及使用详解[/color]
[url=http://www.discuz.net/thread-964840-1-1.html][color=#0000ff]http://www.discuz.net/thread-964840-1-1.html[/color][/url]
6、[color=red]Discuz! 论坛如何设置上传附件的大小?[/color]
[url=http://www.discuz.net/thread-964838-1-1.html][color=#0000ff]http://www.discuz.net/thread-964838-1-1.html[/color][/url]
7、[color=red]更换 Discuz! 和 UCenter 域名或者目录,需要注意哪些事项?[/color]
[url=http://www.discuz.net/thread-957561-1-1.html][color=#0000ff]http://www.discuz.net/thread-957561-1-1.html[/color][/url]
8、[color=red]Discuz! 6.1论坛的feed(事件)无法在 UCHome 显示的检查方法[/color]
[url=http://www.discuz.net/thread-948958-1-1.html][color=#0000ff]http://www.discuz.net/thread-948958-1-1.html[/color][/url]
9、[color=red]Discuz!6.1侧边栏启用及设置[/color]
[url=http://www.discuz.net/thread-948954-1-1.html][color=#0000ff]http://www.discuz.net/thread-948954-1-1.html[/color][/url]
10、[color=red]6.1版本如何添加分类信息[/color]
[url=http://www.discuz.net/thread-948982-1-1.html][color=#0000ff]http://www.discuz.net/thread-948982-1-1.html[/color][/url]
11、[color=red]UCenter体系下,如何更改用户的用户名?[/color]
[url=http://www.discuz.net/thread-940961-1-1.html][color=#810081]http://www.discuz.net/thread-940961-1-1.html[/color][/url]
12、[color=red]Discuz!6.1如何开启视频功能[/color]
[url=http://www.discuz.net/thread-938948-1-1.html][color=#0000ff]http://www.discuz.net/thread-938948-1-1.html[/color][/url]
13、[color=red]array_slice() ..., null given in D:\.\BBS\forumdisplay.php on line 465的解决[/color]
[url=http://www.discuz.net/viewthread.php?tid=955512&highlight=%2B%CF%C2%C9%B0][color=#0000ff]http://www.discuz.net/viewthread ... ght=%2B%CF%C2%C9%B0[/color][/url]
14、[color=red]如何设置板块图标[/color]
[url=http://www.discuz.net/thread-970696-1-1.html][color=#0000ff]http://www.discuz.net/thread-970696-1-1.html[/color][/url]
15、[color=red]Discuz! 6.1 防灌水设置[/color]
[url=http://www.discuz.net/thread-970704-1-1.html][color=#0000ff]http://www.discuz.net/thread-970704-1-1.html[/color][/url]
16、[color=red]可以看到主题,但点击访问却显示游客无权访问页面的设置[/color]
[url=http://www.discuz.net/thread-999576-1-2.html][color=#0000ff]http://www.discuz.net/thread-999576-1-2.html[/color][/url]
17、[color=red]如何开启主题分类[/color]
[url=http://www.discuz.net/thread-997828-1-1.html][color=#0000ff]http://www.discuz.net/thread-997828-1-1.html[/color][/url]
18、[color=red]如何修复Discuz!论坛数据库?[/color]
[url=http://www.discuz.net/thread-948919-1-1.html][color=#0000ff]http://www.discuz.net/thread-948919-1-1.html[/color][/url]
补充 如何使用PHPMyAdmin修复论坛数据库
[url=http://faq.comsenz.com/index.php?action-viewnews-itemid-378-php-1][color=#0000ff]http://faq.comsenz.com/index.php?action-viewnews-itemid-378-php-1[/color][/url]
19、[color=red]如何设置UCenter下各应用同步登录[/color]
[url=http://www.discuz.net/thread-970710-1-1.html][color=#0000ff]http://www.discuz.net/thread-970710-1-1.html[/color][/url]
20、[color=red]如何在UCenter里恢复被删除的应用[/color]
[url=http://www.discuz.net/thread-981973-1-1.html][color=#0000ff]http://www.discuz.net/thread-981973-1-1.html[/color][/url]
21、[color=red]Access denied for agent changed 的参考解决方法[/color]
[url=http://www.discuz.net/thread-1003637-1-1.html][color=#0000ff]http://www.discuz.net/thread-1003637-1-1.html[/color][/url]
22、[color=red]如何使用PHPMyAdmin修改数据表字符集[/color]
[url=http://faq.comsenz.com/index.php?action-viewnews-itemid-379-php-1][color=#0000ff]http://faq.comsenz.com/index.php?action-viewnews-itemid-379-php-1[/color][/url]
23、[color=red]如何让论坛的在线人数显示增加[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-342][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-342[/color][/url]
24、[color=red]如何开启和发表投票主题[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-339][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-339[/color][/url]
25、[color=red]如何开启和发表商品主题[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-330][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-330[/color][/url]
26、[color=red]如何开启和发表辩论主题[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-329][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-329[/color][/url]
27、[color=red]如何修改表情显示的大小和行数列数[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-294][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-294[/color][/url]
28、[color=red]如何添加论坛创始人的账号[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-293][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-293[/color][/url]
29、[color=red]如何设置版块的前台显示顺序[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-292][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-292[/color][/url]
30、[color=red]四种数据调用错误的解决方法:[/color]
Undefined actionfunction [url=http://faq.comsenz.com/?action-viewnews-itemid-266][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-266[/color][/url]
Authentication failed [url=http://faq.comsenz.com/?action-viewnews-itemid-265][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-265[/color][/url]
Referer restriction is taking effect [url=http://faq.comsenz.com/?action-viewnews-itemid-264][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-264[/color][/url]
The webmaster did not enable this feature [url=http://faq.comsenz.com/?action-viewnews-itemid-263][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-263[/color][/url]
31、[color=red]如何限制用户注册后多长时间不能发贴[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-228][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-228[/color][/url]
32、[color=red]如何开启注册协议[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-227][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-227[/color][/url]
33、[color=red]如何使用hide代码[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-226][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-226[/color][/url]
34、[color=red]如何在前台在线会员列表显示游客图标[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-212][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-212[/color][/url]
35、[color=red]如何使用“单帖屏蔽”功能[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-209][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-209[/color][/url]
36、[color=red]为什么附件文件名后缀变成了.attach[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-208][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-208[/color][/url]
37、[color=red]如何增加一个新的用户组[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-205][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-205[/color][/url]
38、[color=red]登陆后台一直需要输入密码的解决方法[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-202][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-202[/color][/url]
39、[color=red]关于发帖换行问题的解决方法[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-201][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-201[/color][/url]
40、[color=red]如何开启Flash代码[/color]
[url=http://faq.comsenz.com/?action-viewnews-itemid-200][color=#0000ff]http://faq.comsenz.com/?action-viewnews-itemid-200[/color][/url]
哀悼日黑白代码
<style type="text/css"><!--
BODY {
filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
}
-->
</style>
将以上代码添加在网页header模板的<head></head>中,网站即可变成黑白色!
修改限制discuz论坛注册名长度
修改方法:打开模板文件中:templates.lang.php,查找“用户名小于3个字符”,修改为“用户名小于7个字符”,例如下:
'register_profile_profile_username_tooshort' => '用户名小于7个字符',
修改模板文件:register.htm 搜索以下内容:
if(unlen < 3 || unlen > 15) {
messagehandle_register(1, unlen < 3 ? profile_username_tooshort : profile_username_toolong);
return;
}
修改为:
if(unlen < 7 || unlen > 15) {
messagehandle_register(1, unlen < 7 ? profile_username_tooshort : profile_username_toolong);
return;
}
大家对比一下就明白了,把3改为7.
页:
[1]