How To / General

Add to existing course Group

  • Justin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 3 months ago #1 by Justin
Add to existing course Group was created by Justin
Hi

I am looking for some way by using groups hide certain content in a course
What I am trying to achieve is if I have a course "Math" under the course I have created groups "Group A", "Group B" and "Group C"
In joomla I havee three learners and all three are already linked to the "Math" course and have access but I want to add each to a separate group in moodle based on what user group they are added to in Joomla.

Basically I don't want to enroll a student into a course based on a group, but rather into a group within a course.

I hope I am making sense.

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

More
8 years 3 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Add to existing course Group
Hi.

First thing to know is how you are doing enrolments. There is a solution for this already if you use Payplans for enrolments, using the PayPlans Groups plugin.
So, how do you enrol students?

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

  • Justin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 3 months ago #3 by Justin
Replied by Justin on topic Add to existing course Group
Hi Antonio

Students enroll using Hikashop.
Does the Hikashop Groups Plugin work in the same way?

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

More
8 years 3 months ago - 8 years 3 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Add to existing course Group
Hi Justin.

It works in a similar way. Docs are here:
www.joomdle.com/wiki/Hikashop_Groups

In this case, you would have a Hikashop product for the course. In product characteristics you put the groups, so the buyer needs to select one of them.

But it seems this does not work for you, as you said:
> I want to add each to a separate group in moodle based on what user group they are added to in Joomla.

So, I don't think you can to what you want right now. A new plugin would be required, that would check Joomla user group and the make the call to enrol in Moodle to the right course group. I guess you would also need a component to define the mappings between Joomla user groups and Moodle course groups. Please write to development@joomdle.com if you are interested in getting this developed for you.
Last edit: 8 years 3 months ago by Antonio Durán.

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

  • Justin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 3 months ago #5 by Justin
Replied by Justin on topic Add to existing course Group
Hi Antonio
Thanks for the feedback, would I be able to install the groups plugin on my site, so that I can test it to see exactly how and if it could work while still using the Hikashop Order plugin, so that I don't disrupt the site. Or should I rather create a new website to test with.

What I am trying to achieve is this some of our courses contain different subjects, it happens from time to time that we get people who enroll that have already completed some of the subjects so I would like to use Moodle's groups to hide the subjects that they don't need to do,
So my thinking is this: create a group for each subject in the course, Hikashop must then on registration enroll the person into all the groups automatically, we can then go manual un-enroll the person from the subjects that they don't need to do.

On the other side I also want a way to allow a person to enroll for a regulatory exam course that we offer, the course would give them 1 chance to attempt the exam, once attempted they would need to purchase additional attempts via Hikashop which in turn would unhide the additional exam attempt in Moodle.

Whether this is done using user groups or any other method is irrelevant.

Would the Groups plugin work for this.

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

More
8 years 3 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Add to existing course Group
Hi Justin.

You should create a test site, as the Hikashop plugin replaces the normal Hikashop orders plugin.

> So my thinking is this: create a group for each subject in the course, Hikashop must then on registration enroll the person into all the groups automatically, we can then go manual un-enroll the person from the subjects that they don't need to do.

Then you don't need to enrol in specific groups, as you want to enrol in all and manually remove some.
This would be easier, as you could do it to ways:
- Create new hikashop plugin to replace orders one, that aside from enroling into course, will put user in all course groups.
- Or create a Moodle plugin that acts on user enrolments, adding user to all course groups

Both options would need new development.

As for the regulatory exam: I don't think you can do what you want (unhiding exams) without quite some coding.
Maybe what you could do is:
- Create course with only one exam. Allow only one try to submit it in Moodle.
- If user fails, he cannot take quiz again, but he can go to the shop and buy the course again.
- A new plugin would be needed to unerol user from this course before enroling him again

Using groups plugin for this task seems difficult: user would need to purchase Course A Try 1, Course A Try 2.... in the shop.

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

  • Justin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 3 months ago #7 by Justin
Replied by Justin on topic Add to existing course Group
Would you be able to give me a rough estimate what creating this type of plugin would cost

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

More
8 years 3 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic Add to existing course Group
Which plugin? The one for the groups, or for the regulatory exam?

I was thinking about option 2) for the groups, and thought that maybe there was something already made. So I found this:
moodle.org/plugins/tool_groupautoenrol
With a very simple mod you can make it work to enrol users in all groups. I tested and it works fine. If you want me to send you the modified package, please send an email.

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

  • Justin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 2 months ago #9 by Justin
Replied by Justin on topic Add to existing course Group
Hi Antonio

I have setup a new website for testing purposes, but I can't seem figure out how to use the group plugin
In Moodle I created a course with 5 groups
Name:Group 1 ID: g1
Name:Group 2 ID: g2
Name:Group 3 ID: g3





then I end up wtih this

XML-RPC Error (23604497): Can not find data record in database table groups. | ERRORCODE: invalidrecord

What am I doing wrong

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

  • Justin
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
8 years 2 months ago #10 by Justin
Replied by Justin on topic Add to existing course Group
Never mind, I was using the wrong ID, it works now

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