本主题共有 2 条回复 | 回到顶部
#1 - 2008-7-12 15:21
http://www.saicn.com/bbs/cat-1.html 
这里?
把
改成
改成
如果是首页的随机主题就修改ParasyCore.php的rand_topic(),依样画瓢即可

这里?
把
CODE:
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);
}
$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);
}
改成
CODE:
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);
}
}
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);
}
}
CODE:
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);
}
$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);
}
改成
CODE:
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);
}
}
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(),依样画瓢即可


在回复之前你需要先进行登录