- Posts: 7
Joomdle 1.0 Installation
adding joomla user in moodle
- sandeep
- Topic Author
- Offline
- New Member
-
Less
More
6 years 9 months ago #1
by sandeep
adding joomla user in moodle was created by sandeep
Hi
Like Joomdle plugin as a functionality to add joomla user in moode, I was looking for same functionality to be included an external php script ( outside joomla) where i can add a user in moodle programmatic ally .
Is it possible by calling some joomdle function / service ? Any pointer to a example will be very much appreciated
Sandeep
Like Joomdle plugin as a functionality to add joomla user in moode, I was looking for same functionality to be included an external php script ( outside joomla) where i can add a user in moodle programmatic ally .
Is it possible by calling some joomdle function / service ? Any pointer to a example will be very much appreciated
Sandeep
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
6 years 9 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic adding joomla user in moodle
Hi.
Joomdle function to create Moodle user depends on Joomla: user must exist there to get the info to create user in Moodle.
For this you would use create_joomdle_user function.
But if you want to create users not related to Joomla, you could use Moodle native web services, as explained here:
azhowto.com/creating-a-moodle-user-via-web-services/
Joomdle function to create Moodle user depends on Joomla: user must exist there to get the info to create user in Moodle.
For this you would use create_joomdle_user function.
But if you want to create users not related to Joomla, you could use Moodle native web services, as explained here:
azhowto.com/creating-a-moodle-user-via-web-services/
Please Log in or Create an account to join the conversation.
- sandeep
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 7
6 years 9 months ago #3
by sandeep
Replied by sandeep on topic adding joomla user in moodle
Thanks for prompt response. Yes ,user exists in joomla .
can you give example of how to use create_joomdle_user function in php script ?
Sandeep
can you give example of how to use create_joomdle_user function in php script ?
Sandeep
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
6 years 9 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic adding joomla user in moodle
If you are not calling it from Joomla, you would need to rewrite call_method function.
From Joomla it is simple:
From Joomla it is simple:
Code:
require_once(JPATH_ADMINISTRATOR.'/components/com_joomdle/helpers/content.php');
JoomdleHelperContent::call_method ("create_joomdle_user", $username);
Please Log in or Create an account to join the conversation.