Page 1 of 1

Integrating My App With Joomla?

Posted: Sun Sep 30, 2007 3:11 pm
by amirdarwish
Hello,

I have a php app that I would like to make available to registered members of my Joomla site.

How can I go about integrating it such that I use the authentication part of Joomla? 

I would also need to pass the user id to the app.

The app is self contained, has it's own UI, html output etc...It's essentially as stand along app that I'd like to pass authentication info as well as user id to it.

How can I go about doing that?  Any ideas would be much appreciated.

I tried to go through the code to find out how Joomla decided what to display to registered users and thinking that I can make a copy of that code and use it, but I wasn't too successful.

Is there a function I can call from Joomla to tell me if the user is a certain level: registered/special?  As well as give me the user id?

Thanks,
Amir

Re: Integrating My App With Joomla?

Posted: Sun Sep 30, 2007 4:52 pm
by AmyStephen
Hi Amir -

The API for Joomla! v 1.5is helpful. In this case, you should look at the User object by clicking the names of the classes and files listed in the Framework tree on the left.

But, Amir, you are extremely lucky! Joe LeBlanc just submitted a brief tutorial on the JUser object to the documentation team. I think you will find Joe's work to be very helpful!

Best of luck with your project,
Amy :)