elicip


disconnected
主题工具

怎樣才能不顯示某些版面的首頁新帖調用?

... 发表于 2008-7-12 14:04  ... 1072 次点击

在版面那個地方的新帖調用怎麼設置某些版面不顯示出來?不是上面的“最新討論”。謝謝。

本主题共有 2 条回复 | 回到顶部
#1 - 2008-7-12 15:21
Sai 桂林
http://www.saicn.com/bbs/cat-1.html
这里?

                while($idx_forum_topic_new = $db->fetch_array($query_new)) {
                        $data['newthread'][$idx_forum_topic_new[tid]]['tid'] = $idx_forum_topic_new['tid'];
                        $data['newthread'][$idx_forum_topic_new[tid]]['author'] = $idx_forum_topic_new['author'] ? $idx_forum_topic_new['author'] : '游客';
                        $data['newthread'][$idx_forum_topic_new[tid]]['views'] = $idx_forum_topic_new['views'];
                        $data['newthread'][$idx_forum_topic_new[tid]]['replies'] = $idx_forum_topic_new['replies'];
                        $data['newthread'][$idx_forum_topic_new[tid]]['subjectc'] = cutstr($idx_forum_topic_new['subject'], 50);
                }

改成
                while($idx_forum_topic_new = $db->fetch_array($query_new)) {
                        if ((!in_array($idx_forum_topic_new['fid'], $disabled_forums))) {
                                $data['newthread'][$idx_forum_topic_new[tid]]['tid'] = $idx_forum_topic_new['tid'];
                                $data['newthread'][$idx_forum_topic_new[tid]]['author'] = $idx_forum_topic_new['author'] ? $idx_forum_topic_new['author'] : '游客';
                                $data['newthread'][$idx_forum_topic_new[tid]]['views'] = $idx_forum_topic_new['views'];
                                $data['newthread'][$idx_forum_topic_new[tid]]['replies'] = $idx_forum_topic_new['replies'];
                                $data['newthread'][$idx_forum_topic_new[tid]]['subjectc'] = cutstr($idx_forum_topic_new['subject'], 50);
                        }
                }


                while($idx_forum_topic_reply = $db->fetch_array($query_reply)) {
                        $data['newreply'][$idx_forum_topic_reply[tid]]['tid'] = $idx_forum_topic_reply['tid'];
                        $data['newreply'][$idx_forum_topic_reply[tid]]['author'] = $idx_forum_topic_reply['author'] ? $idx_forum_topic_reply['author'] : '游客';
                        $data['newreply'][$idx_forum_topic_reply[tid]]['views'] = $idx_forum_topic_reply['views'];
                        $data['newreply'][$idx_forum_topic_reply[tid]]['replies'] = $idx_forum_topic_reply['replies'];
                        $data['newreply'][$idx_forum_topic_reply[tid]]['subjectc'] = cutstr($idx_forum_topic_reply['subject'], 50);
                }

改成
                while($idx_forum_topic_reply = $db->fetch_array($query_reply)) {
                        if ((!in_array($idx_forum_topic_reply['fid'], $disabled_forums))) {
                                $data['newreply'][$idx_forum_topic_reply[tid]]['tid'] = $idx_forum_topic_reply['tid'];
                                $data['newreply'][$idx_forum_topic_reply[tid]]['author'] = $idx_forum_topic_reply['author'] ? $idx_forum_topic_reply['author'] : '游客';
                                $data['newreply'][$idx_forum_topic_reply[tid]]['views'] = $idx_forum_topic_reply['views'];
                                $data['newreply'][$idx_forum_topic_reply[tid]]['replies'] = $idx_forum_topic_reply['replies'];
                                $data['newreply'][$idx_forum_topic_reply[tid]]['subjectc'] = cutstr($idx_forum_topic_reply['subject'], 50);
                        }
                }

如果是首页的随机主题就修改ParasyCore.php的rand_topic(),依样画瓢即可
#2 - 2008-7-12 17:59
elicip 地球
是論壇首頁的那個板塊下面的隨機主題。。這個我研究下
看完之后有话想说?那就帮楼主加盖一层吧!

在回复之前你需要先进行登录
用户名 / UID
密码
Project Parasynthesis | Based on Discuz! 5.5.0 | Thanks to Livid
About | Help | Developer | N2Design
清除 Cookies - 联系我们 - 无名杂志 - Archiver - Mobile
Processed in 0.077312 second(s), 8 queries, Gzip enabled