Quote:
Originally Posted by Oblivion Knight
Here's an addon to exclude forums that I've quickly thrown together..
Find:
Code:
$limit = "10"; // Number of posts displayed.
Add below:
Code:
$excludeforums = ""; // The forums you want to exclude from being displayed, put their ID here.
Find:
Code:
if ($limit) {
$limited = "LIMIT $limit";
}
Add below:
Code:
if ($excludeforums == "" or $excludeforums <= "0") {
$quarter = "no";
} else {
$excfid = explode(",",$excludeforums); $i = 0; $a = count($excfid);
while ($i < $a) {
$wheresql .= " AND thread.forumid!='$excfid[$i]'"; ++$i;
}
}
Find:
Code:
SELECT threadid,title,lastpost,lastposter
Add on the same line:
Find:
Add on the same line:
All done.. 
|
I followed these instructions to exclude a private forum, but its not working, its still showing the post on the homepage. Any ideas why?
BTW, I'm running 3.7.3