百蹊助学社区

 找回密码
 加入百蹊

QQ登录

只需一步,快速开始

搜索
开启左侧

交换友情连接

[复制链接]
t2000 发表于 2006-8-31 10:52 | 显示全部楼层 |阅读模式
永宁助学, http://www.luguhu.org
永宁助学-湖思茶屋论坛, http://www.luguhu.org/bbs
我们已经在论坛上做了贵站的连接了
Molly 发表于 2006-8-31 10:56 | 显示全部楼层
呵呵,欢迎老朋友,以后常来坐坐!

连接的事情己转交相关义工处理。
baixi_esc 发表于 2006-8-31 10:59 | 显示全部楼层
欢迎猩猩
baixi_esc 发表于 2006-8-31 11:30 | 显示全部楼层
联接已添加
 楼主| t2000 发表于 2006-8-31 11:36 | 显示全部楼层
:)谢谢,都是用diszuc论坛,以后在技术上可以多交流
一生悬命 发表于 2006-8-31 11:41 | 显示全部楼层
哇,太好了!

先提问:看看我们的『 制度公告版 』 http://www.baixi.org/bbs/forum.php?mod=forumdisplay&fid=9 ,很乱的,有没有什么好办法按照帖子编号排序呢?
 楼主| t2000 发表于 2006-8-31 12:17 | 显示全部楼层
可以的,修改forumdisplay.php

$query = $db->query("SELECT $dotadd1 t.* FROM {$tablepre}threads t $dotadd2
  WHERE t.fid='$fid' $filteradd AND $displayorderadd
  ORDER BY t.displayorder DESC, t.$orderby $ascdesc
  LIMIT ".($filter == 'digest' || $filter == 'type' ? $start_limit : $start_limit - $stickycount).", $tpp");
增加一个条件判断:
if (9==$fid)
{
$query = $db->query("SELECT $dotadd1 t.* FROM {$tablepre}threads t $dotadd2
  WHERE t.fid='$fid' $filteradd AND $displayorderadd
  ORDER BY t.subject DESC, t.$orderby $ascdesc
  LIMIT ".($filter == 'digest' || $filter == 'type' ? $start_limit : $start_limit - $stickycount).", $tpp");
}
else {
$query = $db->query("SELECT $dotadd1 t.* FROM {$tablepre}threads t $dotadd2
  WHERE t.fid='$fid' $filteradd AND $displayorderadd
  ORDER BY t.displayorder DESC, t.$orderby $ascdesc
  LIMIT ".($filter == 'digest' || $filter == 'type' ? $start_limit : $start_limit - $stickycount).", $tpp");
}
就可以了
一生悬命 发表于 2006-8-31 12:23 | 显示全部楼层
谢谢!

我转告我们的技术义工,有问题再来问。
一生悬命 发表于 2006-9-17 14:34 | 显示全部楼层
程序已经用上了,在此鸣谢。
您需要登录后才可以回帖 登录 | 加入百蹊

本版积分规则

小黑屋|手机版|百蹊助学网 ( 粤ICP备14008989号 )

GMT+8, 2024-5-7 13:39 , Processed in 0.064863 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表