Skip to main content
Recent Posts
1
Addons / Re: Levertine Gallery
Last post by Spuds -
Updated the first post with todays updates. 

changed the admin menu icons to match the rest of elk,
changed the way bulk upload errors are displayed
prevent the upload from starting (for valid files) when an error occurred queueing a bad file
misc css tweaks
2
Addons / Re: Levertine Gallery
Last post by Spuds -
The original point was that quotas shouldn't apply to managers - they're there to manage the thing and experience suggests that admins/similarly empowered users in the right context shouldn't just have limits applied to them because it tends to be confusing.

But I may be misremembering how it was originally implemented vs whatever may have been changed in this version.
That should all be the same, once in the lgal_manage group you are set free.

The only permission item/group I changed/add was allowing the selection of group "0" to allowed ownership groups.  I have not centralized that update just yet.  I added first to see how many times empty() would poke me and that change was also the cause of the error @badmonkey reported as I sorted but did not keep the keys intact  :-[
3
Addons / Re: Levertine Gallery
Last post by Spuds -
Thank you Spuds! I just tested and the images are correctly resized for registered users. Is there a way to set quotas also for admins and moderators?
Admins are basically limitless right now in terms of permissions and quotas.  I'm sure it possible to add quota to admins, I'm just not sure how much work that would be ATM. 
Moderators are really a board permissions group.  There can't be many moderators so I think you could add a new member group and simply add moderators to that as well.  Then set the quota for the moderators gallery group.  I think that would work.
Does the resize occur client side, or server side? The upload makes it appear to occur server side?
Thats all server side manipulation at this time. 
Would it be possible to apply quotas to gallery managers as well? Managers images won't be resized as quotas do not apply to them. Or I'm doing it wrong. ;D
I think once you are assigned as a manager you are given admin like permissions.  So this is somewhat a variation of radu81's question as well.   Bit of a trust but verify thing :D  I think it would be easier to set the quotas and permissions for that manager group instead of making them managers.  You can get almost all (maybe even all)  of the capabilities assigned that way and have your quotas.
Nicely done :)

One thought: if you're going to do client side resampling, it might be best to make this configurable in the case that someone wants their photo to be uploaded unchanged (e.g. photography forum, technical forum uploading a huge diagram etc.) - I originally tested this stuff with 20MB JPEG files (required 350MB RAM to resize on the server) because one of the original users wanted their paid commission art to be uploaded without changes.

Sorry you had to fix strict mode stuff... but in 2014 when this was written, strict mode wasn't a thing :(
Thanks, it was all actually a quite a bit of fun! (well maybe not the old template markup :P)   Good points on the client side resize, right now it should only change images that are over quota but I need to do more testing, especially with very large files.
4
Addons / Re: Levertine Gallery
Last post by Arantor -
The original point was that quotas shouldn't apply to managers - they're there to manage the thing and experience suggests that admins/similarly empowered users in the right context shouldn't just have limits applied to them because it tends to be confusing.

But I may be misremembering how it was originally implemented vs whatever may have been changed in this version.
5
Addons / Re: Levertine Gallery
Last post by badmonkey -
Thanks for the update @Spuds‍ 

The gallery manager membergroup issue is resolved. 

Does the resize occur client side, or server side? The upload makes it appear to occur server side? 

Would it be possible to apply quotas to gallery managers as well? Managers images won't be resized as quotas do not apply to them. Or I'm doing it wrong. ;D
6
Addons / Re: Levertine Gallery
Last post by Arantor -
Nicely done :)

One thought: if you're going to do client side resampling, it might be best to make this configurable in the case that someone wants their photo to be uploaded unchanged (e.g. photography forum, technical forum uploading a huge diagram etc.) - I originally tested this stuff with 20MB JPEG files (required 350MB RAM to resize on the server) because one of the original users wanted their paid commission art to be uploaded without changes.

Sorry you had to fix strict mode stuff... but in 2014 when this was written, strict mode wasn't a thing :(
7
Addons / Re: Levertine Gallery
Last post by radu81 -
Thank you Spuds! I just tested and the images are correctly resized for registered users. Is there a way to set quotas also for admins and moderators?
8
Addons / Re: Levertine Gallery
Last post by Spuds -
I updated the first post with todays updates.

This new version adds the Image resize function.  There is a option under the admin quota area, which, when enabled, will resize any images (jpg, png) to fit within the defined quota WxH limits instead or rejecting them.  Once resized it will still honor other limits and reject if its still over those.

One note is that if using GD you will loose Exif data for any images that get resized.  If you have Imagick then the data is retained.

There were a couple of other minor tweaks as well.

Enjoy!
9
Addons / Re: Levertine Gallery
Last post by Spuds -
I have not removed anything as of yet.   Certainly no problem keeping that file in place or whatever else you need.

The TP support was clean, it was the SP support used an eval() due to the way SP worked on SMF, but it was not needed for the Elk version, plus the Elk version already had an (unused) gallery block that I could finally actually use!
10
Addons / Re: Levertine Gallery
Last post by tino -
I used the block codes you had, there was a bug in the TinyPortal logic. I can add them as part of the default block codes and you can remove them if you’d like.

I’m reworking TinyPortal so you can upload new ones easily anyway.
Honestly its however you would like it to be.  I think it cleaner for the portals to be gallery aware instead of the gallery searching for an installed portal and adding blocks.

Fine with me. I’ll add the blocks to the next release of TinyPortal.

Are you keeping the LevGal_Portal_TinyPortal functions? I have added the tp-files/tp-blockcodes to the next release, but not those functions (yet)