View Full Version : get certain forums to NOT show up in the "new Posts" querey?
kofoid
02-24-2006, 04:03 PM
How do you get a particular forum to NOT show up when a user click on "new posts?"
I think this may have to be a mod....
Andreas
02-24-2006, 04:09 PM
*** Untested ***
ALTER TABLE forum ADD ignoregnp TINYINT UNSIGNED NOT NULL DEFAULT '0'
forumdata_start
$this->validfields['ignoregnp'] = array(TYPE_BOOL, REQ_NO);
forumadmin_add_default
$forum['ignoregnp'] = 0;
forumadmin_edit_form
print_yes_no_row("Exclude this Forum from 'New Posts'", 'forum[ignoregnp]', $forum['ignoregnp']);
search_getnew_start
foreach ($vbulletin->forumcache AS $forum)
{
if ($forum['ignoregnp')
{
$vbulletin->GPC['exclude'] .= ",$forum[forumid]";
}
}
Or, if you want to give the users a choice whil forums they want to exclude, check my profile.
kofoid
02-24-2006, 04:10 PM
THANKS!!! Now quick question - where do I add the code?
Andreas
02-24-2006, 04:19 PM
<a href="https://vborg.vbsupport.ru/showpost.php?p=909200&postcount=2" target="_blank">https://vborg.vbsupport.ru/showp...00&postcount=2</a>
kofoid
02-24-2006, 04:49 PM
OK let me RE ASK the question so I don't get an answer like I did before. You specified code but I do not understand what should be changed or WHERE the code needs to be added. Can you or someone else help me to understand?
Andreas
02-24-2006, 04:52 PM
The hook locations for the plugins are clearly pointed out in my previous post?
If you do not understand plugins, I suggest to read the manual:
http://www.vbulletin.com/docs/html/plugin_system
kofoid
02-25-2006, 02:09 PM
OK I am really uncomfortable doing this, Although it would probably be easy for someone more experienced to handle. Any chance of someone creating a plugin for me? I will pay
Princeton
02-25-2006, 02:24 PM
Laura,
I'm not sure if you are aware of this but threads/posts in forums that are not visible to the end-user will not display when NEW POSTS is clicked.
Another thing you should try is ... not sure if this works with NEW POSTS
when editing a forum within ADMINCP/ Forums & Moderators disable INDEX NEW POST IN SEARCH ENGINE (this option will prevent anyone from being able to search in forum)
If this is not what you want ... I recommend following what ANDREAS mentioned above.
kofoid
02-25-2006, 09:29 PM
Thanks Joe! I will give it a shot
Andreas
02-25-2006, 09:31 PM
Index New Posts in Search Engine does not have an effect on Get New 'Posts/Get Daily
DeanoG
02-27-2006, 12:30 PM
*** Untested ***
search_getnew_start
foreach ($vbulletin->forumcache AS $forum)
{
if ($forum['ignoregnp')
{
$vbulletin->GPC['exclude'] .= ",$forum[forumid]";
}
}
there is a slight error in the Code above,
if ($forum['ignoregnp')
should be...
if ($forum['ignoregnp'])
apart from the small typo .... this works perfecty.
Thanks Andreas
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.