× Feature Requests

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

auto enrol on signup

1 month 3 weeks ago
Rui Barroso
Posts: 3
More
Topic Author
auto enrol on signup #1
I have Joomdle working well with virtuemart.
When a user signup on Joomla i would like to auto enrol that user into a course. Is that possible? I tried the plugin enrol_signup but it's not working. Thanks in advance.

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

1 month 3 weeks ago
Antonio Durán
Posts: 7340
More
auto enrol on signup #2
Hi.

The enrol_signup plugin worked fine last time I tested, a month ago or so.
Did you enable the enrol method and add it to the course you want users to be enroled to upon registration?

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

1 month 3 weeks ago
Rui Barroso
Posts: 3
More
Topic Author
auto enrol on signup #3
On the course i want the new users to be enrolled i configured like this: www.screencast.com/t/4icOyyEsq1O k

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

1 month 2 weeks ago
Antonio Durán
Posts: 7340
More
auto enrol on signup #4
Hi. Let me do some testing and get back to you.

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

1 month 2 weeks ago
Antonio Durán
Posts: 7340
More
auto enrol on signup #5
Sorry for the delay, crazy week...

I tested, and found the same issue as you did:
- Signup plugin works for manual users in Moodle
- It does not seem to work now for users created in Joomla

I will investigate more to see if I can find the reason for this, and hopefully a fix. I will let you know as soon as possible.

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

1 month 2 weeks ago
Antonio Durán
Posts: 7340
More
auto enrol on signup #6
Hi again.

I found where the issue is.
In file moodle/auth/joomdle/auth.php, function create_joomdle_user_record we have a line commented out:
// \core\event\user_created::create_from_userid($newuser->id)->trigger();

That line is the one responsible for triggering the user_created event, used by the signup enrol plugin.
If you un-commnent that line, new users created from Joomla are correctly added to the course.

Now, I can't remember why I removed that line. Maybe it caused some issue, but I will need to do more testing to try and find out.

If you want, you can un-comment the line and test.

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

4 weeks 2 days ago
Rui Barroso
Posts: 3
More
Topic Author
auto enrol on signup #7
Hi Antonio,
Sorry for late reply. That line was not commented out on my file: www.screencast.com/t/Q51oKSYi k

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

3 weeks 5 days ago
Antonio Durán
Posts: 7340
More
auto enrol on signup #8
Ah ok.... then I don't know what is happening... I would need to debug on the site to try to find out.

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