Skip to:
Content

Opened 11 months ago

Last modified 4 weeks ago

#5008 reopened enhancement

Groups, Friends, Profile and Activity widgets

Reported by: sooskriszta Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 1.0
Component: XProfile Keywords: needs-patch
Cc: trisha@…, mercijavier@…, vivek@…

Description

Core should come with ready-to-deploy widgets that show a preview of a user's:

  • groups
  • friends
  • profile/about
  • activity

Naturally, these widgets only deliver an output on member profile pages. e.g. see attached wireframes...

Attachments (9)

memberprofile-activity-1.9.png (183.6 KB) - added by sooskriszta 11 months ago.
memberprofile-friends-1.9.png (246.6 KB) - added by sooskriszta 11 months ago.
bp-core-widgets.php.patch (8.8 KB) - added by megainfo 9 months ago.
A patch for friends widget
bp-groups-widgets.php.patch (8.8 KB) - added by megainfo 9 months ago.
A patch for groups widget
widget-member-groups.js (1.3 KB) - added by megainfo 9 months ago.
Widget Member Groups JS Code
widget-member-groups.min.js (1.0 KB) - added by megainfo 9 months ago.
Widget Member Groups JS Code minifed
widget-friends.js (1.3 KB) - added by megainfo 9 months ago.
Widget Friends JS Code
widget-friends.min.js (980 bytes) - added by megainfo 9 months ago.
Widget Friends JS Code minified
5008.patch (18.9 KB) - added by williamsba1 6 months ago.

Download all attachments as: .zip

Change History (20)

comment:1 boonebgorges10 months ago

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

I like this idea. We can put it into a release when someone writes a patch for it.

comment:2 trishasalas9 months ago

  • Cc trisha@… added

comment:3 megainfo9 months ago

  • Resolution set to fixed
  • Status changed from new to closed

I write a patch for "my friends" and "my groups".

megainfo9 months ago

A patch for friends widget

megainfo9 months ago

A patch for groups widget

megainfo9 months ago

Widget Member Groups JS Code

megainfo9 months ago

Widget Member Groups JS Code minifed

megainfo9 months ago

Widget Friends JS Code

megainfo9 months ago

Widget Friends JS Code minified

comment:4 boonebgorges9 months ago

  • Keywords has-patch added; needs-patch removed
  • Milestone changed from Future Release to 1.9
  • Resolution fixed deleted
  • Status changed from closed to reopened

Thanks for the patches, megainfo - this looks like a good start. Moving to 1.9.

comment:5 mercime8 months ago

  • Cc mercijavier@… added

comment:6 sooskriszta8 months ago

  • Cc vivek@… added

comment:7 williamsba16 months ago

I updated the friends widget and migrated the code to a new bp-friends-widget.php file. I also cleaned it up a bit, verified proper escaping and sanitization, and only enqueue the JavaScript on the members profile page.

The group widget code still exists in the patch but hasn't been touched yet.

williamsba16 months ago

comment:8 boonebgorges6 months ago

In 7392:

Introduce Friends widget

This widget displays a list of the displayed user's friends, when viewing
a user's profile.

See #5008

Props megainfo, williamsba1

comment:9 boonebgorges6 months ago

  • Milestone changed from 1.9 to 2.0

I started working on the Groups version of this, but there are a number of UX and code-related issues that need to be sorted out with it.

  • The JS and AJAX should be written in such a way that we don't need duplication between the different Groups widgets
  • The language suggested for differentiating between the current (sitewide) Groups widget and this (member) Groups widget needs some work.

Punting to the next version for further work.

comment:10 DJPaul6 weeks ago

  • Keywords needs-patch added; has-patch removed

comment:11 boonebgorges4 weeks ago

  • Milestone changed from 2.0 to Future Release
Note: See TracTickets for help on using tickets.