账号通
    

账号  

密码  

1793

查看

0

回复
主题:[分享]7.0x删除日志分类后,会员中心点博文管理出错的修改方法 [收藏主题]  
科汛官方 当前离线

47268

主题

145

广播

405

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

用户积分:101604 分
登录次数:7935 次
注册时间:2006/12/7
最后登录:2023/12/14
科汛官方 发表于:2011/2/22 18:10:05   | 只看该作者 查看该作者主题 楼主 

错误见:

http://bbs.kesion.com/forumthread-185905.html



修复方法:



打开user/user_blog.asp



找到900多行的如下代码:



Sub ShowLog()

     Dim I

    Response.Write "<FORM Action=""User_Blog.asp?Action=Del"" name=""myform"" method=""post"">"

   Do While Not RS.Eof

         %>

           <tr class='tdbg'>

                                            <td class="splittd" height="20" align="center">

           <INPUT id="ID" type="checkbox" value="<%=RS("ID")%>"  name="ID">

           </td>

           <td class="splittd" align="center"><%=Conn.Execute("Select TypeName From KS_BlogType Where TypeID=" & RS("TypeID"))(0)%></td>





将红色的代码改成



<td class="splittd" align="center"><%

           Dim RST:Set RST=Conn.Execute("Select TOP 1 TypeName From KS_BlogType Where TypeID=" & RS("TypeID"))

           IF NOT RST.Eof Then

              Response.Write RST(0)

           Else

              Response.Write "---"

           End If

           RST.Close:Set RST=Nothing%></td>





即可

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