discuz论坛主题帖子列表页面的最后回复人的url改成id形式的伪静态
来源:互联网 发布:苏大网络接入认证系统 编辑:程序博客网 时间:2024/04/28 07:22
1.修改\source\class\table\table_forum_thread.php的fetch_all_search方法,因为要把名字改成id,但是我看了下,查出的数据里面并没有最后的回复用户的id只有最后回复用户的密码,所以需要改下数据库查询语句
$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>
0 0
- discuz论坛主题帖子列表页面的最后回复人的url改成id形式的伪静态
- discuz!主题列表页显示每个帖子的版块名
- Discuz!教程之如何隐藏版块主题列表中的最后回复时间或最后回复人
- Discuz!论坛教程之去掉帖子列表页的附件图标的方法
- discuz论坛列表页调用帖子第一张图片。最简单的办法之一
- Discuz! X2.5 个人空间主题列表帖子分页地址出错的解决方法
- Discuz 论坛 版主回复后在帖子列表后加版主回复字样
- discuzX 论坛列表页获取帖子内容页主题的pid
- 使用ClientSocket控件实现CSDN论坛帖子的自动回复
- 使用ClientSocket控件实现CSDN论坛帖子的自动回复
- discuz论坛开启帖子内容下方的“顶”“踩”功能
- destoon调用discuz论坛中带图片帖子的方法
- Discuz!开发之论坛主题列表页标题长度的限制方法
- Discuz! X2.5论坛不同环境配置伪静态的方法
- Discuz!手机版版块页面主题列表中隔几个主题插入一个广告位的方法
- Discuz!手机版版块页面主题列表中隔几个主题插入一个广告位的方法
- ocourse.net论坛主题和帖子的删除功能
- OpenAPI在帖子列表和回复功能的应用
- 01 APP被苹果APPStore拒绝的各种原因
- 分享一个很有意思的js,动态时钟显示,能跟随鼠标移动
- Hibernate关系映射(二)一对一双向外键关联@OneToOne Annotation方式
- oracle设置登陆密码过期时间
- 2014年学到的几件事情,和大家分享
- discuz论坛主题帖子列表页面的最后回复人的url改成id形式的伪静态
- mysql实现搜索多行数据合并成一行
- 活动目录
- 【Java并发编程】之二:线程中断(含代码)
- WSUS 离线更新
- objective-C字符串NSArray和NSMutablearray常用API
- 如何知道一个大数据解决方案是否适合您的组织
- ACE_Task 理解
- Adding the Action Bar - Adding Action Buttons