I need a way to determine if the user used to setup Gallery 2 is the same user as the "admin" in xoops. My question is: is there a galleryembed::WhoAmI type function?
if the username used to setup Gallery2 is the same as the xoops administrator (or any user by name) I get this error:
Error (ERROR_COLLISION)
in modules/core/classes/GalleryUser.class at line 166 (gallerystatus::error)
in modules/core/classes/GalleryEmbed.class at line 300 (galleryuser::create)
in /home/<user>/www/xoops/html/modules/xg2/class/class.inc at line 96 (galleryembed::createuser)
in /home/<user>/www/xoops/html/modules/xg2/index.php at line 47 (xg2auth::xg2init)
If the admin user for the CMS and Gallery 2 are the same but created thru their respective programs how do I sync their passwords?
if (xoopsuser == galleryuser) then (update gallery user with xoopsuser info)
What functions are available here? Is there some documentation for these available functions?
Thanks!
Posts: 32509
1. GalleryEmbed::addExternalIdMapEntry
2. GalleryEmbed::updateUser
see documentation -> Embedding -> Integration