Profile

rob_andy

Joined: 2005-11-01
Posts: 1
Posted: Mon, 2005-11-07 19:53

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

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-11-08 00:23

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.