JTBC(CMS)

开源与免费的跨平台网站内容管理系统解决方案

腾讯交流群: 2254994
技术支持群: 27032719
首页 » 在线论坛 » ASP版本 
帖子内容
1 楼
crazy
注册会员
积分 246
注册 2010-04-07
     
首页怎么调用论坛最新回复帖子
用{$=itransfer('top', 'forum', 'topx=8;tnum=28;genre=forum;osql= and t_fid=0 and t_sid=论坛编号;')}调出来的是最新的论坛帖子。我想要调最新回复的帖子,该如何修改?

2010-06-19 22:52:27 www.wushicun.com乌石村农家乐panan.wushicun.com磐安旅游www.dangde.net浙江农家乐www.lekele.net笑话大全
2 楼
crazy
注册会员
积分 246
注册 2010-04-07
     
回复: 首页怎么调用论坛最新回复帖子
{$=itransfer('top', 'forum', 'topx=8;tnum=28;genre=forum;osql= and t_fid=0 and t_sid=3;osql= and order by t_lasttime Desc;')}

并未能成功调用,

{$=itransfer('top', 'forum', 'topx=8;tnum=28;genre=forum;osql= and t_fid=0 and t_sid=3 and order by t_lasttime Desc;')}

这样是出错的。
2010-06-19 23:20:18 www.wushicun.com乌石村农家乐panan.wushicun.com磐安旅游www.dangde.net浙江农家乐www.lekele.net笑话大全
3 楼
crazy
注册会员
积分 246
注册 2010-04-07
     
回复: 首页怎么调用论坛最新回复帖子
只调用最新回复的帖子:
{$=itransfer('top', 'forum', 'topx=8;tnum=28;genre=forum;osql= and t_fid=0 and t_sid=论坛编号 and t_reply>o;')}
排序问题存在。
如何让最新回复的帖子排前面?
如何加osql?

我现在用另一个方法替代着用了
在common/incfiles/module.asp里找到定义:good hot top up和down的地方,大概在93行,增加一个新的排序
我定义为"retop"
增加:
  Case "retop"
        tsqlstr = "select top " & ttopx & " * from " & tdatabase & " where " & tfpre & "hidden=0"
        tsqlorder =" order by t_lasttime desc"
这样他就以最后回复的时间来排序了。
调用语句:
{$=itransfer('retop', 'forum', 'topx=8;tnum=28;genre=forum;osql= and t_fid=0 and t_sid=论坛编号 and t_reply>o;')}

记得调用模板增加字节:forum
内容:
<table border="0" width="100%" cellpadding="0" cellspacing="0">{$}
  <tr>{$$}
    <td height="20" style="padding-left:15px"><a href="{$baseurl}?type=detail&sid={$sid}&tid={$id}" target="_self">{$topic}</a></td>
    <td height="20" style="padding-left:15px">{$author}</td>{$$}
  </tr>{$}
</table>
本次是在拖拖的指导下解决问题的。拖拖的站www.xupem.com  ,欢迎大家点击广告。让拖拖更有动力去帮助新手解决问题。

本人的站:www.dangdei.com首页调用了论坛的帖子。
如果看不懂,可以联系我,一起探讨:QQ:43900705
我们在JTBC[CMS][4]就业班,群号:229816848
2010-06-20 10:41:30 www.wushicun.com乌石村农家乐panan.wushicun.com磐安旅游www.dangde.net浙江农家乐www.lekele.net笑话大全
4 楼
lcz7199
注册会员
积分 106
注册 2010-01-31
     
回复: 首页怎么调用论坛最新回复帖子
tsqlorder =" order by t_lasttime desc"
代码是不是错了,应该是  tsqlorder =" order by "& t_lasttime & "desc"
2010-08-03 08:25:21
5 楼
lcz7199
注册会员
积分 106
注册 2010-01-31
     
回复: 首页怎么调用论坛最新回复帖子
终于搞清楚了,你的代码写错了.
增加:
  Case "retop"
        tsqlstr = "select top " & ttopx & " * from " & tdatabase & " where " & tfpre & "hidden=0"
        tsqlorder =" order by t_lasttime desc"
这样他就以最后回复的时间来排序了。
调用语句:
{$=itransfer('retop', 'forum', 'topx=8;tnum=28;genre=forum;osql= and t_fid=0 and t_sid=论坛编号 and t_reply>o;')}

正确代码是:
{$=itransfer('retop', 'forum', 'topx=8;tnum=28;genre=forum;osql= and t_fid=0 and t_sid=论坛编号 and t_reply>0;')}

t_reply>o中,字母o要改成数字0
2010-08-06 09:25:42
6 楼
buxunchang
注册会员
积分 352
注册 2010-09-27
     
回复: 首页怎么调用论坛最新回复帖子
成功到是成功调用了  但是为什么我的只调用了一条记录,我自己添加了几条做测试的 。
2011-04-08 14:15:46
7 楼
buxunchang
注册会员
积分 352
注册 2010-09-27
     
回复: 首页怎么调用论坛最新回复帖子
不好意思  不知道怎么的 又行了  能调用了  问题就是要有人回复哪个帖子  才被调用  谢谢
2011-04-08 14:18:02