frumbert / wp2moodle--wordpress-

Wordpress to Moodle pass through authentication plugin (wordpress end)
27 stars 23 forks source link

No enrol #3

Closed gitsunited closed 9 years ago

gitsunited commented 10 years ago

Hi, firstly, this plugin is great. Thank you.

I've got it working, but have come across a problem. The login works, creating a profile on both moodle and wordpress. However, it has stopped enrolling users in a course. I've used this shortcode (which was working) " [wp2moodle cohort='masts']open[/wp2moodle] ".

When the link is selected, the user is taken to the moodle site with their new profile, but there is no course enrolment.

I have created a new course, added an enrolment method of a cohort, then used the cohort name (in this case "masts") in the shortcode as above. Please could you pass on any advice? C

frumbert commented 10 years ago

It sounds like confusion between the cohort name and cohort id. The cohort sync works with the "cohort id". See images on http://wordpress.frumbert.org/examples/, and let me know if you have any other issues.

gitsunited commented 10 years ago

You are right! I'm very sorry for reading the instructions improperly. I thought I had used the ID also, but I must have made a mistake. It works really well. thank you very much.