How do I get the Moodle login status? login_info()

  • tim wilde
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #1 by tim wilde
Hi

I have 2 sites (same server). One with Joomla pages and a Moodle site

In the Moodle nav bar I am able to use <?php echo $OUTPUT->login_info();?> to get the login stayus for the user and let them click for "login" or "logout".

Is there anyway that I can get the same information ("login status"/option to "login"/"logout") into my Joomla nav bar using Joomdle?

Thanks

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #2 by Chris
Why would you need Joomdle to do this? Joomla knows if you are logged into Joomla or not. Assuming you are using SSO, when you are logged into Joomla you are logged into Moodle. Therefore, all you need to do is display one module (say login) when you are not logged in and another (say logout) when you are logged in.

Joomla will do some of this, but IMO not enough. I use metamod to display different modules based on the login status.

Please Log in or Create an account to join the conversation.

  • tim wilde
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #3 by tim wilde
Thanks Chris

I have 2 sites with 2 sets of html and I need the design to be the same across all pages. I managed to get the login status by using a php script in moodle to pull the status, then called it and used java to pull drop the contents into a div.

I could not get my head around redesigning the login status format in Joomdle to match the login status style I had in the neader of the moodle site

Hope this makes sense

Please Log in or Create an account to join the conversation.

More
13 years 6 months ago #4 by Chris
Yes and no. But you do know that Joomdle doesn't really have a login status at all. It is either provided by Joomla or Moodle. Joomdle will understand the session details so it can perform the SSO but the actual login / lougout functions are provided by Joomla / Moodle.

When you say the login format in Joomdle which particular page are you referring to? Can you provide a url / module / component listing? Of course you can drop off your specific domain and use the url information after the ?

Please Log in or Create an account to join the conversation.

  • tim wilde
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 6 months ago #5 by tim wilde
Sorry Chris I meant the login status style in Joomla (not Joomdle).

See following site and the login status on the top nav bar. - "You are not logged in. (Login)"

sli.perceptiveits.com.au/

Hope this makes sense

Please Log in or Create an account to join the conversation.