Jump to content

PHP question, need advice


afallingpanda

Recommended Posts

Hello master php coders, i have one question today.

 
Basically im trying to build a site which has a profile feature you can login to your account and make posts on the site.
 
The site is also going to have a tab called forums which is going to be just a forum software such as ipboard or xenforo, but my question is how would i be able to make it so you only have to login ONCE, so i login to my website account and dont have to relogin to xenforo ( so basically the accounts are ONE) .
 
Or if this is not possible, what would be the closest thing i could do do make it behave like that. thanks for helping guys
Link to comment
Share on other sites

You'll need to see if the forum has an api  to allow you to integrate the forums login with your sites login. You then use the api for registering and logging in users to you site.

 

Heres an API for IPBoard

http://www.invisionpower.com/support/guides/_/advanced-and-developers/integration/single-sign-on-sso-r209

 

xenforo has a few mods for various forms of integration.

http://xenforo.com/community/resources/categories/bridges-integrations.17/

Edited by Ch0cu3r
Link to comment
Share on other sites

These are sometimes called "bridge" addons/modules.  You might look for one of those already written.

 

I've written my own bridge between a site and vBulletin.  Not for the timid, but if you've got some experience you should be able to hack something together fairly quickly.

I've done some for various different forums in the past. An easy way to handle it is to just work out what the forms need for data (like the login form, or registration form) and then simply send that data to the URL that normally processes it in the forum. If you're lucky, the forum will already be able to handle AJAX requests or something, which makes this even easier.

 

It depends how deeply you need to integrate it.

Link to comment
Share on other sites

I've done some for various different forums in the past. An easy way to handle it is to just work out what the forms need for data (like the login form, or registration form) and then simply send that data to the URL that normally processes it in the forum. If you're lucky, the forum will already be able to handle AJAX requests or something, which makes this even easier.

 

It depends how deeply you need to integrate it.

True, and thanks.  cURL can sometimes be leveraged in this use case, as well, as you imply.

 

The really knotty parts are things like cookie management (you'll typically have two you need to keep track of), and session management, which for some gadawful reason lots of people like to stick in the DB.

Link to comment
Share on other sites

and session management, which for some gadawful reason lots of people like to stick in the DB.

Actually, there is good reasons behind that. On shared hosting, it can be more secure. It's also sometimes faster, and easier to cluster. You also have better control over session life/persistence.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.