Log in

View Full Version : Excluding forums from New Post search. Except for certain usergroups? VB3


accyroy
03-25-2004, 05:14 PM
Some time ago I found the way to stop the New Posts link from showing certain forums (such as Anything Goes or a silly forum).

This is how to do it in case anyone would like to know how:
Thanks to assasingod for supplying this solution...
Search.php find:
WHERE forumid IN(" . implode(', ', $forumids) . ")
Replace with:
WHERE forumid IN (". implode(',', $forumids).") AND forumid NOT IN(x)

Where x is forum ID and if you want to exclude more than one then seperate forum ID's with a comma...

The thing is, some of my users obviously like these forums and still would like to view them after pressing New Posts. I would like to make usergroups that they can join so that it will still show the forum in the New Posts section..

Can anyone help with this please?

sheila
05-11-2004, 09:19 PM
The thing is, some of my users obviously like these forums and still would like to view them after pressing New Posts. I would like to make usergroups that they can join so that it will still show the forum in the New Posts section..

Can anyone help with this please?

I just figured this out on my site. I created a second search.php (searchex.php) and had the secondary search (the one that excluded forums) use searchxx.php with your code. I left the other one alone.

On my navbar, I now have New Posts and New Posts (non-journal). The first searches all the forums, and the second excludes the ones I chose.

Does that make sense?

saree
01-14-2006, 11:10 AM
i would like to find the way to do that in vb 3.5.3

any body can help