Skip to:
Content

BuddyPress.org

Opened 15 years ago

Last modified 7 years ago

#2147 new enhancement

Ability to set the default filter for components

Reported by: nickrita's profile nickrita Owned by:
Milestone: Awaiting Contributions Priority: major
Severity: normal Version:
Component: Core Keywords: needs-patch
Cc:

Description

On the activity-stream there is always "no filter" the first option that is shown.
There should be a possibility for the admin to set another one, i.e. blog posts, as the filter that is shown first.

Change History (14)

#1 @apeatling
15 years ago

  • Milestone changed from 1.2.3 to 1.3

#2 @boonebgorges
14 years ago

  • Component set to Core
  • Milestone changed from 1.3 to 1.4

#3 @DJPaul
13 years ago

  • Component changed from Core to Activity
  • Keywords close added; default filter removed
  • Milestone changed from 1.6 to Future Release
  • Severity set to normal

Plugin or theme territory?

#4 @boonebgorges
13 years ago

  • Keywords close removed

I don't know that there's an easy way for a plugin to do it at the moment, except by using some JS. Let's leave it in Future Release, as I think it'd be pretty easy to do a bit of shuffling and at least provide a default with apply_filters() wrapped on it.

#5 @slaFFik
8 years ago

  • Component changed from Activity to Core

As we are aiming for site builders and developers, would be nice to have this eventually be done.

We should decide:
1) whether to give ability to filter out and/or modify the order and default value using PHP
2) create an admin area options for that.

I would go with route 2) by creating a separate page under "BuddyPress Settings" - "Personalization" (or "Tweaks" etc).

Relates to select#activity-order-by (same for members, groups, blogs, activity) (for easier code search).

Modifying component to Core, as it should be done for all components, so there should be a centralized solution.

#6 @boonebgorges
8 years ago

Building (1) will be a prerequisite for (2). I'd suggesting using this ticket to track (1), because I have a feeling it'll be much easier (and thus faster) than trying to decide where to stuff new options in our Dashboard UI.

#7 @slaFFik
8 years ago

  • Keywords needs-patch added
  • Milestone changed from Future Release to 2.8

Ok, I agree, lets do it for 2.8.

#8 @slaFFik
8 years ago

  • Summary changed from Option to set the default filtered activity to Ability to set the default filter for components

Related duplicate tickets to investigate: #5526, #5582 (has patch with UI, check it).

Last edited 8 years ago by slaFFik (previous) (diff)

#9 @DJPaul
8 years ago

  • Milestone changed from 2.8 to Future Release

#10 @tw2113
7 years ago

Just throwing this out there, as it's something I've recently utilized in a plugin I'm involved in.

Provide a filter for the spot in general, allowing for someone to change it that way, if they so desire. Also add a UI element to set a value. Then, in a callback attached to the filter, check for a set UI setting, and return that value if available, else return the default incoming filtered value.

#11 @boonebgorges
7 years ago

  • Milestone changed from Future Release to 3.0

I've had to wrestle with this for three different clients in the past month. Let's fix it for 3.0.

The technical trick is to remain compatible with the current cookie-based JS.

#12 @DJPaul
7 years ago

Fixing it for Nouveau-only is acceptable (it's a feature, not a bug fix).

#13 @hnla
7 years ago

As Paul says lets focus energies for features & enhancements on Nouveau. It makes sense that Nouveau is the project that presents many new features and framework to handle enhancements perhaps better than core or legacy can.

Two other good reasons might be that Nouveau already has the Customizer sections in place so adding a select option for admins is relatively trivial, and Activity stream is heavily JS/Ajaxed and so should be able to link through there to set defaults.

#14 @DJPaul
7 years ago

  • Milestone changed from 3.0 to Awaiting Contributions
Note: See TracTickets for help on using tickets.