Firefox PHP

Authentification

Posted by bpiwowar 
Re: Authentification
January 29, 2006 02:52AM
Quote
chanh
PS: I take a look at the Wordpress integration at the blog site and it is just a hack to extract the information from the cookie to do the autologin to phorum. I like the sounding of your idea better.

Heh, that is my idea. There is not much more you can do really. Ideally, you would have a function in the parent application to call rather than running sql queries.

There is no magic bullet to make two separate applications work as one. Code must be written in Phorum to make it aware of the other application.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Authentification
January 29, 2006 09:37AM
So let me try to understand your idea:
. There will be two separate install one for the CMS and one for phorum
. There will be a hack or module in phorum to make a call to a CMS to do a auto login in phorum.

But how is that auto login happen if the two application are install separately?

I am a little confused since my current situation is the Simpleboard is installed as a component of Mambo so it is part of the main CMS therefore the login in available to Simpleboard and the admin is also part of the Mambo backend.

Would you expand on your idea a little bit?

Thanks

[opensourceCMS.com]
[ongetc.com]
Chanh Ong
Re: Authentification
January 29, 2006 12:40PM
Quote
chanh
But how is that auto login happen if the two application are install separately?

I am a little confused since my current situation is the Simpleboard is installed as a component of Mambo so it is part of the main CMS therefore the login in available to Simpleboard and the admin is also part of the Mambo backend.

I am not sure what you mean "installed separately". Do you mean on different servers? As long as the applications are on the same server, you can include code between the two.

You are talking about embedding an application in another. That is s bit different. That would make the forum application 100% dependent on the CMS. When that happens, you end up with what you have now, a limited application that does not do what you need.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Authentification
January 29, 2006 12:59PM
I am thinking to make phorum as a component of Mambo so it can be installed into Mambo. It is like module in phorum. That is how our current Simpleboard works! It is a component of Mambo and installed as a component. It might requires a bit of work to make that happen.

There are lot of Mambo sites that want to have a good lean, fast forum to replace Simpleboard and my thinking is if phorum can be a component then phorum will potentially gain lot of user through Mambo.

Most of Mambo users are not very technical minded so this would be a very good way for them to have exposure to phorum.

There are bridges to other forum for Mambo like SMF, phpBB, etc but people don't like it because it is too complicated for them to install the bridge, the forum on a separate database, folder, etc. Plus, it is too easyly break and something to go wrong!

Install separatedly means:

For example:

Mambo will be in [opensourcecms.com] and has its own database

and phorum will have its own database and will be in [opensourcecms.com]

or [forum.opensourcecms.com]

Is that what you have in mind?

If that is the case may be phorum have some kind of module that Mambo can call when a link is click to visit phorum and do the user sync at that time and auto login for the user.

How could that be done?

Thanks

[opensourceCMS.com]
[ongetc.com]
Chanh Ong



Edited 4 time(s). Last edit at 01/29/2006 01:17PM by chanh.
Re: Authentification
January 29, 2006 10:07PM
Quote
chanh
I am thinking to make phorum as a component of Mambo so it can be installed into Mambo. It is like module in phorum. That is how our current Simpleboard works! It is a component of Mambo and installed as a component. It might requires a bit of work to make that happen.

Yeah, making Phorum a drop in module type of thing where the admin for Phorum is part of Mambo could be hard.

Quote
chanh
Mambo will be in [opensourcecms.com] and has its own database and phorum will have its own database and will be in [opensourcecms.com]

I don't think that is necassary. We just need to investigate the way Mambo works and how it embeds things.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Authentification
January 29, 2006 10:31PM
-- moved topic --
Re: Authentification
January 30, 2006 10:39PM
bpiwowar, is there any follow up solution to this yet?
I'm planning to integrate this with MODx CMS, but I'm having problem with the user integration for now. I want MODx to be the parent auth, so syncronization for username and password would be enough for me, because the rest is basically an extra fields in phorum, isn't it?

Any reply will be awesome. Thanks guys
Re: Authentification
January 31, 2006 06:06AM
Depending upon what functionality you want phorum to still have you might also need to keep the user id, email address and group memberships in sync.



Edited 1 time(s). Last edit at 01/31/2006 06:23AM by DavidVB.
Re: Authentification
January 31, 2006 12:08PM
Brian and Maurice,

I know you two are working feverishly on this. I am a php newbe (asp pro), but on the subject of a general integration module:

I am invisioning a module that used session data to compare data between two systems. Since the session data transends all php systems you could effectively send phorum user data to the session, or visa-versa.

So the module would allow you to set phorum's username = some session variable set by the admin (ex. $_SESSION['user_name']), and thus allow seamless login to other systems. This may create too much server overhead, so clearing it after use might be a consideration?

Maybe the module could also have fuctions with customizable variables for inserting and deleting. The referenced data could be session variables, database fields, or cookie info. Obviously database would be the most complicated because of the different types, unless you could specify a connection string in the module.

I know you all are way ahead of me on this. Just wanted to put my vote in for a general system to help everyone. We built a custom forum and went away from phorum, but now we are moving back because of the many recent innovations. I am creating a bridge between phorum's database and our user table based on the Wordpress plugin referenced on this forum.



Edited 1 time(s). Last edit at 01/31/2006 05:04PM by kevwit.
Re: Authentification
January 31, 2006 03:14PM
Quote
kevwit
I know you two are working feverishly on this. I am a php newbe (asp pro), but on the subject of a general integration module:

I assume that is a joke? We are not working on this.

Quote

I am invisioning a module that used session data to compare data between two systems. Since the session data transends all php systems you could effectively send phorum user data to the session, or visa-versa.

This assumes both applications use PHP sessions. I don't even have PHP sessions enabled on my server.

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Sorry, only registered users may post in this forum.

Click here to login