vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   New Posts Question (https://vborg.vbsupport.ru/showthread.php?t=303419)

ringnews24 10-15-2013 07:42 AM

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

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.

Code:

search.php?{vb:raw session.sessionurl}do=getnew&exclude=X,Y,Z&contenttype=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:
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:
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 [DATE]1382272911[/DATE] at [TIME]1382272911[/TIME] ---------------

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

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
  • Page Generation 0.01066 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete