![]() |
New Posts Question
Under new posts (recent posts) http://ringnews24.com/boxingforum/se...earchid=353377
Is there a mod available to stop users/forum sections from showing up in NEW POSTS? Thanks |
Anyone?
|
Why would you want to exclude forums / users from that search?
|
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. |
Edit the Recent Posts tab in the Navigation Manager, and change Target URL to this.
Code:
search.php?{vb:raw session.sessionurl}do=getnew&exclude=X,Y,Z&contenttype=vBForum_Post |
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} |
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: Code:
if (in_array($this->info['forum']['forumid'], array(X,Y,Z))) Hook Location: threadfpdata_presave (excludes new threads) Title: Exclude Forum Threads From Activity Stream Execution Order: 5 Plugin PHP Code: Code:
if (in_array($this->info['forum']['forumid'], array(X,Y,Z))) |
Thanks Ozzy47
I will give this a try. |
Let me know how it goes. :)
|
It didn't work Ozzy.
|
I just tested the one to exclude new threads, and it works fine.
--------------- Added [DATE]1382272911[/DATE] at [TIME]1382272911[/TIME] --------------- Also just tested the replies, and it works. |
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. |
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. |
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.
|
Actually, you can delete those and use this mod, [OzzModz] Exclude Forums From Activity Stream
And yes, that happens to me quite often to, cellarius. :) |
All times are GMT. The time now is 10:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|