discuz论坛主题帖子列表页面的最后回复人的url改成id形式的伪静态
2015-02-27 09:58
453 查看
1.修改\source\class\table\table_forum_thread.php的fetch_all_search方法,因为要把名字改成id,但是我看了下,查出的数据里面并没有最后的回复用户的id只有最后回复用户的密码,所以需要改下数据库查询语句
2,直接该默认模版位置的模版不行,不知道是什么原因,这个页面使用的模版是下面路径的模版,而不是默认位置的D:\192.168.1.117\bbs_ivf\public_html\template\eyoung_skin_csmb\forum\forumdisplay_list.htm
$data = DB::fetch_all("SELECT * FROM ".DB::table($this->get_table_name($tableid))." $forceindex".$this->search_condition($conditions)." $ordersql ".DB::limit($start, $limit));
------||------- ------||------- ------\/-------
if (DB::table($this->get_table_name($tableid))=='ivf_forum_thread') { $data = DB::fetch_all("SELECT ivf_forum_thread.*,b.uid AS `lastposter_id` FROM ".DB::table($this->get_table_name($tableid))." $forceindex"."LEFT JOIN ivf_ucenter_members AS b ON (`lastposter`=`username`)".$this->search_condition($conditions)." $ordersql ".DB::limit($start, $limit)); }else{ $data = DB::fetch_all("SELECT * FROM ".DB::table($this->get_table_name($tableid))." $forceindex".$this->search_condition($conditions)." $ordersql ".DB::limit($start, $limit)); }
2,直接该默认模版位置的模版不行,不知道是什么原因,这个页面使用的模版是下面路径的模版,而不是默认位置的D:\192.168.1.117\bbs_ivf\public_html\template\eyoung_skin_csmb\forum\forumdisplay_list.htm
<td class="by"> <cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&uid=$thread[lastposterenc]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite> <em><a href="{if $thread[digest] != -2 && !$thread[ordertype]}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]{if !$thread[ordertype]}&page={echo max(1, $thread[pages]);}{/if}{/if}">$thread[lastpost]</a></em> </td>
------||------- ------||------- ------\/-------
<td class="by"> <cite><!--{if $thread['lastposter']}--><a href="{if $thread[digest] != -2}home.php?mod=space&uid=$thread[lastposter_id]{else}forum.php?mod=viewthread&tid=$thread[tid]&page={echo max(1, $thread[pages]);}{/if}" c="1">$thread[lastposter]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite> <em><a rel="nofollow" href="{if $thread[digest] != -2 && !$thread[ordertype]}forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost$highlight#lastpost{else}forum.php?mod=viewthread&tid=$thread[tid]{if !$thread[ordertype]}&page={echo max(1, $thread[pages]);}{/if}{/if}">$thread[lastpost]</a></em> </td>
相关文章推荐
- Discuz!教程之如何隐藏版块主题列表中的最后回复时间或最后回复人
- Discuz 论坛 版主回复后在帖子列表后加版主回复字样
- 学习Discuz! X3.2记录:自定义论坛帖子字段,在门户中显示帖子列表
- Discuz!教程之论坛主题回复超过分页数了但是未分页的解决办法
- Discuz!手机版版块页面主题列表中隔几个主题插入一个广告位的方法
- Discuz!手机版版块页面主题列表中隔几个主题插入一个广告位的方法
- js中对arry数组的各种操作小结 瀑布流AJAX无刷新加载数据列表--当页面滚动到Id时再继续加载数据 web前端url传递值 js加密解密 HTML中让表单input等文本框为只读不可编辑的方法 js监听用户的键盘敲击事件,兼容各大主流浏览器 HTML特殊字符
- ASP.NET动态网站开发培训-35.互动论坛制作(三、完善主题列表页面)
- Discuz!开发之修改论坛TAG页面,实现主题按发帖时间倒序排序(新帖在前)
- discuz 只刪除帖子列表的快速发帖,不刪除帖子内的快速回复
- 论坛20大经典变态楼主主题和回复,暴强!
- jsp开发教程之 仿MOP论坛 三(帖子列表-上)
- 如何在discuz论坛中添加独立页面
- 网站首页显示论坛的最新帖子和回复,终于搞定
- DropDownList无限级分类(灵活控制显示形式) ASP.net|论坛 - 深博技术论坛 - Powered by Discuz!NT
- 论坛20大经典变态楼主主题和回复
- IIS下开启DISCUZ论坛URL静态化功能
- OpenAPI在帖子列表和回复功能的应用
- 论坛里点击别人帖子下面的回复,回复标题变成“回复 24# 的帖子”
- 新论坛帖子ID,论坛ID都将用Guid类型来记录的原因分析