Quote:
Originally posted by DudeSicko
Yep have found it, but when i modify it, nothing happens, i still get the page ;( SNIFF
|
To make sure you are doing the correct change:
Find:
PHP Code:
// ###################### Start get new #######################
if ($action=="getnew") {
// generate query
// do it!
if ($bbuserinfo[userid]!=0 or $bbuserinfo[lastvisit]!=0) {
$forumsql=getallforumsql();
if (isset($forumid)) {
$forums=$DB_site->query("SELECT forumid FROM forum WHERE INSTR(CONCAT(',',parentlist,','),',".addslashes($forumid).",')>0");
$forumsql.=" AND forumid IN (0";
while ($forum=$DB_site->fetch_array($forums)) {
$forumsql.=",$forum[forumid]";
}
$forumsql.=") ";
}
Replace line
PHP Code:
$forumsql.=",$forum[forumid]";
As:
PHP Code:
if ($forum[forumid]!=X) {$forumsql.=",$forum[forumid]";}
Replace X with the forumid that will be excluded.
Is it exactly what you did?
Attention: This change will exclude the forum for GUESTS ONLY! If you logged in as a member, you have to make the change I referred for ~*Julie*~ above. In other words if you want to exlude the forum for BOTH guests and members apply BOTH changes..