只调用最新回复的帖子:
{$=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 |