账号通
    

账号  

密码  

1310

查看

4

回复
主题:[求助]精华 置顶 点击后500错误 [收藏主题] 转到:  
科汛官方 当前离线

47268

主题

145

广播

405

粉丝
添加关注
级别:管理员

用户积分:101604 分
登录次数:7935 次
注册时间:2006/12/7
最后登录:2023/12/14
科汛官方 发表于:2008/7/11 13:56:00   | 显示全部帖子 查看该作者主题 楼主 
科汛在线商城系统(NET)

7、留言本点精华,置顶出错

 

解决方法:

打开guestbook/index.asp

并找到,61行

FileContent=Replace(FileContent,"{$GuestTitle}",conn.execute("select boardname from ks_guestboard where id=" & boardid)(0))
替换成如下代码

on error resume next
        FileContent=Replace(FileContent,"{$GuestTitle}",conn.execute("select boardname from ks_guestboard where id=" & boardid)(0))
        if err then
         if KS.S("Istop")="1" then
          FileContent=Replace(FileContent,"{$GuestTitle}","置顶帖子")
         else
          FileContent=Replace(FileContent,"{$GuestTitle}","精华帖子")
      end if
        end if

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.04688秒 powered by KesionCMS 9.0