Integrating My App With Joomla?

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
amirdarwish
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Sep 30, 2007 3:00 pm

Integrating My App With Joomla?

Post by amirdarwish » Sun Sep 30, 2007 3:11 pm

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

User avatar
AmyStephen
Joomla! Guru
Joomla! Guru
Posts: 579
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: Integrating My App With Joomla?

Post by AmyStephen » Sun Sep 30, 2007 4:52 pm

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 :)
~*~ Joomla!'s Queen of the Blues - Jennifer Marriott ~*~
http://OpenSourceCommunity.org/node/1719/


Post Reply