评论留言增加邮箱网址及博主回复通知评论留言人 For Pj3 157(11/2日修改网址判断)
作者:小戒 日期:2008-11-02
开Template/static.htm,找到:
在下面插入:
打开blogcomm.asp,找到:
在下面插入:
找到:
在上面插入:
找到:
替换为:
找
复制内容到剪贴板
程序代码
程序代码 <tr id="passArea">
<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>
<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>
在下面插入:
复制内容到剪贴板
程序代码
程序代码 <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>
<tr>
<td align="right" width="70"><strong>网 址:</strong></td>
<td align="left" style="padding:3px;"><input name="myblogsiteurl" type="text" size="18" value="http://" class="userpass" maxlength="24"/></td>
</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>
<tr>
<td align="right" width="70"><strong>网 址:</strong></td>
<td align="left" style="padding:3px;"><input name="myblogsiteurl" type="text" size="18" value="http://" class="userpass" maxlength="24"/></td>
</tr>
打开blogcomm.asp,找到:
复制内容到剪贴板
程序代码
程序代码 password = Trim(CheckStr(request.Form("password")))
在下面插入:
复制内容到剪贴板
程序代码
程序代码 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 (memName=empty or blog_validate=true) and (cstr(lcase(Session("GetCode")))<>cstr(lcase(validate)) or IsEmpty(Session("GetCode"))) Then
在上面插入:
复制内容到剪贴板
程序代码
程序代码 if memName=empty and email<>"" and IsValidEmail(email)=false then
ReInfo(0)="评论发表错误信息"
ReInfo(1)="<b>邮箱格式错误</b><br/><a href=""javascript:history.go(-1);"">请返回重新输入</a>"
ReInfo(2)="ErrorIcon"
postcomm=ReInfo
exit function
end if
if memName=empty and tsiteurl<>"" and tsiteurl<>"http://" and IsRightUrl(tsiteurl)=false then
ReInfo(0)="评论发表错误信息"
ReInfo(1)="<b>网址格式错误</b><br/><a href=""javascript:history.go(-1);"">请返回重新输入</a>"
ReInfo(2)="ErrorIcon"
postcomm=ReInfo
exit function
end if
ReInfo(0)="评论发表错误信息"
ReInfo(1)="<b>邮箱格式错误</b><br/><a href=""javascript:history.go(-1);"">请返回重新输入</a>"
ReInfo(2)="ErrorIcon"
postcomm=ReInfo
exit function
end if
if memName=empty and tsiteurl<>"" and tsiteurl<>"http://" and IsRightUrl(tsiteurl)=false then
ReInfo(0)="评论发表错误信息"
ReInfo(1)="<b>网址格式错误</b><br/><a href=""javascript:history.go(-1);"">请返回重新输入</a>"
ReInfo(2)="ErrorIcon"
postcomm=ReInfo
exit function
end if
找到:
复制内容到剪贴板
程序代码
程序代码 AddComm = Array(Array("blog_ID", post_logID), Array("comm_Content", post_Message), Array("comm_Author", username), Array("comm_DisSM", post_DisSM), Array("comm_DisUBB", post_DisUBB), Array("comm_DisIMG", post_disImg), Array("comm_AutoURL", post_DisURL), Array("comm_PostIP", getIP), Array("comm_AutoKEY", post_DisKEY)))
替换为:
复制内容到剪贴板
程序代码
程序代码 AddComm = Array(Array("blog_ID", post_logID), Array("comm_Content", post_Message), Array("comm_Author", username), Array("comm_DisSM", post_DisSM), Array("comm_DisUBB", post_DisUBB), Array("comm_DisIMG", post_disImg), Array("comm_AutoURL", post_DisURL), Array("comm_PostIP", getIP), Array("comm_AutoKEY", post_DisKEY),Array("email",email),Array("siteurl",tsiteurl))
找
[本日志由 小戒 于 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是判断是否注册用户的。
你可以研究下,然后自己修改下。
发表评论


