Skip to:
Content

Opened 3 years ago

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

Download all attachments as: .zip

Change History (23)

#1 @boonebgorges
3 years 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.

#2 @trishasalas
3 years ago

  • Cc trisha@… added

#3 @megainfo
3 years ago

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

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

@megainfo
3 years ago

A patch for friends widget

@megainfo
3 years ago

A patch for groups widget

@megainfo
3 years ago

Widget Member Groups JS Code

@megainfo
3 years ago

Widget Member Groups JS Code minifed

@megainfo
3 years ago

Widget Friends JS Code

@megainfo
3 years ago

Widget Friends JS Code minified

#4 @boonebgorges
3 years 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.

#5 @mercime
3 years ago

  • Cc mercijavier@… added

#6 @sooskriszta
3 years ago

  • Cc vivek@… added

#7 @williamsba1
3 years 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.

@williamsba1
3 years ago

#8 @boonebgorges
3 years 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

#9 follow-up: @boonebgorges
3 years 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.

#10 @DJPaul
2 years ago

  • Keywords needs-patch added; has-patch removed

#11 @boonebgorges
2 years ago

  • Milestone changed from 2.0 to Future Release

#12 in reply to: ↑ 9 @sooskriszta
2 years 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"?

#13 @sooskriszta
2 years 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)

#14 @sooskriszta
18 months 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.