Hello, I need some help with integrating the login sessions, and cookies of phpbb with my main site. So basicly when you login on the main site it will automatically login on the forums and vise versa. Main site - www.isuc.net Forums - www.isuc.net/forums/ Post here with your offers, or add me to MSN - support@weiver.net Payment will be in USD, and via PayPal. Thanks. Regards, Lance Baker
What version of phpBB? Last I checked the beta version (3 I believe) didn't have support yet.. if it's phpBB 2.x.x they have a decent (okay thats a stretch) documentation on the API / how they handle login / authentication.
i just want to make it clear - i will PAY the person who does it, i am not expecting someone to do this for free. My budget for this is around $50USD, but there are a few more minor things.
This article at phpBB describes how you would go about doing it http://www.phpbb.com/kb/article/phpbb2-sessions-integration/?redirected=1 I've not actually tried it (yet, I have various scripts I'd like to integrate with phpBB), but it doesn't look too complex
Thanks for your help . But that isn't exactly what i needed - that only shows how to integrate phpbb sessions on a normal HTML site; making you login to view the page. I need someone to integrate the phpbb login sessions, and cookies, with my existing sites script (which also has sessions, and cookies). So therefore when you login on one, it automatically establishes a session, and gives a cookie for the phpbb forum, and vise versa.
Do you share the same users database? You want it so if a user logs in on phpBB it creates the cookie for your main site and phpBB If a user logs in on the main site, it creates the cookie for the main site and phpBB? If you have the quick login cookie for phpBB you will get your session when you visit the forum so, it would be a matter of just assigning the cookie - on phpBB I hate how they store them, but it can be done. How are cookies assigned on your site? Josh
Also, what scripts are you running? phpBB obviously, some sort of mod_rewrite being used, what looks like a phpBB Amod script, and something else I think.
The phpbb tables are stored in the same database as my main sites script, but it doesn't use the same user table. Yeah exactly, but i need it to work the other way around as well. Like for instance if they visit the forums and log into them, a session and a cookie will need to be established for the main site as well. The cookie is fairly simple. I wasn't the original person who wrote the script so i don't know how it actually works; but it just contains the userid and the password. And from the look of it it just does a check to see if you are a member and does a setcookie() with the userid, password and time. I also need something else done as well, like for instance if you register on the main site, or on the forums it adds the new record to the other corresponding user table. The userid, user names and the passwords will be the same in both of the tables. There is though some user data (stored in the main sites user table) that will need to be displayed when logged in and located on the forums. For instance it will be displayed in the members area on the left panel, which will just contain their basic user stats. The main site is a modified onarcade script (which is used as the backbone). Phpbb Amod isn't being used - well it kinda is but isn't - As the arcade script has been modified with that type of scores system. There are other scripts being used on it also; which i have purchased off other vendors. How much will someone do this for? Thanks. Regards, Lance Baker
This could be a problem. I was looking through the onArcade features, and there's mention of ionCube. Are the (I assume php) onArcade files encrypted?
As stated by edgcltd - that could be a problem, as well as ioncube... If the files are encoded then it would be extremely difficult to add that code... If we know how the sessions and cookies work on the main site then assigning them in phpBB wont be a problem (assuming the user tables are the same, which they arent - so they would need to be merged) Josh
The files are php and there is no encryption on any file. The ionCube in the script was originally to protect the scores system that was developed with the script (Only One File), but the scores system on mine is a custom job - therefore there is no ionCube. I am not sure about the new version that they are developing but i am not going with that version anyways; as i have made to many changes with this current version. Thanks, Regards.
No encryption on the files is good, it would have been difficult otherwise. I've been reading up on this, and a method of doing it seems to be generating a phpBB user when someone signs up on the main site, then, everytime they login, automatically logging them in to the forum also. Looks complex, and currently a bit beyond me. If, somehow, only one user table could be required, this would make things easier. Merging the tables looks tricky too.
Yeah its beyond me as well. Hence why i am seeking someone to do it for me. But the only way i can see it being done is to modify the arcade script to use the phpbb user database and to use the one phpbb session and cookie. I am currently working a simple script to import the user data from the arcade to the phpbb user table. This way the phpbb forum itself doesn't really need to be touched.
If you can successfully transfer over the users (and remember, more than one table is affected when creating a new phpBB user), I'd suggest replacing the existing login area with the phpBB login, then adding basics from phpBB to every page of the rest of your site - in the header if you have one. Something along the lines of that KB link I posted earlier might do it. Bit vague, I know, if I get anything more concrete I'll post it.
Thanks heaps for your help, i managed to successfully transfer the arcade users (with the additional fields) into the phpbb users table; and it seems to be running ok. Now i just need to change everything else to match that, the phpbb cookie is the only thing that i am not sure of though. Thanks, Regards.
Looking at that KB article, after you include the basics necessary for it to think that non-phpBB pages are in fact part of it, I think it's session management that you need to be looking at. I think this snippet checks if a user is logged in. Doesn't do anything else though. // // Start session management // $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); // // End session management // PHP: