Use same sql table for username and password as phpBB forum

adu
adu's picture

Joined: 2003-09-03
Posts: 55
Posted: Sat, 2004-12-11 13:48

Hello,

Anybody happens to know how to use the same tables of username and password for the gallery and the phpBB forum. I have both on my website and It'll be nice to have the visitors register once even though they'll still have to login twice... I'm sure it's possible by putting the tables within the same database but I don't know which files to edit for the name of the tables it should recognize. If anyone knows please advise.

Regards,

 
Einstein
Einstein's picture

Joined: 2003-10-13
Posts: 105
Posted: Sat, 2004-12-11 15:14

It's easier to make a gallery integration into phpBB. There's a embedded API built into Gallery that can be used.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2004-12-11 15:32

you don't have to put both tables in the same database.
the docs are not perfect yet, but what you want is feasible.
take a look at embed.php in your G2 dir and the EMBEDDING in the docs dir.

the basic idea is that you login / logout / register new users in phpbb and that the link from phpbb to G2 should not point to G2 directly, but to a file you create. this file contains calls to GalleryEmbed::init() and GalleryEmbed::handleRequest().

 
adu
adu's picture

Joined: 2003-09-03
Posts: 55
Posted: Sat, 2004-12-11 16:34

thanx for the quick reply guys...

integrating the gallery is even much better since they'll have to login only once... u think u can give me all the steps to do that... I kinda understand the php codes but haven't masterised it yet (far from it :D )
so tell me where is that embedded API, which files will I need to edit and how should I edit it...
Thanx in advance... that would be beautiful to have those two softwares built in one... by a different way than phpnuke

Regards,

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2004-12-11 16:40

docs/EMBEDDING is the file valiant mentioned. The docs will refer to apis in embed.php in the gallery2 directory.

 
Einstein
Einstein's picture

Joined: 2003-10-13
Posts: 105
Posted: Sat, 2004-12-11 16:55
adu wrote:
so tell me where is that embedded API, which files will I need to edit and how should I edit it...

adu, I'm intresting in helping you on this. I have myself looked into the API and think it should be easy to find the places in phpBB where the API should be used.

 
adu
adu's picture

Joined: 2003-09-03
Posts: 55
Posted: Sat, 2004-12-11 22:16
Einstein wrote:
adu wrote:
so tell me where is that embedded API, which files will I need to edit and how should I edit it...

adu, I'm intresting in helping you on this. I have myself looked into the API and think it should be easy to find the places in phpBB where the API should be used.

have u done it before? I'm just looking at the files not knowing where to start... It looks like direction

 
Einstein
Einstein's picture

Joined: 2003-10-13
Posts: 105
Posted: Sun, 2004-12-12 01:30

I have done a lot of phpBB modding ... I think it's best to go straight for phpBB 2.1.x. G2 and phpBB 2.2 will be realased about the same time.

In phpBB 2.1x it's the following files that I think needs modifications:
includes/functions_user.php
includes/session.php
inlcudes/ucp/ucp_register.php - G2: createUser()

 
Einstein
Einstein's picture

Joined: 2003-10-13
Posts: 105
Posted: Mon, 2004-12-13 01:36

I did already start the integration ... read more in the CMS Integration thread.