Author Topic: User Albums questions  (Read 1771 times)

0 Members and 1 Guest are viewing this topic.

Offline A.B.

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
User Albums questions
« on: April 10, 2002, 13:00:25 »
I'm allowing uploads by users and restricting them to their own albums:

    * Is it possible to make the script create the users directories in a USERS directory and not in the root album?
    * A user can create a sub-album in his album but I can’t figure out how a user can upload images in the new sub-album. The upload form does not give the user a choice and automatically uploads everything in the default user album. Am I missing something here?

Thanks
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »
A.B.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: User Albums questions
« Reply #1 on: April 10, 2002, 17:45:27 »
Hi A.B.

For your first question, it's possible, but you'd have to modify the script to make it happen. If you can give me some time, I can track down the line number to change for you.

2nd qustion: Actually, I'm surprised that a user can create a sub-album! When you're using "per member" uploading, each user is currently forced to upload only into their current album. What's missing is the feature. :)

Hope that helps!
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »

Offline A.B.

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
Re: User Albums questions
« Reply #2 on: May 18, 2002, 15:55:14 »
Mike, Did you have a chance to track down the line number and figure out the mod? I'd really apreciate it.

Thanks.
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »
A.B.

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: User Albums questions
« Reply #3 on: May 19, 2002, 03:49:44 »
I haven't tested it, but I'd say that in the current release, the line you want is 4073:

Code: [Select]
$dirtomk="$album_dir"."/"."$category";

You'd want to change it to something like this:

Code: [Select]
$dirtomk="$album_dir"."/USERS/"."$category";

Cheers!
« Last Edit: December 31, 1969, 19:00:00 by 1039064400 »