Geeklog 1.3.9 and Gallery 1.4.4 RC1 user issues...

SandMan82

Joined: 2004-07-16
Posts: 1
Posted: Fri, 2004-07-16 16:43

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!

 
dewdoobrown

Joined: 2004-01-12
Posts: 38
Posted: Mon, 2004-07-26 14:20
 
vjl323
vjl323's picture

Joined: 2002-12-19
Posts: 39
Posted: Tue, 2004-08-03 12:42

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/

 
usarid

Joined: 2004-08-05
Posts: 1
Posted: Thu, 2004-08-05 08:42

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

#	$this->canCreateAlbums = $this->canCreateAlbums();
	$this->canCreateAlbums = SEC_inGroup('Gallery Admin', $this->uid);

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.

 
vjl323
vjl323's picture

Joined: 2002-12-19
Posts: 39
Posted: Thu, 2004-08-05 08:56

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/