Use G2 users & log in for rest of site?

koly
koly's picture

Joined: 2004-03-20
Posts: 9
Posted: Fri, 2005-07-15 01:12

I searched the forum and couldn't find this topic directly discussed - if there is another thread point me to it or move this post...

What I've got:
1. Simple website running php & mysql (with only a few simple tables)
2. Gallery 2 (looks great, BTW!)

What I'd like to do:
Use the registered user table from Gallery 2 to allow those users to edit content in my other db tables from pages outside G2 (my other tables are in the same db as the G2 tables).

Is there a way to use th G2 log-in/user module on the other pages of my site outside of G2? I'm not real familiar with user-sessions and modules in general, just very simple php/mysql stuff.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-07-15 10:24

Sharing the same user base / synchronization works a little different in G2.
You don't access the G2 user table directly, you should use our API / GalleryEmbed class.

See:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=23957
please take a look at the smaller threads linked in the first post in the development section.