Register new users in the integartion of an other script
cosmosing
Joined: 2007-03-20
Posts: 12 |
![]() |
I tried to integrate G2 with phpfox in a shared registrations process. Say, if the new users of the website want to register, no matter they are at phpfox REG page, or at G2 Reg page, they can register once and log in freely from both login page. Now, the problems are like this: 2. G2 is basically based on OOP and MVC pattern. It SHOULD be easy to reuse the classes to develop a new registration module used for phpfox, pligg or zencart, but I found it hard to understand G2 in short time. Therefore, reuse is a mission impossible for new comers to G2. I am not going to continue the job, because it cost me too much time and without any progressing but appreciating the delicate designed system. I do enjoy the disassembling works, but stopped anyway. Advice anyone who is interested in this integration job: 1. if I could isolate the registration of G2 and create an interface, say a function like this: I will be very appreciated! |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Did you see G2's embedding docs and embedding API? see: @pending user: if you want to use g2 for user-registration and synchronize to the new user to your application, then you need to create a new g2 module which listens for GalleryEntity::save events and implements an event handler to synchronize the new users to your application. forget about phpmyadmin, specific db tables etc. there's a clean API which you can use. no need to go into such gory details. -------------- |
|