View Full Version : How to hide certain forums from appearing from "view new posts" function?
Big J
01-05-2004, 07:23 PM
Hello,
Does anyone know of a way to make it so specific forums do not appear in the list when users use the 'view new posts' function?
Thanks!
Big J
01-06-2004, 06:45 PM
Bump
assassingod
01-06-2004, 06:51 PM
For which vB version? A quick to do it in vB3 is to open search.php and replace line 2036 with:
WHERE forumid IN (". implode(',', $forumids).") AND forumid NOT IN(x)
Replace x with the forumid.
Gary King
01-06-2004, 08:00 PM
For which vB version? A quick to do it in vB3 is to open search.php and replace line 2036 with:
WHERE forumid IN (". implode(',', $forumids).") AND forumid NOT IN(x)
Replace x with the forumid.
Might want to tell what the line contains because some people modified their search.php :)
assassingod
01-07-2004, 06:17 PM
I had to copy that from another screen and I couldn't remember the entire line so the line number had to do. If someone can post the entire line for me then i'll add that to my post.
Gary King
01-07-2004, 07:19 PM
Replace this line I believe:
WHERE forumid IN(" . implode(', ', $forumids) . ")
assassingod
01-07-2004, 08:19 PM
Looks right to me. Thanks Gary
mini2
01-07-2004, 10:52 PM
I excluded my off topic and banter forum from being searchable (and thus also showing in new posts), and set up a public group called OT&B Fans that people could join which would allow you to search the forum/view it in new posts if you wanted to.
Seemed like a decent compromise.
accyroy
01-08-2004, 06:05 AM
mini2, could you please help out a new VB'er. This is exactly what I want to do with my forums but don't know what/where to change things! cheers..
mini2
01-08-2004, 07:17 AM
This was on vBulletin 3, so if you're on vBulletin 2 I cant help, if you're on three, let me know and I'll post a brief "how to", it's very easy.
Big J
01-08-2004, 06:56 PM
Thanks for the feed back everyone! I'm running 2.2.9. i would like it so people can still use the search functions, just have it hidden from the "View New Posts" feature. If there's no way around it, then I guess I'll just have to make it so people cant search it.
Thanks again everyone!
accyroy
01-09-2004, 01:26 AM
This was on vBulletin 3, so if you're on vBulletin 2 I cant help, if you're on three, let me know and I'll post a brief "how to", it's very easy.
I'm on VB3 so if you could post the quick how to it would be grand!
Thanks!
Steve St.Lauren
03-18-2004, 07:23 AM
For vB2.x look in the search.php file for:
$action=="getnew"
scroll down about 19 lines and you'll see two lines that start with:
$wheresql.=
Below those two lines add:
$wheresql.=" AND thread.forumid<>##";
replace ## with the forumid of the forum you don't want to include in view new posts. You can put multiple forums multiple forums in there by adding another AND thread.forumid<>## inside the quotes. You can find the forum ID by going to that forum and looking in the url. You can also do the same thing in the "View Today's Active Threads" for users not logged in by searching for:
$action=="getdaily"
in the same file and making the same changes.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.