(ERROR_COLLISION) with admin users

greyhair

Joined: 2004-09-14
Posts: 18
Posted: Sat, 2006-02-04 02:09

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!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-02-04 02:16

1. GalleryEmbed::addExternalIdMapEntry
2. GalleryEmbed::updateUser

see documentation -> Embedding -> Integration