第一步:
打开你的留言本模板.把{$PageStr}把删除
第二步:将以下代码覆盖config/guestbook.xml
<?xml version="1.0" encoding="gb2312"?>
<guestbook>
<template name="board">
<![CDATA[
<table border="0" width="100%" align="center" class="glist" cellpadding="0" cellspacing="0">
<tr><td background="images/cat_bg.gif" height="35"> <strong>版面分类</strong></td></tr>
<tr><td style='padding:5px'>
[loop]
<table width="95%" style="margin-bottom:15px" align="center" cellpadding="0" cellspacing="0">
<tr class="board">
<td width="60"><img src="images/board.gif" alt="" border="0" /></td>
<td>
<strong><a href="index.asp?boardid={$BoardID}" class="newlink">{$BoardName}</a></strong><br />
{$Intro}<br />
<span>版主:{$Master} | 最新:{$NewTopic} | 主题:<em>{$TotalSubject}</em> | 帖子:<em>{$TotalReply}</em></span></td>
<td width="1%" style="text-align:right"><a href="index.asp?boardid=2"></a></td>
</tr>
</table>
[/loop]
</td>
</tr>
</table>
]]>
</template>
<template name="list">
<![CDATA[
<table border="0" width="100%" align="center" class="glist" cellpadding="0" cellspacing="0">
<thead class="category">
<tr>
<td> </td>
<td> </td>
<td>标题</td>
<td>作者</td>
<td>回复/查看</td>
<td>最后发表</td>
</tr>
</thead>
[loop]
<tbody class="topic">
<tr onmouseover="this.className='tron'" onmouseout="this.className='trout'">
<td> </td>
<td>{$Ico}</td>
<td>
<a href="display.asp?id={$TopicID}">{$Subject}</a>
</td>
<td>{$Author}<div class="time">{$PubTime}</div></td>
<td>{$ReplayTimes}/{$Hits}</td>
<td>
{$LastReplayUser}
<div class="time">{$LastReplayTime}</div>
</td>
</tr>
</tbody>
[/loop]
</table>
{$PageStr}
]]>
</template>
<template name="post">
<![CDATA[
<SCRIPT language="javascript">
function changeimage()
{
document.myform.pic.value=document.myform.Image.value;
document.myform.showimages.src='{$GetInstallDir}Images/Face/'+document.myform.Image.value+'.gif';
}
function guestpreview()
{
document.preview.content.value=document.myform.GuestContent.value;
var popupWin = window.open('GuestPreview.asp', 'GuestPreview', 'scrollbars=yes,width=620,height=230');
document.preview.submit();
}
function datacheck()
{
if (myform.Subject.value==""){
alert("留言主题一定要填写!");
myform.Subject.focus();
return false;
}
if (myform.Name.value==""){
alert("你好像还忘了填昵称哦!");
myform.Name.focus();
return false;
}
if (myform.Email.value==""){
alert("电子邮件一定要填写哦!");
myform.Email.focus();
return false;
}
haha=myform.Email.value
if(haha.length>0)
{
i=haha.indexOf("@");
if(i==-1)
{
alert("哇!您输入的电子邮件有错误哦!")
myform.Email.focus();
return false;
}
ii=haha.indexOf(".")
if(ii==-1)
{
alert("哇!您输入的电子邮件有错误哦!")
myform.Email.focus();
return false;
}
}
if (checktext(haha))
{
alert("能告诉我您的有效电子邮件吗?");
myform.Email.focus();
return false;
}
{$CheckCode}
if (frames["Content"].CurrMode!='EDIT') {alert('其他模式下无法保存,请切换到设计模式');return false;}
document.myform.Memo.value=frames["Content"].KS_EditArea.document.body.innerHTML;
if (myform.Memo.value==""){
alert("留言还没写呢,这样可不行哦!!");
return false;
}
}
function checktext(text)
{
allValid = true;
for (i = 0; i < text.length; i++)
{
if (text.charAt(i) != " ")
{
allValid = false;
break;
}
}
return allValid;
}
function DoTitle(addTitle) {
var revisedTitle;
var currentTitle = document.myform.Subject.value;
revisedTitle = addTitle+currentTitle;
document.myform.Subject.value=revisedTitle;
document.myform.Subject.focus();
return;
}
</script>
<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" class="font">
<form action="Save_Post.asp" method="post" name="myform" onSubmit="return datacheck();">
<tr>
<td height="25" align="right"><b>主 题 :</b></td>
<td height="25" >
<select name=font onchange="DoTitle(this.options[this.selectedIndex].value)" class='jd_tx1'><OPTION selected value="">话题</OPTION><option value=[原创]>[原创]</option><option value=[转帖]>[转帖]</option><option value=[灌水]>[灌水]</option><option value=[讨论]>[讨论]</option><option value=[求助]>[求助]</option><option value=[推荐]>[推荐]</option><option value=[公告]>[公告]</option><option value=[注意]>[注意]</option><option value=[贴图]>[贴图]</option><option value=[建议]>[建议]</option><option value=[下载]>[下载]</option><option value=[分享]>[分享]</option></select>
<input name="Subject" size="25" maxlength="50" class=inputtext>
<span style="color:#FF0000">*</span></td>
</tr>
{$SelectBoard}
<tr>
<td width="15%" height="25" align="right" ><b>用户名 :</b></td>
<td width="35%" height="25" ><input name="Name" maxlength="15" value="{$UserName}" {$User_Enabled}class=inputtext size="36" >
<span style="color:#FF0000">*</span></td>
<td width="50%" rowspan="3" ><INPUT type=hidden value=1 name=pic><IMG title=点击选择头像 style="CURSOR: hand" onClick="window.open('guestselect.asp?action=face','face','width=480,height=400,resizable=1,scrollbars=1')"
height=90 src="{$GetInstallDir}Images/Face/1.gif" width=80 border=0 name=showimages>
<select onchange=changeimage(); size=1 name=Image>
{$ImageList}
</select>
</td>
</tr>
<tr>
<td height="25" align="right" ><b>信 箱 :</b></td>
<td height="25" ><input name="Email" value="{$UserEmain}" size="36" maxlength="50" class=inputtext>
<span style="color:#FF0000">*</span></td>
</tr>
<tr>
<td height="25" align="right" ><b>主 页 :</b></td>
<td height="25" ><input name="Homepage" size="36" maxlength="50" value="{$UserHomePage}" class=inputtext ></td>
</tr>
<tr>
<td height="25" align="right" ><b>QQ号码 :</b></td>
<td height="25"> <input name="Oicq" maxlength="10" value="{$UserQQ}" class=inputtext size="25" ></td>
<td> </td>
</tr>
<tr {$CodeTF}>
<td height="25" align="right"><b>附加码 :</b></td>
<td height="25"><input name="Code" type="text" class=inputtext size="8">
<IMG style="cursor:hand" src="{$GetInstallDir}KS_Inc/verifycode.asp" onClick="this.src='../ks_inc/verifycode.asp?n='+ Math.random();" align="absmiddle"> <-- 请输入左边的数字 </td>
<td> </td>
</tr>
<tr>
<td height="25" align="right"> <b>当前心情 :</b></td>
<td colspan="2">{$EmotList}</td>
</tr>
<tr>
<td align="right"><b>留言内容 :</b></td>
<td colspan="2" height="140">
<textarea style="display:none" name="Memo"></textarea>
<iframe id='Content' name='Content' src='../user/Editor.asp?ID=Memo&style=0&ChannelID=9999' frameborder="0" scrolling="No" width='95%' height='300'></iframe> </td>
</tr>
<tr>
<td colspan="3" height="45" align="center">
<input type="submit" class=inputbutton value="立即提交" name="Submit">
<input type="button" value="重新设置" name="cmdExit" class="inputbutton" onClick=" history.back()"></td>
</tr>
</form>
</table>
]]>
</template>
<template name="display">
<![CDATA[
<table class="glist" cellspacing="0" width="100%" cellpadding="0" style="word-break:break-all;">
<tr>
<td colspan="2" class="title">
<table width="100%">
<tr>
<Td><b>主题:{$Subject}</b></td>
<td align="right">已有 <font color=red>{$Hits}</font> 人关注过本贴</td>
</tr>
</table>
</td>
</tr>
</table>
[loop]
<table class="glist" cellspacing="0" width="100%" cellpadding="0" style="margin-bottom:8px;word-break:break-all;">
<tr>
<td style="width:200px;height:25px;border-bottom:1px solid #E4E7EC;border-right:1px solid #e4e7ec;background:#FAFDFF;" valign="middle">{$UserName}</span></td>
<td style="border-bottom:1px solid #E4E7EC; background:#FAFDFF;">
<table width="100%">
<tr>
<Td>{$UserMenu}</td>
<td align="right">第 {$N} 楼</td>
</tr>
</table>
</td>
</tr>
<tr>
<td rowspan="2" valign="top" style="text-align:center;border-right:1px solid #E4E7EC; background:#FAFDFF;">{$UserInfo}</td>
<td valign="top" style="line-height:120%">
<b style="font-size:12px;line-height:15px;">{$Subject}</b> <span style="line-height:20px; "> Post By:{$PubTime} Post IP:{$PubIP}</span>
<div id="content{$N}" style="word-wrap:break-word;word-break:break-all;overflow:hidden;font-size:9pt;text-indent:24px;">{$Content}</div>
</td>
</tr>
<tr>
<td align="right">
<table border="0" width="100%">
<tr><td>{$Jing}</td><td align="right">
{$ManageMenu} | <a href="#top"><img border="0" src="images/p_up.gif" alt="回到顶部" style="padding-bottom:10px;" /></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
[/loop]
]]>
</template>
<template name="replayform">
<![CDATA[
{$PageStr}
<a name="reply"></a>
<table class="glist" width="100%" cellspacing="0" cellpadding="0">
<form name="replayform" action="save_reply.asp" method="post">
<tr id="title_input">
<td colspan="2" valign="middle" class="title">
<table width="100%">
<tr>
<Td>回复主题:{$Subject}</td>
<td align="right"><a href="index.asp">返回列表页</a></td>
</tr>
</table>
</tr>
<tr>
<td valign="top" align="center" style="width:180px;padding:10px;background:#FAFDFF;text-align:center;border-right:1px solid #e4e7ec;">
<input type="radio" name="txthead" value="1" Checked >
<img src="../Images/Face1/Face1.gif" border="0">
<input type="radio" name="txthead" value="2" >
<img src="../Images/Face1/Face2.gif" border="0">
<input type="radio" name="txthead" value="3" >
<img src="../Images/Face1/Face3.gif" border="0">
<input type="radio" name="txthead" value="4" >
<img src="../Images/Face1/Face4.gif" border="0">
<input type="radio" name="txthead" value="5" >
<img src="../Images/Face1/Face5.gif" border="0">
<input type="radio" name="txthead" value="6" >
<img src="../Images/Face1/Face6.gif" border="0">
<input type="radio" name="txthead" value="7" >
<img src="../Images/Face1/Face7.gif" border="0">
<input type="radio" name="txthead" value="8" >
<img src="../Images/Face1/Face8.gif" border="0">
<input type="radio" name="txthead" value="9" >
<img src="../Images/Face1/Face9.gif" border="0">
<input type="radio" name="txthead" value="10" >
<img src="../Images/Face1/Face10.gif" border="0">
<input type="radio" name="txthead" value="11" >
<img src="../Images/Face1/Face11.gif" border="0">
<input type="radio" name="txthead" value="12" >
<img src="../Images/Face1/Face12.gif" border="0">
<input type="radio" name="txthead" value="13" >
<img src="../Images/Face1/Face13.gif" border="0">
<input type="radio" name="txthead" value="14" >
<img src="../Images/Face1/Face14.gif" border="0">
<input type="radio" name="txthead" value="15" >
<img src="../Images/Face1/Face15.gif" border="0">
<input type="radio" name="txthead" value="16" >
<img src="../Images/Face1/Face16.gif" border="0">
<input type="radio" name="txthead" value="17" >
<img src="../Images/Face1/Face17.gif" border="0">
<input type="radio" name="txthead" value="18" >
<img src="../Images/Face1/Face18.gif" border="0">
<input type="radio" name="txthead" value="19" >
<img src="../Images/Face1/Face19.gif" border="0">
<input type="radio" name="txthead" value="20" >
<img src="../Images/Face1/Face20.gif" border="0">
<input type="radio" name="txthead" value="21" >
<img src="../Images/Face1/Face22.gif" border="0">
<input type="radio" name="txthead" value="23" >
<img src="../Images/Face1/Face23.gif" border="0">
<input type="radio" name="txthead" value="24" >
<img src="../Images/Face1/Face25.gif" border="0">
<input type="radio" name="txthead" value="26" >
<img src="../Images/Face1/Face26.gif" border="0">
<input type="radio" name="txthead" value="27" >
<img src="../Images/Face1/Face27.gif" border="0">
<input type="radio" name="txthead" value="28" >
<img src="../Images/Face1/Face28.gif" border="0">
<input type="radio" name="txthead" value="29" >
<img src="../Images/Face1/Face29.gif" border="0">
<input type="radio" name="txthead" value="30" >
<img src="../Images/Face1/Face30.gif" border="0"><br/> </td>
<td style="padding:0px;margin:0px;">
<span><textarea name="Content" style="display:none;width:100%;height:200px;margin:0;padding:0;"></textarea><iframe id='F_Content' name='F_Content' src='../User/Editor.asp?ID=Content&style=0&ChannelID=10000' width="100%" height="180" frameborder="0"></iframe></span></td>
</tr>
<tr>
<td valign="top" style="background:#FAFDFF;"> </td>
<td style="background:#FAFDFF;">
<input type="submit" value="OK!发表回复" id="submit" name="submit" onclick="return(checkform())" style="margin:3px;margin-left:0px;" />
<input type="hidden" value="{$TopicID}" name="TopicID">
<input type="hidden" value="{$Page}" name="Page">
</td>
</tr>
</form>
</table>
<script>
function checkform()
{
if (frames["F_Content"].CurrMode!='EDIT') {alert('其他模式下无法保存,请切换到设计模式');return false;}
document.replayform.Content.value=frames["F_Content"].KS_EditArea.document.body.innerHTML;
if (document.replayform.Content.value==""){
alert("请填写回复内容");
return false;
}
return true;
}
function reply(id,user,time)
{
frames["F_Content"].KS_EditArea.document.body.innerHTML='';
var str="<div class='quote'><b>以下是引用 "+user +"在"+time+"的发言:</b><br>"+eval('document.all.content'+id).innerHTML+"</div>";
frames["F_Content"].InsertHTMLStr(str);
}
</script>
]]>
</template>
</guestbook>