By Andy on Tuesday, 18 March 2014
Replies 3
Likes 0
Views 859
Votes 0
Just working on some possible new directions for my site with the mighty EasySocial at the heart of it.

This is too specific to go down as a general feature request, and at this stage I'm just after a comment on whether it's the sort of thing that a coder should be able to achieve if I hired one....

Could I have a module (or similar) that would show when viewing a group and it's content would be derived from calculations on certain custom fields in the profiles of the members of that group.

To illustrate what I'm doing with an example:

A Weight Loss Group is established.... (Yep I can do that)....
My EasySocial members have a 'Weight' numeric field in their custom profiles.... (Yep I can do that)....
A module can take the group ID, then find the 'weight' of all the current members and show the 'Average Weight' of the group... (Can that be done!?!)

Thanks a million for any insight on if this is possible... Thanks
Hello Andy,

Yep, that is possible if you are customizing or creating a new module. I think the logic is fairly simple:

1. Create a module (doh)
2. The module should only be active when a group is viewed (Can be easily done by checking the view=xxx and option=com_easysocial)
3. Since you know that you are viewing the group, get a list of users from the group.
4. Get all the custom fields for each users on the group
5. Compute, Sum or do whatever you need to these custom field values and output them
·
Tuesday, 18 March 2014 10:43
·
0 Likes
·
0 Votes
·
0 Comments
·
AWESOME.

OK I know you guys are working on some mighty miracles now what with taking ES1.2 through to Stable and everything else.... maybe in a quieter future when you've all had the post-1.2 vacations you deserve , I'll bump this post to see if someone on the team has any time to do this as a custom paid project...

....or if anyone else is reading this thread and could build this kind of thing for me, then shout out as well and we'll discuss further....
·
Tuesday, 18 March 2014 21:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Andy
·
Tuesday, 18 March 2014 22:25
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post