The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Exclude certain forums from "New Posts"
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"); $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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|