I would like to setup a link in people profiles to automatically point to there user gallery. Is this possible? I want to automate it is possible, for example:
A new user registers, they create a gallery, once a gallery is created a link appears on there profile pointing to this new gallery.
Any help is most appreciated. This is for PHP BB2
Posts: 32509
i guss this was asked before in the g2 integrations forum. could you try your luck with the search function or by manually looking at the titles of the last 50-100 topics? i'm sure michiel_1981 did this for his joomla integration too.
basically, all you need to do is GalleryCoreApi::getPluginParameter or something like that for module, useralbum, useralbum, itemId=g2UserId and the returned value is the id of the album of the user. maybe there's no return value, then the user doesn't have a user album yet.
you can create the url with
global $gallery;
$urlGen =& $gallery->getUrlGenerator();
$url = $urlGen->generateUrl(array('view' => 'core.ShowItem', 'itemId' => $albumId));
or something like that.