Forum for discussing general topics related to Couch.
7 posts Page 1 of 1
Hi, I'm creating a site for a client utilizing Couch and have setup Extended Users per the tutorial.

The client also needs a phpBB install (3.1) as there is an old forum database to move to the new site.

I have access to only one database but everything seems to work ok, so am now looking at trying to sync up registering and login. The login I have made a quick and dirty fix for by passing some session variables to an intermediate script, nasty but the only way I could figure it out.

I cannot find a way to sync extended user registration to forum registration and would be really grateful for any help or hints. I have tried to do the session thing I did with login, but the data bound forms don't seem to allow post vars back, I'm getting lost at this point :)

Couch does seem to be a great system, just would be nice if there were more hooks we could use to insert our own code into some of the built in couch methods.

Thanks again. :)
Hello and welcome @fuffle :)

would be nice if there were more hooks we could use to insert our own code into some of the built in couch methods.
I totally agree. While we have put in quite a few hooks in the system, the login procedure is missing those. It should change as we go ahead.

I have tried to do the session thing I did with login, but the data bound forms don't seem to allow post vars back,
A nice thing about Couch is that where it begins to hit its limitations, we can use raw PHP to get things done.

Can you PM me the set of files you have used to create the phpBB bridge? Basically, something that'd allow me to duplicate the setup on my system. Let me take a look at it and perhaps we'll be able to figure something out. Some explanation of the process (and the point where you are getting stuck) would be very helpful.

Thanks.
many thanks KK, I've pm'd the files :D

As you can see they are your basic ext-user login and register files, but in the login.php I check for a redirect from the phpBB, which has the check for a couch login in it. ;)

I then just set some session vars and the process_login "redirect" to go to the login2 script. That file is very basic phpBB stuff I think, it just logins in to the forum and redirects to forum index page. (btw, can the redirect param accept anything other than a full URL?)

The register files I've tried to setup in a similar way, but I cannot set any session vars, despite my attempts, I've cleaned out my efforts from the code as it was a mess.

Register2.php works when I use get vars with it, so I need a way to get the usr, pass and email to that script and perhaps go back again afterwards?
Thanks fuffle.

I understood the flow.
Please allow me a little time to study it and I'll get back.

Thanks.
Thanks KK, have you had a chance to look yet?
Apologies for the delay, fuffle.

I had a look at the files you send.
I think there is a cleaner solution possible - phpBB allows using third-party addons to replace its own authentication module. Please see the following -
https://wiki.phpbb.com/Authentication_plugins

Do you think if we created such a replacement mod it'd suit your needs?
Please let me kniow.

Thanks.
That approach would probably be the cleanest way to do it.

I had a go at looking at that myself and gave up as my skills are not good enough, but I managed to get an ext to load up in phpbb, but I failed getting the extended methods to work.

Thanks, again, for your time. :D
7 posts Page 1 of 1
cron