I know there are at least two hacks here that let users exclude certain forums from get new posts, but I'm just looking to list a few myself as a plugin.
Basically, I have added a field to the forum table. Let's call this field "getnew" with a default value of 0. 0 Will mean that it is included in get new post results. 1 Will mean it is not.
Then I have a query set like so:
Code:
$forums = $db->query_read("SELECT forumid FROM
" . TABLE_PREFIX . "forum AS forum
WHERE getnew=1");
In the search.php file, there are some sections that include:
$vbulletin->GPC['exclude']...etc...
I can use the search_getnew_start hook to add what I need, but I'm not positive on how to set up the second part. I have the initial query, but I need to get it into an array and then have all of forumid's in the array excluded from Get New Posts.
I know it's a simple few lines of code but I'm not familiar with this part of the vB code enough to get it to work. I've been trying different formats with no luck.
If anybody can help out I would appreciate it a lot.
~007