vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Activity Stream how to exclude question (https://vborg.vbsupport.ru/showthread.php?t=295995)

Wired1979 03-11-2013 08:23 PM

Activity Stream how to exclude question
 
Is there a way to exclude selected forums from the activity stream display? if not a selected forum, possible a selected user?

I have a user set up called RSS_FEEDS for several RSS Feed forums.
I would prefer that these RSS feed posts not show up in the activity stream.

thanks

New Joe 03-12-2013 02:01 AM

Currently, to exclude certain forums from the activity stream, in vb/activitiystream/view/perm/forum/post.php and thread.php, add this to the query:
PHP Code:

AND                t.forumid NOT IN (2

change 2 to whatever forum you like or add several like:
PHP Code:

AND                t.forumid NOT IN (2,4,6,8

http://www.vbulletin.com/forum/forum...tivity-stream?

SnaKe |WiH| 04-01-2013 03:56 PM

where do I add this in the php? I know you say to the query....but I am not that up on code...so any more insight would be great!

Wired1979 04-01-2013 05:01 PM

Quote:

Originally Posted by SnaKe |WiH| (Post 2413652)
where do I add this in the php? I know you say to the query....but I am not that up on code...so any more insight would be great!

this is what my post.php ended up looking like, i did not paste the entire file here:

WHERE
p.postid IN (" . implode(",", array_keys($this->content['postid'])) . ")
AND
p.visible <> 2
AND
t.visible <> 2
AND
t.forumid NOT IN (66,67,40,41,63,86,94,101)

SnaKe |WiH| 04-01-2013 05:15 PM

thank you. thought that is where it was, just wanted to be sure.

--------------- Added [DATE]1364903658[/DATE] at [TIME]1364903658[/TIME] ---------------

The php edit worked great for getting the posts out of the activity stream, but is there a way to eliminate them from the unread posts also?


All times are GMT. The time now is 06:48 AM.

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.00974 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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