Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Incorporating PHPBB...
Old 04-08-2005, 09:02 PM Incorporating PHPBB...
Bloodsyne's Avatar
Skilled Talker

Posts: 52
Trades: 0
I'm in a sort of predicament here. I've designed the template for my site, and am still perfecting it, but I think it's time to get down to at least some basic coding.

The problem: I want users to be able to login to their phpBB accounts from my main site (which is not in the same directory as phpBB), and also use the "same" session from phpBB to do so, that way they don't log out when they leave the site and have to re-login on the forums. The main problem here is that I'm really not sure how to do this. I want it to be fairly minimal... the page, once logged in, only displays a few links and their profile information, and that's the easy part.

I just need some help as to getting ideas for incorporating their phpBB login's with my main site, without having to revamp everything.
Bloodsyne is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-08-2005, 10:18 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
I've done exactly this before on a few sites. There's a thread here that covers it.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 04-08-2005, 11:46 PM
Bloodsyne's Avatar
Skilled Talker

Posts: 52
Trades: 0
Alright, thanks. Though it's extremely basic, I can build off of it and add more security. Thanks a lot.

Edit: Actually, I'm having a bit of trouble. For whatever reason, common.php disrupts two of my inclusion files on index.php. I have no idea why; the variables used have nothing to do with common.php and there should be no interference, but there is. Any ideas?

Edit II: Alright, my fix thus far was to add my configuration file require_once call above the PHP code. Both includes work correctly now. If you know of why I had to do that, please do explain, I'm curious.

Last edited by Bloodsyne; 04-09-2005 at 12:15 AM.. Reason: Problem; Fixec
Bloodsyne is offline
Reply With Quote
View Public Profile
 
Old 04-09-2005, 03:41 PM
dant's Avatar
Super Talker

Posts: 148
Trades: -1
Sorry to hijack the thread, but its related.

The thread you pointed out was to add the PHPBB logon to the main page, and I need to incorporate a PHPBB forum into a main site that is running a seperate script (almost the reverse).

Is there any way of combining the logon for the main site with the PHPBB as well as the registration?

Thanks in advance.
dant is offline
Reply With Quote
View Public Profile
 
Old 04-09-2005, 03:45 PM
Bloodsyne's Avatar
Skilled Talker

Posts: 52
Trades: 0
I was kind of looking for the same thing, but instead I decided I'd make the login for my main site Administrative use only, and create new accounts/sessions for it, because in the end, it'll benefit me more having programmed my own login system.

Of course, this has nothing to do with what you asked, dant, I'm just... rambling.
Bloodsyne is offline
Reply With Quote
View Public Profile
 
Old 04-10-2005, 04:43 AM
dant's Avatar
Super Talker

Posts: 148
Trades: -1
:d

My main site is used by the members as much as the forum so a combined log-on if anyone knows how to do it would be good.

If not I'll just keep the forum and main site seperate things, although I think one log-on would be better - saves registering twice.
dant is offline
Reply With Quote
View Public Profile
 
Old 04-10-2005, 06:14 AM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Yeah this is possible - all you need to do is build your site's logon page so that the form has the same action attribute as phpBBs own login form. You can essentially copy the entire form and then change the labels around and reformat it.

Doing registration in one go is also posibble - the simple way to do it is to write your own registration script that takes details for your site, and then when the details are submitted, a forum account is also created with all the settings at the defaults. The user can then change them using the inbuilt CP in phpBB.

If you're going for full integration, you can edit the template files from phpBB so that the forum appears to be just another page in your layout.

If you want something more specific than that then don't hesitate to ask - I can go and hunt through my old code to see exactly which files need changing etc
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 04-10-2005, 03:13 PM
dant's Avatar
Super Talker

Posts: 148
Trades: -1
Thanks a lot for your help 0beron - I will try having a play around with the registration forms and see if I can combine them.

If I can't combine them perhaps I could just paste the PHPBB form across so the user seperately registers for the forum.

Thanks again.
dant is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Incorporating PHPBB...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.45558 seconds with 12 queries