评论留言增加邮箱网址及博主回复通知评论留言人 For Pj3 157(11/2日修改网址判断)
作者:小戒 日期:2008-11-02
开Plugins/GuestBook/guestbook.asp,找到:
在下面插入:
找到:
在下面插入:
打开Plugins/GuestBook/bookaction.asp,找到:
在下面插入:
找到:
在上面插入:
找到:
替换为:
找到:
将下面‘评论留言通知’之间的代码,全部替换:
找
复制内容到剪贴板
程序代码
程序代码 <a href="member.asp?action=view&memName=<%=Server.URLEncode(GuestDB("book_Messager"))%>"><b><%=GuestDB("book_Messager")%></b></a>
在下面插入:
复制内容到剪贴板
程序代码
程序代码<%
if trim(GuestDB("email"))<>"" then
response.write " <a href=mailto:"&trim(GuestDB("email"))&" target=_blank><img src=images/email1.gif border=0></a>"
else
response.write " <img src=images/noemail1.gif>"
end if
if trim(GuestDB("siteurl"))<>"" and trim(GuestDB("siteurl"))<>"http://" then
response.write " <a href="&trim(GuestDB("siteurl"))&" target=_blank><img src=images/url1.gif border=0></a>"
else
response.write " <img src=images/nourl1.gif>"
end if
%>
if trim(GuestDB("email"))<>"" then
response.write " <a href=mailto:"&trim(GuestDB("email"))&" target=_blank><img src=images/email1.gif border=0></a>"
else
response.write " <img src=images/noemail1.gif>"
end if
if trim(GuestDB("siteurl"))<>"" and trim(GuestDB("siteurl"))<>"http://" then
response.write " <a href="&trim(GuestDB("siteurl"))&" target=_blank><img src=images/url1.gif border=0></a>"
else
response.write " <img src=images/nourl1.gif>"
end if
%>
找到:
复制内容到剪贴板
程序代码
程序代码 <%if memName=empty then%><tr><td align="right" width="70"><strong>密 码:</strong></td><td align="left" style="padding:3px;"><input name="password" type="password" size="18" class="userpass" maxlength="24"/></td></tr><%end if%>
在下面插入:
复制内容到剪贴板
程序代码
程序代码 <%if memName=empty then%><tr><td align="right" width="70"><strong>邮 箱:</strong></td><td align="left" style="padding:3px;"><input name="myblogemail" type="text" size="18" class="userpass" maxlength="24"/> 请填写您的邮箱.</td></tr><%end if%>
<%if memName=empty then%><tr><td align="right" width="70"><strong>网 址:</strong></td><td align="left" style="padding:3px;"><input name="myblogsiteurl" type="text" class="userpass" value="http://" size="18" maxlength="24"/> 请填写您的网址.</td></tr><%end if%>
<%if memName=empty then%><tr><td align="right" width="70"><strong>网 址:</strong></td><td align="left" style="padding:3px;"><input name="myblogsiteurl" type="text" class="userpass" value="http://" size="18" maxlength="24"/> 请填写您的网址.</td></tr><%end if%>
打开Plugins/GuestBook/bookaction.asp,找到:
复制内容到剪贴板
程序代码
程序代码 post_Message=CheckStr(request.form("Message"))
在下面插入:
复制内容到剪贴板
程序代码
程序代码dim email,tsiteURL
email=trim(CheckStr(request.form("myblogemail")))
tsiteURL=trim(CheckStr(request.form("myblogsiteurl")))
email=trim(CheckStr(request.form("myblogemail")))
tsiteURL=trim(CheckStr(request.form("myblogsiteurl")))
找到:
复制内容到剪贴板
程序代码
程序代码 if filterSpam(post_Message,"../../spam.xml") and stat_Admin=false then
showmsg "留言发表错误信息","<b>留言中包含被屏蔽的字符</b><br/><a href=""javascript:history.go(-1);"">返回</a>","WarningIcon","plugins"
exit function
end if
showmsg "留言发表错误信息","<b>留言中包含被屏蔽的字符</b><br/><a href=""javascript:history.go(-1);"">返回</a>","WarningIcon","plugins"
exit function
end if
在上面插入:
复制内容到剪贴板
程序代码
程序代码 if memName=empty and email<>"" and IsValidEmail(email)=false then
showmsg "留言发表错误信息","<b>邮箱格式错误</b><br/><a href=""javascript:history.go(-1);"">返回</a>","WarningIcon","plugins"
exit function
end if
if memName=empty and tsiteURL<>"" and tsiteURL<>"http://" and IsRightUrl(tsiteURL)=false then
showmsg "留言发表错误信息","<b>网址格式错误</b><br/><a href=""javascript:history.go(-1);"">返回</a>","WarningIcon","plugins"
exit function
end if
showmsg "留言发表错误信息","<b>邮箱格式错误</b><br/><a href=""javascript:history.go(-1);"">返回</a>","WarningIcon","plugins"
exit function
end if
if memName=empty and tsiteURL<>"" and tsiteURL<>"http://" and IsRightUrl(tsiteURL)=false then
showmsg "留言发表错误信息","<b>网址格式错误</b><br/><a href=""javascript:history.go(-1);"">返回</a>","WarningIcon","plugins"
exit function
end if
找到:
复制内容到剪贴板
程序代码
程序代码 Conn.ExeCute("Insert INTO blog_book(book_Messager,book_face,book_IP,book_Content,book_HiddenReply) VALUES ('"&username&"','"&face&"','"&getIP()&"','"&post_Message&"',"&hiddenreply&")")
替换为:
复制内容到剪贴板
程序代码
程序代码 Conn.ExeCute("Insert INTO blog_book(book_Messager,book_face,book_IP,book_Content,book_HiddenReply,email,siteurl) VALUES ('"&username&"','"&face&"','"&getIP()&"','"&post_Message&"',"&hiddenreply&",'"&email&"','"&tsiteURL&"')")
找到:
复制内容到剪贴板
程序代码
程序代码 Response.Cookies(CookieName)("bookLastPost")=DateToStr(now(),"Y-m-d H:I:S")
将下面‘评论留言通知’之间的代码,全部替换:
复制内容到剪贴板
程序代码
程序代码 '留言邮件通知
If blog_Isjmail Then
Dim SQLcomm, log_commcomm
SQLcomm="Select TOP 1 * FROM blog_book Where book_ID="&MsgID
Set log_commcomm=conn.execute(SQLcomm)
if trim(log_commcomm("email"))<>"" then
dim emailcontent,emailtitle
emailtitle = "您在"&siteName&"上发表的留言已被回复"
emailcontent = "尊敬的{"&log_commcomm("book_Messager")&"},您好,您在["&siteName&"]上发表的留言,现已被["&memName&"]回复,回复内容为:["&MsgReplyContent&"],请点击查看"&siteURL&"LoadMod.asp?plugins=GuestBookForPJBlog#book_"&MsgID&"。谢谢您的留言,欢迎再次光临!"
call sendmail(log_commcomm("email"),emailtitle,emailcontent)
' call sendmail(username,"",email_bookid,"",0,post_Message)
end if
log_commcomm.Close
Set log_commcomm=Nothing
End If
'留言邮件通知结束
If blog_Isjmail Then
Dim SQLcomm, log_commcomm
SQLcomm="Select TOP 1 * FROM blog_book Where book_ID="&MsgID
Set log_commcomm=conn.execute(SQLcomm)
if trim(log_commcomm("email"))<>"" then
dim emailcontent,emailtitle
emailtitle = "您在"&siteName&"上发表的留言已被回复"
emailcontent = "尊敬的{"&log_commcomm("book_Messager")&"},您好,您在["&siteName&"]上发表的留言,现已被["&memName&"]回复,回复内容为:["&MsgReplyContent&"],请点击查看"&siteURL&"LoadMod.asp?plugins=GuestBookForPJBlog#book_"&MsgID&"。谢谢您的留言,欢迎再次光临!"
call sendmail(log_commcomm("email"),emailtitle,emailcontent)
' call sendmail(username,"",email_bookid,"",0,post_Message)
end if
log_commcomm.Close
Set log_commcomm=Nothing
End If
'留言邮件通知结束
找
[本日志由 小戒 于 2008-12-08 10:17 PM 编辑]
上一篇: 30多个CSS和JS下拉菜单资源
下一篇: MYSQL远程连接工具及设置
文章来自: 本站原创
Tags: 评论 留言 邮箱 网址 通知
相关日志:
评论: 51 | 引用: 0 | 查看次数: -
回复
|
|
]好东西都在这里挖
请问一下戒聊大哥.
我想安装这个评论就把 密码替换成邮箱
(针对游客) 因为我打算网站不提供注册.
只允许访问者发言
就是把密码那栏 换成 邮箱 总的来说 就是发言者需要输入 昵 称 和邮箱 2个比填的
具体怎么改
小戒 于 回复
我想安装这个评论就把 密码替换成邮箱
(针对游客) 因为我打算网站不提供注册.
只允许访问者发言
就是把密码那栏 换成 邮箱 总的来说 就是发言者需要输入 昵 称 和邮箱 2个比填的
具体怎么改
不再提供PJ技术支持,抱歉.
公司可单独提供税务(合理降低税务成本)可提供发票www.wdylqc.cn最专业的发票咨询网
第三次留言,我的头像怎么还是这个呢
小戒 于 回复
这个是直接根据你的邮箱取的你的头像,如果没变就是那边还没更新过来了。
再看一下~
测试~
老大,,问题出现. 版本为最新版.
错误类型:
Microsoft VBScript runtime (0x800A01F4)
Variable is undefined: 'blog_Isjmail'
/web/Plugins/GuestBook/bookaction.asp, 第 140 行
问题出在哪啊??
小戒 于 回复
错误类型:
Microsoft VBScript runtime (0x800A01F4)
Variable is undefined: 'blog_Isjmail'
/web/Plugins/GuestBook/bookaction.asp, 第 140 行
问题出在哪啊??
这个只适合157呢。。。。你的最新版是什么版本?
加一句dim blog_Isjmail
加一句dim blog_Isjmail
汗 像这两个if memName=empty and email<>"" and IsValidEmail(email)=false then判断 不应该需要memName=empty
小戒 于 回复
小戒 于 回复
好像有些道理。MEMNAME是判断是否注册用户的。
你可以研究下,然后自己修改下。
发表评论


