I have successfully integrated Gallery with my Geeklog site but I'm having just one problem though. I can create new albums fine, but my users cannot. I've changed some of the permissions on some of them but that does not work. I switched Gallery into "standalone" mode and tried adding users but it would not let me add users...it would sit there and keep reseting itself. I can add albums just fine, i want the users to be able to also without me having to create the album first. Since I am the admin, it will give me all administrative privledges. I don't want to make all my users admins just so they can post an album. Thanks for anybody's help!
Posts: 38
look here I think this will solve ur problem!
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=18562
Posts: 39
While that does solve the problem for 1.4.4 users [and GeekLog 1.3.9sr1 users], there is still an issue. Now *all* GeekLog users can add albums to one's gallery. What I would like to see is the addition of the standalone gallery feature of being able to have only certain users create albums. Way back when GeekLog and Gallery integration was young and ugly, I got this working by creating a special GeekLog group called, "Gallery Admin" and editing User.php in such a way that it detected GeekLog's groupid and gave anyone who's group was "Gallery Admin" the ability to create new albums [and edit ones they had created].
Is this something planned for the future??
/vjl/
Posts: 1
I had the same issue, so so instead of the change suggested in the above link, I changed (in the same file, gallery/classes/geeklog/User.php) the line in loadByUserName($uname) (NOT in loadByUID($uid))
$this->canCreateAlbums = $this->canCreateAlbums();
to
where "Gallery Admin" is the name of the group, and then anyone in the group can create (and thereby own) a new album. Hope that helps.
Posts: 39
usarid,
That worked perfectly! Thanks! I had previously set that up to be:
$this->canCreateAlbums = 1;
in loadByUserName, which simply means that all geeklog users can create albums. Your code above just allows members of my "PhotoGallery Admin" group to create albums. Thanks a ton!
/vjl/