View Full Version : New Posts Question
ringnews24
10-15-2013, 07:42 AM
Under new posts (recent posts) http://ringnews24.com/boxingforum/search.php?searchid=353377
Is there a mod available to stop users/forum sections from showing up in NEW POSTS?
Thanks
ringnews24
10-20-2013, 10:09 AM
Anyone?
ozzy47
10-20-2013, 10:12 AM
Why would you want to exclude forums / users from that search?
ringnews24
10-20-2013, 10:24 AM
I have a boxing forum and when users log on and check recent posts, it contains spoilers (fight results). And on a boxing forum the members dont like it. They want to still talk about boxing before they get a chance to download or watch the fight.
I would like to exclude some users and certain sections.
I have a few users that auto post boxing news, and I would like to exclude some users also.
ozzy47
10-20-2013, 10:34 AM
Edit the Recent Posts tab in the Navigation Manager, and change Target URL to this.
search.php?{vb:raw session.sessionurl}do=getnew&exclude=X,Y,Z&content type=vBForum_Post
X,Y,Z being the forums that you want to exclude. I don't think there is a way to exclude certain users.
ringnews24
10-20-2013, 11:12 AM
Thanks Ozzy47.
That worked brilliant.
Is there anyway to remove it from the activity stream also???
The Target url in activity stream says - activity.php{session.sessionurl_q}
ozzy47
10-20-2013, 11:26 AM
You would have to add two new plugins. ACP --> Plugins & Products --> Add New Plugin
This is untested, but it should work.
Product: vBulletin
Hook Location: postdata_presave (excludes replies to existing threads)
Title: Exclude Forum Posts From Activity Stream
Execution Order: 5
Plugin PHP Code:
if (in_array($this->info['forum']['forumid'], array(X,Y,Z)))
{
$this->set_info('skip_activitystream', true);
}Product: vBulletin
Hook Location: threadfpdata_presave (excludes new threads)
Title: Exclude Forum Threads From Activity Stream
Execution Order: 5
Plugin PHP Code:
if (in_array($this->info['forum']['forumid'], array(X,Y,Z)))
{
$this->set_info('skip_activitystream', true);
}X,Y,Z are of course the forums you want to exclude. This will only work on new threads/posts not existing ones.
ringnews24
10-20-2013, 11:28 AM
Thanks Ozzy47
I will give this a try.
ozzy47
10-20-2013, 11:29 AM
Let me know how it goes. :)
ringnews24
10-20-2013, 11:34 AM
It didn't work Ozzy.
ozzy47
10-20-2013, 11:39 AM
I just tested the one to exclude new threads, and it works fine.
--------------- Added 1382272911 at 1382272911 ---------------
Also just tested the replies, and it works.
ringnews24
10-20-2013, 11:50 AM
Thats weird, double checked the plugins and they are perfect like you said to do.
Not sure whys its not working.
I can leave Activity stream un-enabled and make do with the Recent Posts.
Thanks for all your help Ozzy.
ozzy47
10-20-2013, 11:56 AM
Are you viewing old posts / threads or newly posted ones? This will only work on new threads / posts.
I am going to turn this into a mod, so you can set the forums in a ACP option.
cellarius
10-20-2013, 12:48 PM
Not wanting to make anyone look stupid, but this happens to me all the time: ringnews, have you made sure the plugins are active? I always forget to set that last option to yes when saving a new plugin.
ozzy47
10-20-2013, 12:50 PM
Actually, you can delete those and use this mod, [OzzModz] Exclude Forums From Activity Stream (https://vborg.vbsupport.ru/showthread.php?t=303633)
And yes, that happens to me quite often to, cellarius. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.