- Posts: 4
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.
RSMembership!
- Yves Kreis
- Topic Author
- Offline
- New Member
-
Less
More
4 years 1 week ago #1
by Yves Kreis
RSMembership! was created by Yves Kreis
Is it possible to create a plugin for RSMembership! to sync data to Moodle?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
4 years 1 week ago #2
by Antonio Durán
Replied by Antonio Durán on topic RSMembership!
I think we already looked into this in the past, but I cannot find any info, so I am not sure.
If you have the Rsmembership package, you can send it to us so we can evaluate if an integration is possible.
If you have the Rsmembership package, you can send it to us so we can evaluate if an integration is possible.
Please Log in or Create an account to join the conversation.
- Yves Kreis
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
4 years 1 week ago #3
by Yves Kreis
Replied by Yves Kreis on topic RSMembership!
Sure. Where to sent it to?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
4 years 1 week ago #4
by Antonio Durán
Replied by Antonio Durán on topic RSMembership!
You can send it antonio at joomdle dot com
Please Log in or Create an account to join the conversation.
- Yves Kreis
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
4 years 1 week ago #5
by Yves Kreis
Replied by Yves Kreis on topic RSMembership!
Mail delivery failed because of the zip file. Alternative?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
4 years 1 week ago #6
by Antonio Durán
Replied by Antonio Durán on topic RSMembership!
Hi.
I checked this, and it seems a plugin cannot be created, as Rsmembership is not prepared for that.
There's a way, though, using Custom PHP code (Accepted transaction) section. But you would need to do it manually for every membership, getting Moodle course ID for each one.
Example code:
require_once(JPATH_ADMINISTRATOR.'/components/com_joomdle/helpers/content.php');
$user_id = $transaction->user_id;
$user = JFactory::getUser ($user_id);
JoomdleHelperContent::enrolUser ($user->username, 2); // 2 is the Moodle database ID of the course (id field in mdl_course)
I checked this, and it seems a plugin cannot be created, as Rsmembership is not prepared for that.
There's a way, though, using Custom PHP code (Accepted transaction) section. But you would need to do it manually for every membership, getting Moodle course ID for each one.
Example code:
require_once(JPATH_ADMINISTRATOR.'/components/com_joomdle/helpers/content.php');
$user_id = $transaction->user_id;
$user = JFactory::getUser ($user_id);
JoomdleHelperContent::enrolUser ($user->username, 2); // 2 is the Moodle database ID of the course (id field in mdl_course)
Please Log in or Create an account to join the conversation.
- Yves Kreis
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
4 years 1 week ago #7
by Yves Kreis
Replied by Yves Kreis on topic RSMembership!
Oh, we misunderstood ourselves. I was talking about data mappings. Would that be possible?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
4 years 6 days ago #8
by Antonio Durán
Replied by Antonio Durán on topic RSMembership!
Ah, ok. I checked and there seems to be no events being fired when account info is modified, so I don't think it can be done, sorry.
Please Log in or Create an account to join the conversation.