Author Topic: Allow Users to Create Albums...  (Read 5652 times)

0 Members and 1 Guest are viewing this topic.

Offline wasutton

  • album.pl User
  • *
  • Posts: 1
  • Karma: +0/-0
  • I forgot to change the default text.
Allow Users to Create Albums...
« on: November 07, 2003, 15:13:08 »
It would be nice to delegate the creation of Albums to actual users.  Any ideas?

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Allow Users to Create Albums...
« Reply #1 on: November 08, 2003, 08:01:35 »
Actually, they already can, but only in albums they already own. Give it a try by clicking on "Edit Titles & Descriptions" and set the owner to a regular user.

When they go into that album, they see a cut down admin menu, and can create their own sub albums...

Offline chaospixel

  • album.pl User
  • *
  • Posts: 2
  • Karma: +0/-0
  • :)
    • pflastern2002.de
Re:Allow Users to Create Albums...
« Reply #2 on: November 29, 2003, 12:57:08 »
well, actually this would be a really nice feature, imho this is better for overview!

is there a possibility to change this behaviour, so that users can create not only subalbums but also albums? :)

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Allow Users to Create Albums...
« Reply #3 on: November 29, 2003, 17:00:50 »
You can allow 1 user to do that now by having them own the root album.

Other than that, it would take code changes to implement...

Offline chaospixel

  • album.pl User
  • *
  • Posts: 2
  • Karma: +0/-0
  • :)
    • pflastern2002.de
Re:Allow Users to Create Albums...
« Reply #4 on: November 29, 2003, 17:30:34 »
hm, can will u add such a feature? or can hint me out where to look in the code, then ill have a try on my own ;)

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re:Allow Users to Create Albums...
« Reply #5 on: November 29, 2003, 19:23:01 »
I can add it to the to do list, but given it's current length, I can't promise I'll get to it any time soon. :)

If you want to take a crack at it, the "showAdminMenu" subroutine in album.pl is what prints the menu. There's a section for "Create Album" part way through, and this code is only run for actual admins. You just have to ensure that the code is run for all users, so tinkering with the "if" statements should work...

Offline kimncris

  • album.pl User
  • *
  • Posts: 7
  • Karma: +1/-0
Re: Allow Users to Create Albums...
« Reply #6 on: March 11, 2006, 03:53:13 »
I got around this by creating another set of default users called "superadmin" in the album.cfg


now I can define a larger set of users who are "admin" and can see a few of the admin commands Like "create album" but I can also If-then the really scary ones away to the "super admins" (like the config menu and such) so that there is as much damage control as possible...


seems to be working at least :)

ck




Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Allow Users to Create Albums...
« Reply #7 on: March 13, 2006, 15:33:21 »
Nice work!