Member
Member
davidpb   2018-05-19, 07:56
#1

Hello to the community!
Searching in admin area of a freshly installed Zenphoto, I have not seen how to limit the number of images that a user can upload and have in your personal album.

The need is to have (or permit to set) only 1 album per user with a max of 10 images per user in that album.
Is that possible?

Thanks in advance to all,
David

Administrator
Administrator
acrylian   2018-05-19, 09:23
#2

Take a look at this included plugin: http://www.zenphoto.org/news/quota_manager/

Member
Member
davidpb   2018-05-19, 09:49
#3

Thank you acrylian for quick response!
Already activated user quota plugin, but I can set only two param in plugin setup: allow .zip and default quota (in Kb). I am missing some setting?

Thanks again!
David

Administrator
Administrator
acrylian   2018-05-19, 09:53
#4

Sorry, I admit I haven't used this for some time myself. It is need only a size quote which you can also set on each user accout individually.

There is an actually unsupported plugin for this task: http://www.zenphoto.org/news/image_upload_limiter/
Not sure if it still works but give it a try nevertheless.

Member
Member
davidpb   2018-05-19, 10:04
#5

Thank you!
David

Administrator
Administrator
acrylian   2018-05-19, 10:50
#6

Let me know if it still works.

Member
Member
davidpb   2018-05-19, 14:29
#7

Malte, unfortunately image_upload_limiter does not work. It cannot be activated (checkbox is hidden) and it says that quota_manager is already active. Even though I can set up number of images per album and avoid new album creation, it seems not working. User has no limit on images...and album also.

This is the end? :-)

Thanks for your interest,
David

Administrator
Administrator
acrylian   2018-05-19, 14:43
#8

I can only suggest to disable the quota_manager. Quote/size limiting and image number limiting are different concepts so that might be the reason those don't work together.

Member
Member
davidpb   2018-05-19, 14:53
#9

Wait a second... it seems working without quota manager. Great!
So I have to find another way to set upload quota?
What do you think if I place a customized php.ini (with post_max_size set to 10 MB) at the root of zenphoto folder, to override the default values from remote server (24MB)?

Administrator
Administrator
acrylian   2018-05-19, 15:01
#10

Yes, if you just like to prevent that people upload huge files then that is the best.

The quota_limiter actually limits the max size allowed per album in total, not the limit per file upload itself

Member
Member
davidpb   2018-05-19, 16:58
#11

Hi!
From php.ini I have resolved max_size as said before.

It seems working but taking a look at debug tab, it prints this:

EXCEPTION (8192): Methods with the same name as their class will not be constructors in a future version of PHP; uploadlimit has a deprecated constructor in /home/accanew/public_html/gall/plugins/image_upload_limiter.php on line 33

require_once called from require_once (load_objectClasses.php [35])

from require_once (functions.php [33])

from require_once (admin-functions.php [8])

from require_once (admin-globals.php [15])

from admin-logs.php [8]

Should I make some corrections at the given lines or can I safely ignore it?

Thanks for your great support!
David

Administrator
Administrator
acrylian   2018-05-19, 19:06
#12

Yes, that is a common warning on newer PHP versions, it does nothing currently besides warning. But quite easily fixed. Get the new version here mile: https://www.zenphoto.org/news/image_upload_limiter/ (note: new url to download!)

Member
Member
davidpb   2018-05-19, 21:41
#13

This is awesome!!!

Thank you Malte.

I hope this thread will help other users.
David

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