- Posts: 7909
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.
Joomdle Course Reports
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
11 years 7 months ago #11
by Antonio Durán
Replied by Antonio Durán on topic Joomdle Course Reports
Great to know that it is working, it is looking good.
Please let us know if you want to share your changes when it is ready, so we can add it for a future release.
Please let us know if you want to share your changes when it is ready, so we can add it for a future release.
Please Log in or Create an account to join the conversation.
- Simon Ball
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
11 years 7 months ago - 11 years 7 months ago #12
by Simon Ball
Replied by Simon Ball on topic Joomdle Course Reports
Hi Antonio,
I'm not in the office today but, will package it up tomorrow morning. Would you prefer me to shoot the changes over to your SVN repository or just post the zip here? I've since created a new Moodle report also in order to better adjust to wrapper mode but, I'll shoot that one off to Moodle extensions.
For future development, do you know if (through Joomdle) it is possible to handle role management in Moodle or would that be a new Web Service? I had a look through the Web API documentation and couldn't find anything. The ability to manage the "Team Manager" from within Joomla! where the actual subscription process takes place would be of boon for business.
I'm not in the office today but, will package it up tomorrow morning. Would you prefer me to shoot the changes over to your SVN repository or just post the zip here? I've since created a new Moodle report also in order to better adjust to wrapper mode but, I'll shoot that one off to Moodle extensions.
For future development, do you know if (through Joomdle) it is possible to handle role management in Moodle or would that be a new Web Service? I had a look through the Web API documentation and couldn't find anything. The ability to manage the "Team Manager" from within Joomla! where the actual subscription process takes place would be of boon for business.
Last edit: 11 years 7 months ago by Simon Ball.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
11 years 7 months ago #13
by Antonio Durán
Replied by Antonio Durán on topic Joomdle Course Reports
You can send me the ZIP file to antonio@joomdle.com, as I am not really using the SVN repository right now. Thank you!
As for your question: can you explain more? Not sure what you mean with role managment.
As for your question: can you explain more? Not sure what you mean with role managment.
Please Log in or Create an account to join the conversation.
- Simon Ball
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
11 years 7 months ago - 11 years 7 months ago #14
by Simon Ball
Replied by Simon Ball on topic Joomdle Course Reports
Hi Antonio,
Sorry for the delay. I know I said last week but, I caught "something" and took to the bed for a while; all's well that ends well though. By the time I have posted this, you should also have an email from me containing the changes. The reason I'm posting here to begin with is for the sake of writing a changelog making life much simpler for you
Moodle auth plugin - Joomdle
version.php
land.php
db/services.php
helpers/externallib.php
Joomla Component - com_joomdle
administrator/components/com_joomdle/models/forms/config.xml
Module - My Courses
mod_joomdle_my_courses.php
tmpl/default.php
For my implementation, I have created a custom "my courses" module which takes not just courses the user is enrolled on but also checks whether or not the user has a current subscription through Akeeba Subscriptions. Included in the zip is a modified version of "mod_joomdle_my_courses" but, here is the necessary steps to integrate it's functionality elsewhere (using my_courses as example)
In the module file itself, we add a check to see whether global configuration is set to show completion links and further if the current user is a "Team Manager".
In the template file itself:
Future Development
when I earlier questioned whether or not we can effect Moodle when installing Joomdle, it was because currently an administrator will have to go in to Moodle and manually create/assign the "Team Manager" role. It would be great if at least the creation of this role can be carried out on the users behalf, it opens up a door for future development where teams can be managed from the "friendly" Joomla side of the LMS without having to touch Moodle too much.
Sorry for the delay. I know I said last week but, I caught "something" and took to the bed for a while; all's well that ends well though. By the time I have posted this, you should also have an email from me containing the changes. The reason I'm posting here to begin with is for the sake of writing a changelog making life much simpler for you
Moodle auth plugin - Joomdle
version.php
- Version bump so that Moodle can "Upgrade Database" and pickup new Web Services
land.php
- 39 - Add URL parameter fetch for group id
- 98 - Add completion report to the wrapper action
- 156 - Add completion report to the action
db/services.php
- 724 - Add Service descriptor for "joomdle_user_has_role"
- 731 - Add Service descriptor for "joomdle_get_course_groups_with_user"
helpers/externallib.php
- 3647 - Add parameter/return/core function for "user_has_role" function
- 3698 - Add parameter/return/core function for "get_course_groups_with_user" function
Joomla Component - com_joomdle
administrator/components/com_joomdle/models/forms/config.xml
- 103 - Add text parameter for "moodle_team_manager_id"
- 223 - Add Radio button for choosing whether or not to show group completion links "joomdle_show_completion_button". A global on/off button
- 530 - Add Radio button for choosing whether or not to show completion links in the course details view "joomdle_show_completion_button". This is more of a placeholder at this time
Module - My Courses
mod_joomdle_my_courses.php
- 43 - Add check that user is allowed to access reports
tmpl/default.php
- 76 - Add display code
For my implementation, I have created a custom "my courses" module which takes not just courses the user is enrolled on but also checks whether or not the user has a current subscription through Akeeba Subscriptions. Included in the zip is a modified version of "mod_joomdle_my_courses" but, here is the necessary steps to integrate it's functionality elsewhere (using my_courses as example)
In the module file itself, we add a check to see whether global configuration is set to show completion links and further if the current user is a "Team Manager".
Code:
if($objJoomdleParams->get(
'joomdle_show_completion_button',
true
)) {
/* Check whether the user is enrolled in order to further fetch status */
$objResponse = JoomdleHelperContent::call_method(
'user_has_role',
$strUserName,
$params->get('moodle_team_manager_id');
);
if($objResponse['ismanager'] == true) {
$blnShowReportLink = true;
}
}
In the template file itself:
Code:
if($blnShowReportLink) {
/* Perform the API call to return any course groups the user may be part of */
$aryCourseGroups = JoomdleHelperContent::call_method(
'get_course_groups_with_user',
$strUserName,
$aryCourse['id']
);
/* Put together the base Joomdle link for accessing completion report */
$aryQueryParameters = array(
'username' => $strUserName,
'token' => $strSessionToken,
'mtype' => 'completion_report',
'id' => $aryCourse['id'],
'use_wrapper' => $blnOpenInWrapper,
'Itemid' => $intMenuID,
'lang' => $strURLLangCode
);
if($aryCourseGroups) {
/* It's possible that the user may be part of more than one group but, because of early days just make sure and use first return. This next line can be taken out in the future with some upgrade */
$aryCourseGroup = current($aryCourseGroups);
$aryQueryParameters['group_id'] = $aryCourseGroup['id'];
$strReportHTML = $moodle_auth_land_url . http_build_query($aryQueryParameters);
/* Present the link which will take the user to the team report */
echo '<a href="'.$strReportHTML.'">Team report</a>';
}
}
Future Development
when I earlier questioned whether or not we can effect Moodle when installing Joomdle, it was because currently an administrator will have to go in to Moodle and manually create/assign the "Team Manager" role. It would be great if at least the creation of this role can be carried out on the users behalf, it opens up a door for future development where teams can be managed from the "friendly" Joomla side of the LMS without having to touch Moodle too much.
Last edit: 11 years 7 months ago by Simon Ball. Reason: Little grammar correction
Please Log in or Create an account to join the conversation.
- Simon Ball
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
11 years 7 months ago #15
by Simon Ball
Replied by Simon Ball on topic Joomdle Course Reports
Hi Antonio,
It has been a while and I just wanted to check whether the submitted version of Joomdle meets your coding standards and/or you want me to make any changes to it. I don't expect you to do all the work after all!
It has been a while and I just wanted to check whether the submitted version of Joomdle meets your coding standards and/or you want me to make any changes to it. I don't expect you to do all the work after all!
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
11 years 7 months ago #16
by Antonio Durán
Replied by Antonio Durán on topic Joomdle Course Reports
Hi Simon. I am sorry, but I have not yet taken a look, as I have been quite busy last week. Hopefully I will find some this one, and get back to you.
Please Log in or Create an account to join the conversation.
- Simon Ball
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 17
11 years 7 months ago #17
by Simon Ball
Replied by Simon Ball on topic Joomdle Course Reports
neither a rush nor worries, It means I'll be able to send you the updated version anyhoo 
I've made some changes since sending you that zip so, for evaluation dont' worry about the version i sent you. I'll provide a new zip soon.
To make life much simpler, maybe you'd even like to go so far as having a Skype conversation on the matter some time?
I've made some changes since sending you that zip so, for evaluation dont' worry about the version i sent you. I'll provide a new zip soon.
To make life much simpler, maybe you'd even like to go so far as having a Skype conversation on the matter some time?
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
11 years 6 months ago #18
by Antonio Durán
Replied by Antonio Durán on topic Joomdle Course Reports
Another week passed by .. Just wanted to let you know that I didn't forget about this, just could not find time for it.
I have been thinking, though, and I think me may wait on this until me move on more with what you said:
> it opens up a door for future development where teams can be managed from the "friendly" Joomla side of the LMS without having to touch Moodle too much.
I already have a "joomdlemanager" component I started some time ago,but I left it aside for other things.
This is because I don't see the "my courses" module as a good place to have this. Nor any other views in joomdle, as they are for the user, or at most, for the students.
That said, we could include your code already in the moodle side, so you can upgrade in next release, and keep your modified my_courses module working.
I will wait for your final copy, and then study the new functions you added in Moodle. If everything seems fine, I will add them as is.
Same for the changes to land.php.
Then, more ahead, we could talk about things you would like to see in a "manager" application for joomdle.
I have been thinking, though, and I think me may wait on this until me move on more with what you said:
> it opens up a door for future development where teams can be managed from the "friendly" Joomla side of the LMS without having to touch Moodle too much.
I already have a "joomdlemanager" component I started some time ago,but I left it aside for other things.
This is because I don't see the "my courses" module as a good place to have this. Nor any other views in joomdle, as they are for the user, or at most, for the students.
That said, we could include your code already in the moodle side, so you can upgrade in next release, and keep your modified my_courses module working.
I will wait for your final copy, and then study the new functions you added in Moodle. If everything seems fine, I will add them as is.
Same for the changes to land.php.
Then, more ahead, we could talk about things you would like to see in a "manager" application for joomdle.
Please Log in or Create an account to join the conversation.
- yahaira
- Offline
- New Member
-
11 years 4 months ago #19
by yahaira
Replied by yahaira on topic Joomdle Course Reports
hello 
Question about the Joomla User Groups setting on the Configuration page of Joomdle (I am using v.9)
There are two options: Students and Teachers and next to each I have the option to select from a drop down which Joomla user group I want it to default to.
Is it possible to include more than just the Students and Teachers roles in the configuration? I would love the ability to have custom roles from moodle display and allow me to set which Joomla User Group they were assigned to.
Thanks,
Question about the Joomla User Groups setting on the Configuration page of Joomdle (I am using v.9)
There are two options: Students and Teachers and next to each I have the option to select from a drop down which Joomla user group I want it to default to.
Is it possible to include more than just the Students and Teachers roles in the configuration? I would love the ability to have custom roles from moodle display and allow me to set which Joomla User Group they were assigned to.
Thanks,
Please Log in or Create an account to join the conversation.