I've been trying to figure this out for weeks now and can't get it figured out. Ideally I like to filter the activity post by: today, week, month, and year. If anyone could please point me in the right direction, I'd greatly appriciate it. Thanks in advance.
migrated from stackoverflow.com Jul 2 '11 at 22:38
This question came from our site for professional and enthusiast programmers.
One approach you can take is add your options to the dropdown box, then filter into bp_ajax_querystring make sure that you set it up to high enough priority so that you get it pre-populated by the default handler.
In your filter modify the query string to include specific actvity ids, which you can pull from the database directly.
Maybe there's an easier approach but this one is most flexible (allows maximum customization)
below is one of my filters doing something similar note that I have hardcoded the include