I am developing a gallery for a university. The university has a student identification system. What I need to do is integrating this identification system to Gallery2. When a student logs in the system the first time, Gallery2 creates a new account and album for this student. And later this student can use his album just by logging in the identification system directly. It seems a big problem. Anyone tells me how to get started?
Posts: 22892
http://codex.gallery2.org/Gallery2:Embedding:Integration
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 8
I have checked the integration document and downloaded the sample_embedding_wrapper.zip. But I found that in the init() function, one parameter needs an external user id, how can I match the external user id with the actual id in the gallery? I know there is an addExternalUserMap (maybe this name) function, but I don't know how to use it. Or can I match this two ids by writing the database?
Posts: 6138
When you create your new gallery user you map their externalId to their gallery userId.
Gallery ids are simply incremental, so it would be impossible for an externalId to match their gallery userId.
Take a look at some of the existing integration packages to see how others have done it.
Its really pretty simple.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2