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,
Posts: 105
It's easier to make a gallery integration into phpBB. There's a embedded API built into Gallery that can be used.
Posts: 32509
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().
Posts: 55
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,
Posts: 8601
docs/EMBEDDING is the file valiant mentioned. The docs will refer to apis in embed.php in the gallery2 directory.
Posts: 105
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.
Posts: 55
have u done it before? I'm just looking at the files not knowing where to start... It looks like direction
Posts: 105
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()
Posts: 105
I did already start the integration ... read more in the CMS Integration thread.