The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
Anyone?
|
|
#3
|
||||
|
||||
|
Why would you want to exclude forums / users from that search?
|
|
#4
|
||||
|
||||
|
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. |
|
#5
|
||||
|
||||
|
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
|
|
#6
|
||||
|
||||
|
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} |
|
#7
|
||||
|
||||
|
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)))
{
$this->set_info('skip_activitystream', true);
}
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)))
{
$this->set_info('skip_activitystream', true);
}
|
|
#8
|
||||
|
||||
|
Thanks Ozzy47
I will give this a try. |
|
#9
|
||||
|
||||
|
Let me know how it goes.
|
|
#10
|
||||
|
||||
|
It didn't work Ozzy.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|