Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 04:42 pm EST

Geeklog Forums

Gallery users


sam

Anonymous
My gallery users can't upload photos to my website once they register. How can I have registered users create an album and upload photos!

thanx
 Quote

sam

Anonymous
I fooled around and noticed in /gallery/classes/geeklog/User.php theres this:
$this->canCreateAlbums = 0;
when I chnged that to 1 in each instance and returned Gallery Admin User to Root (as it was originally). Logged in users could create and admin their own albums. but not mess with the others. So far it works.
 Quote

Status: offline

Shane

Forum User
Newbie
Registered: 09/11/03
Posts: 2
I solved the problem a little more cleanly by creating two new groups in Geeklog: "Gallery Users" and "Gallery Admins". Then I changed the two lines (in two places each) in ..gallery/classes/geeklog/User.php from

$this->isAdmin = SEC_inGroup('Root', $uid);
$this->canCreateAlbums = 0;

to

$this->isAdmin = SEC_inGroup('Gallery Admins', $uid);
$this->canCreateAlbums = SEC_inGroup('Gallery Users', $uid);

Note that is should probably be done in both functions that they appear in order to work "cleanly". With that in place, you may now grant administration rights and restrict album creation to whomever you add to those groups. Works like a charm so far. Anyway, that's the best that I'm going to do for now. If anyone has a better idea, I'd love to hear about it.
 Quote

All times are EST. The time is now 04:42 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content