以下是引用CMS2007在2009-8-12 9:48:00的发言:
这套模板是beta2发布后才开始做的,目的就是为了给不会做模板的用户多一个选择,今天看到论坛有用户叫说模板在ff下不兼容,太差什么的,模板内部测试的时候是正常的,刚测试了下,是关键词标签调用太多个数引起的,
现在大家只需要把模板用dw工具打开,找到以下一段
<!--导航开始-->
<div class="navbox">
<div class="searchbox">
<div class="search">{$GetArticleSearch}</div>
<div class="tags"><b>热门搜索:</b>{=GetTags(1,10)}</div>
</div>
<div class="menubox">{LB_频道导航}</div>
</div>
<!--导航结束-->
把这个关键词标签{=GetTags(1,10)}10个改少点,比如7,6,8以下吧....
====================================================
问答系统启用了回答问题启用验证码,但是验证码出不来的问题
这是模板制作员的失误,把这段代码给漏加上了,大家参考原来模板就知道,在<head>与</head>之间加上以下这些脚本就可以了.
<script src='../ks_inc/kesion.box.js' language="JavaScript"></script>
<script src='../ks_inc/common.js' language="JavaScript"></script>
<script src='../ks_inc/jquery.js' language="JavaScript"></script>
<script language="javascript">
function ShowLogin(){
popupIframe("会员登录","../user/userlogin.asp?Action=Poplogin",387,184,'no')
}
function handle(action,topicid,title){
popupIframe(title,"handle.asp?Action="+action+"&topicid="+topicid,387,200,'no')
}
function checkform(){
if ($("#TextContent").val()==""){
alert('请输入回答内容!');
$("#TextContent").focus();
return false;
}
{ifl:KS.ASetting(8)="1"}
if ($("#VerifyCode").val()==""){
alert('请输入验证码!');
$("#VerifyCode");
return false;
}
{/ifl}
}
$(document).ready(function()
{
$("#answerbutton").click(function(){
return checkform()}
)
$("#VerifyCode").click(function(){
$("#showVerify").html('<img id="VerifyImg" style="cursor:pointer;" src="../KS_Inc/verifycode.asp?n=<%=Timer%>" onClick="this.src=\'../ks_inc/verifycode.asp?n=\'+ Math.random();" align="absmiddle" />');
});
});
</script>
====================================================
使用KesionCMSV6自带模板的用户注意了,日期控制采用的是float:right;现修正为用绝对控制,大家打开style.css,找到143行,改成以下样式就行了
.todaynews_list{
padding:8px;
}
.todaynews_list li{
line-height:23px; position:relative
}
.todaynews_list a:link,.todaynews_list a:visited{
font-size:14px;color:#000;
}
.todaynews_list span{
color:#555; position:absolute; right:5px; top:0px;
}
<script src="/ks_inc/kesion.box.js" type="text/javascript" language="JavaScript"></script>
<script src="/ks_inc/common.js" type="text/javascript" language="JavaScript"></script>
<script src="/ks_inc/jquery.js" type="text/javascript" language="JavaScript"></script>
<script language="javascript">
function ShowLogin(){popupIframe("会员登录","/user/userlogin.asp?Action=Poplogin",387,184,'no') }
function handle(action,topicid,title){
popupIframe(title,"handle.asp?Action="+action+"&topicid="+topicid,387,200,'no')
}
function checkform(){
if ($("#TextContent").val()==""){
alert('请输入回答内容!');
$("#TextContent").focus();
return false;
}
{ifl:KS.ASetting(8)="1"}
if ($("#VerifyCode").val()==""){
alert('请输入验证码!');
$("#VerifyCode");
return false;
}
{/ifl}
}
function getCode(){
$("#showVerify").html('<IMG id="VerifyImg" style="cursor:pointer;" src="../KS_Inc/verifycode.asp?n=<%=Timer%>" onClick="this.src=\'../ks_inc/verifycode.asp?n=\'+ Math.random();" align="absmiddle">');
}
</script>