×
How To / General
How to create a Joomla menu item that redirect to Moodle Home?
1 year 5 months ago
Topic Author
How to create a Joomla menu item that redirect to Moodle Home? #1
I would like to create a joomla menu item visible only for registered users (synchronized with moodle) that redirect the user to moodle home logged in.
Is it possible?
Any Ideas?
Is it possible?
Any Ideas?
Please Log in or Create an account to join the conversation.
1 year 5 months ago
How to create a Joomla menu item that redirect to Moodle Home? #2
Hi.
If you are using the wrapper, you can create a menu item of type Joomdle-> Moodle Wrapper.
If not, you can just use an URL menu item pointing to Moodle URL.
If you are using the wrapper, you can create a menu item of type Joomdle-> Moodle Wrapper.
If not, you can just use an URL menu item pointing to Moodle URL.
Please Log in or Create an account to join the conversation.
1 year 5 months ago
Topic Author
How to create a Joomla menu item that redirect to Moodle Home? #3
Thanks for your help,
ok, but the user will not logged in Moodle.
I'm sorry maybe I not was clear.
I would like that a user is able to land to moodle home page logged in.
Antonio Durán wrote: If not, you can just use an URL menu item pointing to Moodle URL.
ok, but the user will not logged in Moodle.
I'm sorry maybe I not was clear.
I would like that a user is able to land to moodle home page logged in.
Please Log in or Create an account to join the conversation.
1 year 5 months ago
How to create a Joomla menu item that redirect to Moodle Home? #4
You don't need to do anything for that. Joomdle will log the user via plugin when you log in to Joomla, so you should be able to open a new window with Moodle and be logged in without any other actions.
If you are not automatically logged in, your Joomdle setup is not working properly.
If you are not automatically logged in, your Joomdle setup is not working properly.
Please Log in or Create an account to join the conversation.
1 year 5 months ago
Topic Author
How to create a Joomla menu item that redirect to Moodle Home? #5
Thanks you so much Antonio, you're answer is very useful for me and help me a lot. Now I know where the problem is, and now I know what is the normal joomdle behavior.
In fact my users are not using the default joomla login but are using another component (Membership Pro).
Probably I need to create a plugin.
Thanks for your time.
In fact my users are not using the default joomla login but are using another component (Membership Pro).
Probably I need to create a plugin.
Thanks for your time.
Please Log in or Create an account to join the conversation.
1 year 5 months ago
How to create a Joomla menu item that redirect to Moodle Home? #6
> Probably I need to create a plugin.
No, I don't think so.
You should test with normal Joomla login and get SSO to work, then go from there.
No, I don't think so.
You should test with normal Joomla login and get SSO to work, then go from there.
Please Log in or Create an account to join the conversation.
1 year 4 months ago
Topic Author
How to create a Joomla menu item that redirect to Moodle Home? #7
Hi Antonio,
Thanks for your help, I'm still working on this problem.
First some details:
Joomla 3.10.12
Moodle 4.1.2+ (Build: 20230401)
php 7.4 on both
Joomla is installed in www.naturopatiaitaliana.it k
Moodle is installed in elearning.naturopatiaitaliana.it
Jommdle System Check: all OK
User that I'm testing isa Joomla, Moodle, Joomdle user.
Protocol curl REST
Plugin System - Joomdlesession enabled
User hooks - Joomdle enabled onUserLogin event
SSO enabled on joomla component and joomdle auth on Moodle
In short:
Joomla login form and MembershipPro Login form have the same behavior.
After the login, User is logged in joomla but if is going to moodle is not logged, have to repeat the login on moodle.
If the user after the login is consulting "My Courses" and follow the link of a course, is landing in Moodle course logged in.
If I check moodle log:
Every login attempt is genereting these 3 lines of log.
5 dicembre 2023 Joomdle Connector - Sistema Sistema Richiamo di funzione web service The web service function 'joomdle_update_session' has been called. ws 185.my.ip.num
5 dicembre 2023 PM Utente SIN - Sistema Sistema Autenticazione utente The user with id '97' has logged in. web 185.my.ip.num
5 dicembre 2023 PM Joomdle Connector - Sistema Sistema Richiamo di funzione web service The web service function 'joomdle_user_id' has been called. ws 185.my.ip.num
Looks like that the user is logged but the session is not shared.
Test that I've done:
on a local machine: same behavior
on local machine, moodle installed in a sub directory of joomla: same behavior
on the same server: mint joomla installation and mint moodle installation: same behavior
on the same server: mint joomla and mint moodle installed in a subfolder: same beavior
on docker: same behavior.
Thanks for your help, I'm still working on this problem.
First some details:
Joomla 3.10.12
Moodle 4.1.2+ (Build: 20230401)
php 7.4 on both
Joomla is installed in www.naturopatiaitaliana.it k
Moodle is installed in elearning.naturopatiaitaliana.it
Jommdle System Check: all OK
User that I'm testing isa Joomla, Moodle, Joomdle user.
Protocol curl REST
Plugin System - Joomdlesession enabled
User hooks - Joomdle enabled onUserLogin event
SSO enabled on joomla component and joomdle auth on Moodle
In short:
Joomla login form and MembershipPro Login form have the same behavior.
After the login, User is logged in joomla but if is going to moodle is not logged, have to repeat the login on moodle.
If the user after the login is consulting "My Courses" and follow the link of a course, is landing in Moodle course logged in.
If I check moodle log:
Every login attempt is genereting these 3 lines of log.
5 dicembre 2023 Joomdle Connector - Sistema Sistema Richiamo di funzione web service The web service function 'joomdle_update_session' has been called. ws 185.my.ip.num
5 dicembre 2023 PM Utente SIN - Sistema Sistema Autenticazione utente The user with id '97' has logged in. web 185.my.ip.num
5 dicembre 2023 PM Joomdle Connector - Sistema Sistema Richiamo di funzione web service The web service function 'joomdle_user_id' has been called. ws 185.my.ip.num
Looks like that the user is logged but the session is not shared.
Test that I've done:
on a local machine: same behavior
on local machine, moodle installed in a sub directory of joomla: same behavior
on the same server: mint joomla installation and mint moodle installation: same behavior
on the same server: mint joomla and mint moodle installed in a subfolder: same beavior
on docker: same behavior.
Please Log in or Create an account to join the conversation.
1 year 4 months ago
How to create a Joomla menu item that redirect to Moodle Home? #8
Make sure you have redirect-less OFF in Joomdle setings, as you are using 2 domains.
Please Log in or Create an account to join the conversation.