Skip to:
Content

Opened 22 months ago

Last modified 5 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: 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 22 months ago.
memberprofile-friends-1.9.png (246.6 KB) - added by sooskriszta 22 months ago.
bp-core-widgets.php.patch (8.8 KB) - added by megainfo 20 months ago.
A patch for friends widget
bp-groups-widgets.php.patch (8.8 KB) - added by megainfo 20 months ago.
A patch for groups widget
widget-member-groups.js (1.3 KB) - added by megainfo 20 months ago.
Widget Member Groups JS Code
widget-member-groups.min.js (1.0 KB) - added by megainfo 20 months ago.
Widget Member Groups JS Code minifed
widget-friends.js (1.3 KB) - added by megainfo 20 months ago.
Widget Friends JS Code
widget-friends.min.js (980 bytes) - added by megainfo 20 months ago.
Widget Friends JS Code minified
5008.patch (18.9 KB) - added by williamsba1 17 months ago.

Download all attachments as: .zip

Change History (23)

comment:1 @boonebgorges21 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 @trishasalas20 months ago

  • Cc trisha@… added

comment:3 @megainfo20 months ago

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

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

@megainfo20 months ago

A patch for friends widget

@megainfo20 months ago

A patch for groups widget

@megainfo20 months ago

Widget Member Groups JS Code

@megainfo20 months ago

Widget Member Groups JS Code minifed

@megainfo20 months ago

Widget Friends JS Code

@megainfo20 months ago

Widget Friends JS Code minified

comment:4 @boonebgorges20 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 @mercime19 months ago

  • Cc mercijavier@… added

comment:6 @sooskriszta18 months ago

  • Cc vivek@… added

comment:7 @williamsba117 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.

@williamsba117 months ago

comment:8 @boonebgorges17 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 follow-up: @boonebgorges17 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 @DJPaul12 months ago

  • Keywords needs-patch added; has-patch removed

comment:11 @boonebgorges12 months ago

  • Milestone changed from 2.0 to Future Release

comment:12 in reply to: ↑ 9 @sooskriszta11 months ago

Replying to boonebgorges:

The language suggested for differentiating between the current (sitewide) Groups widget and this (member) Groups widget needs some work.

Shall we call this one "My Groups" (or less happily "Member of") and the sitewide group widget "Groups list"?

comment:13 @sooskriszta11 months ago

P.S. This Group widget should work even if Group Avatar is disabled per #4677 (in this case, it should simply offer a text list of the groups)

comment:14 @sooskriszta5 weeks ago

I'm a little confused - is this "My Groups" widget available in the core? I don't see it but the ticket has been closed as fixed once or twice.

Note: See TracTickets for help on using tickets.