English 中文(简体)
BuddyPress: Stop overriding default parameters passed to the template loop?
原标题:

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

For example, on the Activity page, let s say you want BP to "forget" the user s last viewed parameter (like "My Forums" or "@user Mentions") and go right back to All Members or My Friends every time you reload the page.

I tried deleting the contents of ajax.php and global.js, and the overriding behavior still happens. Where do I look next?

问题回答

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.





相关问题
How to suppress/remove PHP session cookie

I need to suppress an already set session cookie header, but I cannot find any way to do this. Why? I need to make an image, sent by a PHP script, cacheable by the end user; this image is used to ...

Remove Cookies from JS or CSS files

Bizarrely my javascript and css files have cookies (says Firebug). I use Zend Framework and I think it has to do with it. Could I change the .htaccess that CSS or JS files don t link to the ZF or is ...

httplib2, how to set more than one cookie?

As you are probably aware, more often than not, an HTTP server will send more than just a session_id cookie; however, httplib2 handles cookies with a dictionary, like this: response, content = http....

cookies control

what tool wold you recommend me to use in order to see what data are stored in my cookies while i m browsing the net. I m a beginner into webdev field(6 months php experience) and i m curious to see ...

热门标签