Member
Member
poopot   2010-03-21, 22:49
#1

Hi to all,

Can anyone help me with this.
I want to set up zenphoto so a user can upload a maximum number of images to an album created by the admin.
Once their images are uploaded the can add a short description to each image and nothing else... No creating sub albums etc. A very basic admin page for them...

I have absolutely no knowledge of php so am floundering with this.

Any help would be apprieciated.

Stu

Member
Member
kagutsuchi   2010-03-22, 02:07
#2

What you're asking is not something that would be simple to implement.

Limiting a directory's size would be most easily done by the filesystem using quotas, but most likely you will need root access to do it this way. Also, quotas limit by filesize, not by number of files.

If you really want to limit by number of files, this would require either hacking the Uploadify script or simply deleting any uploaded files beyond the limit (a filter could do this via new_image).

As far as I know, there is no way to only allow adding descriptions. You would have to find a method of doing it manually or hack the admin edit page.

The only way of which I can think to disable subalbum creation would be to either hack the core files or to use the new_album filter to delete newly discovered ones.

In short, there is no easy way to do what you're asking without some work. You may want to rethink the structure of your gallery, unless you have some special reason of doing it in this particular way. Honestly, it doesn't make much sense to me to limit a user's access to his own album/images. At that point, it's not really the user's album/images anymore.

Member
Member
poopot   2010-03-22, 10:32
#3

Hi,

The idea is "your best 10" I dont want users adding more than that number of images...

So far I have been hiding the options for creating sub albums etc with css but its far from ideal...

I will have a look at your suggestion tho'

Cheers for the help.

Stu

Administrator
Administrator
acrylian   2010-03-22, 11:46
#4

Sorry, we don't have any option for that so using a custom filter will be the way to do it.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.