- Posts: 253
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.
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.
[Closed] how to do something when user enrol to course
- saman سامان
-
Topic Author
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
Less
More
8 years 8 months ago - 7 years 6 months ago #1
by saman سامان
[Closed] how to do something when user enrol to course was created by saman سامان
hi
i want to call api or send my custom sms or do any other when user enrol into course.
how to that?
if need create plugin for this i want suggest plugin like this to read the code and make it.
i want to call api or send my custom sms or do any other when user enrol into course.
how to that?
if need create plugin for this i want suggest plugin like this to read the code and make it.
Last edit: 7 years 6 months ago by Antonio Durán.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
8 years 8 months ago - 8 years 8 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic how to do something when user enrol to course?
Hi.
Right now you cannot really do it without modifying Joomdle code, as Joomdle just calls the required stuff when enrolment happens (user points, activities, etc.).
That said, I have recently thought that it would be good to "relay" some events, so we can hook to them in Joomla directly. This would allow you to create a simple Joomla plugin to listed to the role_assigned event, and do whatever stuff you need.
I will move this thread to Feature Requests.
If you are interested, I could try to work on it next week and send you the changes, so you can test it and use it before next release.
Right now you cannot really do it without modifying Joomdle code, as Joomdle just calls the required stuff when enrolment happens (user points, activities, etc.).
That said, I have recently thought that it would be good to "relay" some events, so we can hook to them in Joomla directly. This would allow you to create a simple Joomla plugin to listed to the role_assigned event, and do whatever stuff you need.
I will move this thread to Feature Requests.
If you are interested, I could try to work on it next week and send you the changes, so you can test it and use it before next release.
Last edit: 8 years 8 months ago by Antonio Durán.
Please Log in or Create an account to join the conversation.
- saman سامان
-
Topic Author
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
Less
More
- Posts: 253
8 years 8 months ago #3
by saman سامان
Replied by saman سامان on topic how to do something when user enrol to course?
it's very good and if you do that i will very happy to test it.
tnx and wait for it...
tnx and wait for it...
Please Log in or Create an account to join the conversation.
- saman سامان
-
Topic Author
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
Less
More
- Posts: 253
8 years 7 months ago - 8 years 7 months ago #4
by saman سامان
Replied by saman سامان on topic how to do something when user enrol to course?
friendly bump... 
wait for your work...
wait for your work...
Last edit: 8 years 7 months ago by saman سامان.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
8 years 7 months ago #5
by Antonio Durán
Replied by Antonio Durán on topic how to do something when user enrol to course?
Sorry, it will have to wait until next week. Will let you know when you can try it out.
Please Log in or Create an account to join the conversation.
- saman سامان
-
Topic Author
- Offline
- Elite Member
-
- samansamani2[at]yahoo.com
Less
More
- Posts: 253
8 years 7 months ago #6
by saman سامان
Replied by saman سامان on topic how to do something when user enrol to course?
friendly bump...
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
8 years 7 months ago #7
by Antonio Durán
Replied by Antonio Durán on topic how to do something when user enrol to course?
I just sent you an email about this.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
8 years 5 months ago #8
by Antonio Durán
Replied by Antonio Durán on topic how to do something when user enrol to course?
For reference: this was added in 1.1.4.
Documentation is at: www.joomdle.com/wiki/Creating_plugins
Documentation is at: www.joomdle.com/wiki/Creating_plugins
Please Log in or Create an account to join the conversation.