![]() |
|
Simple user privileges - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Simple user privileges (/thread-6815.html) |
Simple user privileges - poopot - 2010-03-21 Hi to all, Can anyone help me with this. I have absolutely no knowledge of php so am floundering with this. Any help would be apprieciated. Stu Simple user privileges - kagutsuchi - 2010-03-22 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 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 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. Simple user privileges - poopot - 2010-03-22 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 Simple user privileges - acrylian - 2010-03-22 Sorry, we don't have any option for that so using a custom filter will be the way to do it. |