Embedding / Integrating G2 into my website

indiana.t.hart
indiana.t.hart's picture

Joined: 2006-11-09
Posts: 10
Posted: Wed, 2007-10-03 00:03

Alright... as a fellow software and support technician, I've done my best all day today to read everything I could about Embedding and Integration with G2. I've read through all the embed documentation, search the forums, and read other people success stories.

At this point, I'd like to think that I've got a pretty firm grasp of how I need to go about doing this integration, but before I take the first step I want to make sure that I've got things straight. So, let's make up a situation.... (Remember, this is all a preview for me, I haven't yet built any integration, so if you're using this topic as reference for your own integration be sure to read further through the thread to see what corrections have be made to my assumptions by the support staff.)

So here's our imaginary setup:
PHP 5 and MySQL
Gallery 2 installed
Website programmed in PHP (I believe the documentation calls this emApp for short?)
Mirroring user tables (1 for G2 and 1 for emApp)

Now, we're ready to begin integration. I think. Now begins my conjecture.
I start by making a table which contains the user IDs for the members of both G2 and emApp.

|-------------|-----------|
| emApp ID | G2 ID |
|-------------|-----------|
| 1 | 6 |
| 2 | 2389 |
|-------------|-----------|

Now I utilize the g2embed API to pass the emApp ID to G2, correct?
At this point the computer will contain the necessary sessions for G2 to recognize it's user as logged in.

Basically, all of that would have been perform after the user clicked "Login" on a page found in the emApp. All calls to the g2 API would have been done on that page.

Did I summarize everything alright? Don't be afraid to simply say, "No, Indy. You're wrong. Go here [link] and read this [link]. You need to review this documentation [link]." Or if you really must, "Go try building it. Then bug us."

Thanks for looking this over.
-= indy =-

Indiana T. Hart (www.INDY.cc)
"Adventure with style and a smile."

 
lelokong

Joined: 2007-10-05
Posts: 2
Posted: Fri, 2007-10-05 14:38

i'm complete lost at how to do this, i read every thing on http://gallery.menalto.com/forum/g2_integration
maybe i'm just a god damn dumbas, i cant even get pass where the hell 'activeUserId' gets its info from, and everytime i pass a string through 'activeUserId' i get (ERROR_MISSING_OBJECT), i should quit while i'm sane =X

 
indiana.t.hart
indiana.t.hart's picture

Joined: 2006-11-09
Posts: 10
Posted: Fri, 2007-10-05 18:14

Once I give it a try, I'd be happy to help. I just didn't plan on taking any action until my assumptions were corrected or better directed. :-)

-= indy =-

Indiana T. Hart (www.INDY.cc)
"Adventure with style and a smile."

 
lelokong

Joined: 2007-10-05
Posts: 2
Posted: Sun, 2007-10-07 00:13

well i guess my problem was i was trying to do everything manual instead of using the embed API, once i created users using the API i figured out that emAppID and G2ID was mapped in the g2_externalidmap database, whiched helped me tons at moving on with my site.