Sharing user list with other web apps?

jrj127

Joined: 2004-11-02
Posts: 5
Posted: Tue, 2004-11-02 20:06

Hi,

I am new to G2, it looks like a useful app for me. I have a personal website with a few web apps (i.e. OpenDb and PHP RecipeBook) and soon to include G2.

These apps allow users to login to be able to post new items. Is there a way to make all the web apps talk to th same user database so my users will not have to create an account for each app I use on my website?

Thanks,
Jared

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2004-11-02 20:22

if your current apps use the same db, G2 can use this user/groups tables.
we call this "embedding" or "integration".
we are still working on making G2 easy to integrate with other applications, but most of the work is already done.

take a look at embed.php, docs/EMBEDDING and the "CMS integration" topic.

i am integrating G2 in xaraya a content management system (CMS). i'm not finished and a lot of the code is very xaraya specific, but i believe you could learn how to integrate G2 with your website by taking a look at some files of this integration with xaraya.

download http://www.nei.ch/test/gallery2.tag.gz

the most important file: xaruser/main.php
this is the php file that delegates the request to G2.

note that this is a work in progress, a better visual integration is on the todo list.