Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How do I stop BP from overriding default parameters passed to the template loop?


3sixty
Participant

@3sixty

Last-viewed pages are saved in a cookie. So if I set the filter on the activity stream to “Show Blog Comments”, a cookie to that effect is stored in my browser. Next time I load the page on the same browser, “Show Blog Comments” is shown.

In global.js, I believe the function that handles this is bp_init_activity(). If you comment the call to this function out (around line 15 of global.js), it should stop the cookie from overriding your default settings.

This works! Thank you Boone.

Andy’s approach is also a nice one because it preserves the cookie functionality if you want to use it elsewhere.

Skip to toolbar