账号通
    

账号  

密码  

4015

查看

7

回复
主题:[分享]KesionCMS V8.0x版本tags.asp页面列表调用简介的修改方法 [收藏主题] 转到:  
科汛官方 当前离线

47268

主题

145

广播

405

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

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

需要改代码,具体文件在

plus/tags.asp



   Select Case  KS.C_S(SQL(0,K),6)

    Case 1

   SqlStr=SqlStr & "select ID,Title,Tid,ReadPoint,InfoPurview,Fname,Changes,AddDate,Popular," & SQL(0,K) & " as ChannelID,hits,Inputer As username,photourl,intro From " & SQL(1,K)

    case 2

    SqlStr=SqlStr & "select ID,Title,Tid,ReadPoint,InfoPurview,Fname,0 as Changes,AddDate,Popular," & SQL(0,K) & " as ChannelID,Hits,Inputer As username,photourl,picturecontent as intro From " & SQL(1,K)

    case 3

    SqlStr=SqlStr & "select ID,Title,Tid,ReadPoint,InfoPurview,Fname,0 as Changes,AddDate,Popular," & SQL(0,K) & " as ChannelID,Hits,Inputer As username,photourl,downcontent as intro From " & SQL(1,K)

    case 4

    SqlStr=SqlStr & "select ID,Title,Tid,ReadPoint,InfoPurview,Fname,0 as Changes,AddDate,Popular," & SQL(0,K) & " as ChannelID,Hits,Inputer As username,photourl,flashcontent as intro From " & SQL(1,K)

    Case 5

    SqlStr=SqlStr & "select ID,Title,Tid,0 as ReadPoint,0 as InfoPurview,Fname,0 as Changes,AddDate,Popular," & SQL(0,K) & " as ChannelID,Hits,Inputer As username,photourl,prointro as intro From " & SQL(1,K)

    Case 7

    SqlStr=SqlStr & "select ID,Title,Tid,0 as ReadPoint,0 as InfoPurview,Fname,0 as Changes,AddDate,Popular," & SQL(0,K) & " as ChannelID,Hits,Inputer As username,photourl,moviecontent as intro From " & SQL(1,K)

   End Select

  SqlStr=SqlStr & " Where DelTF=0 And Verific=1 And keywords like '%" & TagsName & "%'"





增加上面红色的代码。



继续再往下找到,并增加红色的

     LC=replace(LC,"{$Hits}",rs(10))

     LC=replace(LC,"{$Intro}",KS.Gottopic(KS.LoseHtml(rs(13)),100))



     LC=replace(LC,"{$AddDate}",formatdatetime(rs(7),2))



然后用{$Intro}标签在tags.html模板里就可以调用了。其它的字段类似。



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