PDA

View Full Version : vBulletin 4 Request - need help to exclude a forum id from activity stream


X-or
08-19-2016, 08:06 PM
There was a plugin workaround posted on vb.com forums years ago, but it appears to be inoperative on latest vb4.

http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/411481-activity-stream-excluding

Anybody know how to fix such a plugin? Thanks

MarkFL
08-21-2016, 04:33 AM
The best suggestion I could find is here:

Exclude specific users/usergroups or forum sections from activity stream? (http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/411710-exclude-specific-users-usergroups-or-forum-sections-from-activity-stream)

Pay particular attention to posts #4 and #15 by Lynne.

Because there appear to be no relevant plugin hooks and query strings, this will unfortunately require core file hacks.

You could wrap the relevant activity stream templates in conditionals, but I suspect that may throw off the displayed number of elements grabbed via the "More Activity" link. I think the best solution is to alter the query as Lynne suggests rather than hide posts after they have been retrieved from the db. :)

BirdOPrey5
08-21-2016, 01:03 PM
It's nn longer on vBulletin.org but there is a free mod here: http://ozzmodz.com/showthread.php/40-OzzModz-Exclude-Forums-From-Activity-Stream

Paul M
08-21-2016, 02:00 PM
Most queries in vB4 have hooks associated with them.

If these dont, I suggest adding a hook request to Jira.
While 4.2.4 & 4.2.5 are still in Beta/Alpha, simple requests like that I can generally accomodate.

X-or
08-21-2016, 11:00 PM
Thanks for the replies

@ MarkFL
I might try that as a last resort, none of my core files are edited and I would hate starting on that road :(

@BirdOPrey5
I have tried that mod and it doesn't work on latest vb

@Paul M
AFAIK hooks were requested and added for this
postdata_presave & threaddata_presave
but the plugins just don't work anymore for some reason, possibly broken after an update

http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/411481-activity-stream-excluding

Paul M
08-22-2016, 02:59 PM
Nothing has changed as far as those hooks are concerned, bear in mind they will only stop new posts/threads goin in the stream list, they wont have any effect on whats already there, nor will it have any effect on the queries mentioned in that other thread.

X-or
08-22-2016, 07:13 PM
Nothing has changed as far as those hooks are concerned, bear in mind they will only stop new posts/threads goin in the stream list, they wont have any effect on whats already there, nor will it have any effect on the queries mentioned in that other thread.

Thank you, I figured that out, yet, for some reason neither the plugins suggested on vb.com nor ooz mod (which basically uses these plugins and hooks) could prevent new posts & threads from being added to the activity stream. Either they were never functional or they were broken by some change in the activity stream scripts. They were posted over four years ago after all.