评论回复(免修改数据库) For PJblog3
作者:小戒 日期:2008-07-27
到:
在下面插入以下代码:
找
复制内容到剪贴板
程序代码
程序代码 Call showCommentPost(logID,DisComment)
在下面插入以下代码:
复制内容到剪贴板
程序代码
程序代码'================================
' 输出评论回复框 EDIT BY JieLiao
'================================
%>
<div id="MsgReplyContent" name="MsgReplyContent" style="width:94%; display:none;"><div id="MsgHead">发表回复</div><div id="MsgBody">
<%
If Not stat_Admin Then
response.Write ("你没有权限发表回复!")
response.Write ("</div></div>")
Else
%>
<form name="frm1" id="frm1" action="blogcomm.asp" method="post" onsubmit="return checkCommentPost()" style="margin:0px;">
<input name="commID" id="commID" type="hidden"/>
<table width="100%" cellpadding="0" cellspacing="0">
<tr><td align="right" width="70" valign="top"><strong>内 容:</strong><br/>
</td><td style="padding:2px;"><label>
<textarea name="Comm_replycontent" id="Comm_replycontent" cols="45" rows="5">
<%
Comm_content = Split(blog_CommContent,"[Reply_JieLiao]") '用[Reply_JieLiao]作分隔符,取消原来的增加字段.
If UBound(Comm_content)>1 Then '显示回复,可根据自己需要调整显示方式.
response.write Comm_content(2)
end if
%>
</textarea>
</label></td>
</tr>
<tr>
<td colspan="2" align="center" style="padding:3px;">
<input name="logID" type="hidden" value="<%=LogID%>"/>
<input name="action" type="hidden" value="postReply"/>
<input name="submit2" type="submit" class="userbutton" value="发表回复" accesskey="S"/>
<input name="button" type="reset" class="userbutton" value="重写"/></td>
</tr>
</table>
</form>
</div></div>
<%
End If
'EDIT BY JieLiao
' 输出评论回复框 EDIT BY JieLiao
'================================
%>
<div id="MsgReplyContent" name="MsgReplyContent" style="width:94%; display:none;"><div id="MsgHead">发表回复</div><div id="MsgBody">
<%
If Not stat_Admin Then
response.Write ("你没有权限发表回复!")
response.Write ("</div></div>")
Else
%>
<form name="frm1" id="frm1" action="blogcomm.asp" method="post" onsubmit="return checkCommentPost()" style="margin:0px;">
<input name="commID" id="commID" type="hidden"/>
<table width="100%" cellpadding="0" cellspacing="0">
<tr><td align="right" width="70" valign="top"><strong>内 容:</strong><br/>
</td><td style="padding:2px;"><label>
<textarea name="Comm_replycontent" id="Comm_replycontent" cols="45" rows="5">
<%
Comm_content = Split(blog_CommContent,"[Reply_JieLiao]") '用[Reply_JieLiao]作分隔符,取消原来的增加字段.
If UBound(Comm_content)>1 Then '显示回复,可根据自己需要调整显示方式.
response.write Comm_content(2)
end if
%>
</textarea>
</label></td>
</tr>
<tr>
<td colspan="2" align="center" style="padding:3px;">
<input name="logID" type="hidden" value="<%=LogID%>"/>
<input name="action" type="hidden" value="postReply"/>
<input name="submit2" type="submit" class="userbutton" value="发表回复" accesskey="S"/>
<input name="button" type="reset" class="userbutton" value="重写"/></td>
</tr>
</table>
</form>
</div></div>
<%
End If
'EDIT BY JieLiao
找
[本日志由 小戒 于 2008-08-28 02:42 AM 编辑]
上一篇: eval(function(p,a,c,k,e,d)系列加密解密javascript程序
下一篇: 让你的侧边栏区分动静态 For PJblog3
文章来自: 本站原创
Tags: 评论 回复 PJBLOG
相关日志:
评论: 8 | 引用: 0 | 查看次数: -
修改了后,就是cls_article出错
第一处是
Microsoft VBScript 编译器错误 错误 '800a040e' <br/><br/>'loop' 语句缺少 'do' <br/><br/>/class/cls_article.asp,行 325 <br/><br/>Loop第二处是
引用内容
小戒 于 回复
第一处是
Microsoft VBScript 编译器错误 错误 '800a040e' <br/><br/>'loop' 语句缺少 'do' <br/><br/>/class/cls_article.asp,行 325 <br/><br/>Loop第二处是
引用内容Microsoft VBScript 编译器错误 错误 '800a0411'
名称重定义
/class/cls_article.asp,行 333
Dim urlLink
名称重定义
/class/cls_article.asp,行 333
Dim urlLink
应该是修改错误。不过157版本已经自带了此功能了。如果还没升级的话建议升级。
额?还是需要转成全静态的啊?
哎。。为什么我改过了还是出错的呢。。。麻烦博主能把改过的文件发一份吗。。不知道是不是自己改错了。。
小戒 于 回复
请问提示什么错误?正常情况下是没有问题的。
广告挡住了很多文字 看不明白那写的什么 无法更改
小戒 于 回复
广告没有遮住文字。放心修改吧。
很强,也很复杂,支持一下
恩,隐隐约约发先这个问题~ 
还有个问题是为什么我的游客评论不了呢?
会员正常,留言板也正常。
我可能改错了哪里,但找了很久找不到啊,
请指点一下
ilmusic.cn
小戒 于 回复
还有个问题是为什么我的游客评论不了呢?
会员正常,留言板也正常。
我可能改错了哪里,但找了很久找不到啊,
请指点一下
ilmusic.cn
测试了,正常.
不错
发表评论


回复




挺不错的~