View Full Version : Globally Exclude Forums Option?
Can we have one of these?
I mean.. if I have for example a forum with Newsfeeds that I dont want to appear at ALL in my vBACMPS, it would be really nice to be able to enter its forumid in the AdminCP and have it excluded.
My main issue is currently with the new post count in the welcome block. In the old version of the module, I had LEFT JOIN " . TABLE_PREFIX . "thread as thread ON (thread.threadid = post.threadid)
where thread.forumid NOT IN (0,76,31), but the new version appears to use the threadread table, which doesn't have a forumid field.
Any suggestions would be appreciated.
Brian
09-24-2006, 11:59 AM
You can still modify that query to also join the thread table and then use about the same code you posted above to exclude those forums. If you don't use the database thread marking system, then you'll also need to modify your includes/vba_cmps_plugin_newpost.php file and add an if() condition there so that the newposts column will only be updated if the post is not from one of your excluded forums.
I'll give it a go.. but, that forum is set to 'Not include posts in New Post Count' (or whatever the setting is in Forum Manager), shouldn't vBACMPS respect that, and not count it in New Posts?
Brian
09-25-2006, 07:29 PM
*Edit*
Upon further investigation, you're absolutely right. If you'll edit your includes/vba_cmps_include_newposts.php file and replace the contents with the below code then that should take care of the problem.
<?php
// ++=========================================================================++
error_reporting(E_ALL & ~E_NOTICE);
if (!$vbulletin->options['threadmarking'] AND $foruminfo['indexposts'])
{
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "session SET newposts = newposts+1 WHERE NOT ISNULL(newposts)");
}
?>
That does look like it should work.. but it doesn't. :(
..assuming you actually meant vba_cmps_plugin_newposts.php . ;)
I did it, then refreshed, the New Posts number increased. Maybe I need to wait a while, till the next RSS feed goes in.
Will report back when that happens.
Brian
10-01-2006, 06:19 PM
Yes, that was the file I meant. Sorry about that.
I'm not sure how that would still cause the counts to increase though. If anything, it seems like it should prevent it from working all together if there was a problem. If you are still having a problem with that though please let me know and I will look into it some more.
At a guess, it increased because the RSS feed had put some new posts in. :)
It's still not "working"... the 'index new posts' is set to No, and the count is increasing.
Nope, definitely not working. It's saying 110 new posts to me, and there's only a handful if we exclude that forum.
It's forum 76, if you can tell me how to exclude that...as a workaround. :)
Y'know.. I have just realised something that makes my whole point here rather invalid.
The setting is not 'Count Posts towards FORUM Post Count', but rather 'USER Post Count', which really blows. That should be an option. :(
I see you posted this (http://www.vbulletin.org/forum/showpost.php?p=353759&postcount=2), but looks like 3.6.x pulls it from the forumcache, so I am guessing we need to look at doing something to that. :)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.