[buddypress-trac] [BuddyPress] #3276: Sorting your activities
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Fri Jun 10 10:03:15 UTC 2011
#3276: Sorting your activities
--------------------------------+-----------------------------
Reporter: framp | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 1.2.8
Keywords: sorting activities |
--------------------------------+-----------------------------
I’ve modified a couple of buddypress files trying to implement a sorting
capability into buddypress.
Now I’m able to modify the way in which activities get sorted by setting 2
cookies using javascript on the client.
$_COOKIE[ ' order ' ] =
- date_recorded (default, will order the activities by time),
- favourites (will order the activities by number of favourites),
- comments (will order the activities by number of comments)
$_COOKIE[ ' sort ' ] = ASC, DESC
Unfortunately I’m not really experienced with the buddypress codebase and
those features may be obtained through better ways.
By the way, I would like to know if you’re interested in implementing the
few lines I’ve modified, in your software.
Patch attached (on the latest stable, 1.2.8) ;)
Best regards,
Federico Rampazzo
--
Ticket URL: <https://trac.buddypress.org/ticket/3276>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list