![]() |
|
論壇說明 | 標記討論區已讀 |
歡迎您來到『史萊姆論壇』 ^___^ 您目前正以訪客的身份瀏覽本論壇,訪客所擁有的權限將受到限制,您可以瀏覽本論壇大部份的版區與文章,但您將無法參與任何討論或是使用私人訊息與其他會員交流。若您希望擁有完整的使用權限,請註冊成為我們的一份子,註冊的程序十分簡單、快速,而且最重要的是--註冊是完全免費的! 請點擊這裡:『註冊成為我們的一份子!』 |
|
主題工具 | 顯示模式 |
![]() |
#5 (permalink) |
長老會員
![]() |
![]() 搜尋:
$getthreadids = $DB_site->query(" SELECT " . iif($sortfield == 'voteavg', $votequery) . " threadid FROM " . TABLE_PREFIX . "thread AS thread $deljoin WHERE forumid = $foruminfo[forumid] AND sticky = 0 AND visible = 1 $globalignore $datecut $limitothers $delthreadlimit ORDER BY sticky DESC, $sqlsortfield $sqlsortorder LIMIT $limitlower, $perpage "); 替換為: $getthreadids = $DB_site->query(" SELECT " . iif($sortfield == 'voteavg', $votequery) . " threadid FROM " . TABLE_PREFIX . "thread AS thread $deljoin WHERE forumid = $foruminfo[forumid] AND sticky = 0 AND globalsticky = 0 AND visible = 1 $globalignore $datecut $limitothers $delthreadlimit ORDER BY sticky DESC, $sqlsortfield $sqlsortorder LIMIT $limitlower, $perpage "); 搜尋: $ids .= $stickyids; 在後面添加: $ids .= $globalstickyids; 搜尋: $threads = $DB_site->query(" SELECT $votequery $previewfield thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid, lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach " . iif($vboptions['threadsubscribed'] AND $bbuserinfo['userid'], ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed") . " " . iif(!$deljoin, ", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason") . " FROM " . TABLE_PREFIX . "thread AS thread " . iif(!$deljoin, " LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')") . " " . iif($vboptions['threadsubscribed'] AND $bbuserinfo['userid'], " LEFT JOIN " . TABLE_PREFIX . "subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = $bbuserinfo[userid])") . " $previewjoin WHERE thread.threadid IN (0$ids) ORDER BY sticky DESC, $sqlsortfield $sqlsortorder "); 替換為: $threads = $DB_site->query(" SELECT $votequery $previewfield thread.threadid, thread.title AS threadtitle, lastpost, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid, lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, globalsticky, votetotal, thread.attach " . iif($vboptions['threadsubscribed'] AND $bbuserinfo['userid'], ", NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed") . " " . iif(!$deljoin, ", NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason") . " FROM " . TABLE_PREFIX . "thread AS thread " . iif(!$deljoin, " LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')") . " " . iif($vboptions['threadsubscribed'] AND $bbuserinfo['userid'], " LEFT JOIN " . TABLE_PREFIX . "subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = $bbuserinfo[userid])") . " $previewjoin WHERE thread.threadid IN (0$ids) ORDER BY globalsticky, sticky DESC, $sqlsortfield $sqlsortorder "); 搜尋: $threadbits_sticky = ''; 在後面添加: $threadbits_globalsticky = ''; |
![]() |
送花文章: 1,
![]() |
向 貝斯特 送花的會員:
|