When I call GalleryEmbed::init(...) there is a parameter for the user id.
What should I be passing in here? A number? A string (eg username)?
I have users in my main application DB with numeric (int) IDs, so would use these but that would mean either setting the user ID in the g2 DB when I import users (is that doable?) to match or create a lookup table to map IDs from my application -> g2 IDs.
Alternatively I could use the username (which is unique) from the application DB as the g2 userId but I don't know what is meant by g2.userId. I imagine it to be an autoinc int so using usernames from existing DB is a no go.
Hope that makes sense in explaining my problem!
Posts: 15
Discovered that g2 stores a lookup/mapping in it's tables.
During GalleryEmbed::createUser() with an embedApp user.id I assume that G2 will update it's own lookup without me needing to call a function to insert the IDs into the user mapping table(s)?
Posts: 8339
GalleryEmbed::createUser uses your app's userId and creates an externalIdMap
Hope this helps
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 15
It does, cheers