× Other Plugins

Membership Pro and groups

5 years 8 months ago
FeetFirst
Posts: 24
More
Topic Author
Membership Pro and groups #1
Hi, I've successfully installed Joomdle and I have today purchased the Membership Pro app so that I am able to add courses to the current plans available for my customers to subscribe to.

The majority of my plans are group plans. So in the case of my business, a driving instructor purchases a group plan which he is the group admin for and he then adds his learner drivers to his plan as group members. On the Joomla side the group admin can only see members of their group, will this follow into Moodle as well? Or should the group admin add their group members on the Moodle side instead?

I have set the Joomla user groups on the Joomdle end to Teachers group = group admin and Students group = group access

On the Moodle side, I have set Use Joomla user groups to yes.

I would be grateful if you could advise if there are any further settings I need to configure to achieve this.

Many thanks

Please Log in or Create an account to join the conversation.

5 years 8 months ago
Antonio Durán
Posts: 7815
More
Membership Pro and groups #2
Hi.

I am sorry, but I don't fully understand your setup.

Membership Pro integration does not work with Moodle groups: it will just add the student to the courses lined in plan.

How are you setting teachers to be instructors in Moodle courses?
If a course is shared between instructors, they would see all students in Moolde.

> I have set the Joomla user groups on the Joomdle end to Teachers group = group admin and Students group = group access

This sync is in the other direction: when you enrol into a course as a student, it adds you to the linked Joomla group.

Please Log in or Create an account to join the conversation.

5 years 8 months ago
FeetFirst
Posts: 24
More
Topic Author
Membership Pro and groups #3
Thanks for your response. I must admit I've struggled to understand how the setup works as I am new to Moodle as well as Joomdle and your response does clarify a couple of things. The groups I have in Joomla and using Membership Pro are already well established for the past 12 months and they work well on the Joomla website side of things.

I am looking for a way to add Moodle courses to my current business model - however from a data protection point of view it is essential that instructors only see their own students and not all students. Reading the Moodle documentation they suggest that using groups is the best way to keep each teacher/instructors students private. Do you have any suggestions if any of your other plugins work with Moodle groups?

Please Log in or Create an account to join the conversation.

5 years 8 months ago
Antonio Durán
Posts: 7815
More
Membership Pro and groups #4
> Do you have any suggestions if any of your other plugins work with Moodle groups?

It's not that easy as using an integration plugin that supports groups.

First thing you would need is see if you can get what you want in Moodle, even doing things manually. ie: create a course, create groups, add teachers, and see if you can it to work as you want restricting students access by teachers based on groups. A quick search gave me this:
moodle.org/mod/forum/discuss.php?d=200598 k

So, I would try to set things manually, to first make sure Moodle can do things as you want. I have not worked a lot with Moodle groups, so I don't have all the info.

Then, if Moodle can do what you want, you would need it to be automatic, so when an instructor buys a plan:
- He is added as teacher in linked course(s)
- A new group is added, and teacher added to it

Finally, when an instructor adds a student to a plan:
- He should be added to the course(s) and group

To be honest, this all sounds quite complicated, and it would require additional development, as it cannot be done witg existing plugins.
That is ,if it is even possible. More investigation would be needed to be sure.

Please Log in or Create an account to join the conversation.

5 years 8 months ago
FeetFirst
Posts: 24
More
Topic Author
Membership Pro and groups #5
Ok, no worries, yes you are right, I would like it all automated and yes it is complicated.
I will have a play around with it manually like you suggest to see if it is possible in Moodle first.
Thanks for your speedy responses

Tracey

Please Log in or Create an account to join the conversation.

5 years 8 months ago
FeetFirst
Posts: 24
More
Topic Author
Membership Pro and groups #6
Hi, I have found a solution using Community Builder and a Moodle plugin which automatically places users into cohorts based on information in their profile.

I've set up a new profile field in Community Builder which is generated by a query on the database. This is successfully entering the group admin id in the Community Builder profile.

I've downloaded your Community Builder plugins and in the Joomdle configuration set Community Builder as an additional source. However, when I go to mappings my new field in Moodle is showing but my new field in Community Builder is not in the drop-down list and so I am unable to link them. This is the last linking bit that I need. Any suggestions?

Please Log in or Create an account to join the conversation.

5 years 8 months ago
FeetFirst
Posts: 24
More
Topic Author
Membership Pro and groups #7
I've just tested adding new fields in Community Builder and if they are basic fields they show up ok in mappings so I know the configuration is all ok. I guess that suggests that mapping brings over basic fields in Community Builder but not query fields?

If that is the case is that something that could be developed? And how much would it cost?
The data is all there, ready in a query field to be mapped to Moodle :)

Please Log in or Create an account to join the conversation.

5 years 8 months ago
FeetFirst
Posts: 24
More
Topic Author
Membership Pro and groups #8
Sorry me again! The community builder forum support suggested this:

"We're not the developers of Joomdle so I've no clue why it can't map the query field. My guess is because the query field is just querying data from elsewhere and is not actually stored to their profile (the _comprofiler table), but that shouldn't be a problem if Joomdle uses getFields API. You'd need to talk to the developers of Joomdle regarding this as I'm guessing they're just pulling data from the database directly to push to Moodle. They can use the below API, which will work for grabbing the data of any field type (including Query fields) instead of accessing raw database data.

www.joomlapolis.com/documentation/279-co...hrough-getfields-api k

For their usage they'll want to be sure $output is set to "php" so they get raw PHP values to pass along. This will respond with an array value that they'll need to handle."

I'm hoping this will help to resolve the issue and map my query data field?

Tracey

Please Log in or Create an account to join the conversation.

5 years 8 months ago
Antonio Durán
Posts: 7815
More
Membership Pro and groups #9
Hi.

Thanks for all the info.

I was going to try to add a field like yours, but I am not sure how I should do it. Is this required? www.joomlapolis.com/addons/cb-query-field k
If so, I would need it in order to test. You can send it by email to development at joomdle if you want.

Please Log in or Create an account to join the conversation.

5 years 8 months ago
FeetFirst
Posts: 24
More
Topic Author
Membership Pro and groups #10
Great, yes that is the plugin I used. I've just sent an email with all the details. Thanks! Tracey

Please Log in or Create an account to join the conversation.