Skip to main content
Recent Posts
1
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 :(
2
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?
3
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!
4
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!
5
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)
8
General ElkArte discussions / Re: ElkArte 1.1.7 Patch Testing
Last post by augras -
Hi,
Thanks for this new update.
I installed it on 2 elkarte and get each time the same error that is ignored :
[   admin
Aujourd'hui à 15:26:50
6b729d134a5ac7b47kwVHWpiBMOopqjR
Type d'erreur: Générale
Unknown Error: Invalid characters passed for attempted conversion, these have been ignored
https://augras.eu/forum_zwii/index.php?action=admin;area=packages;sa=install;package=Patch_117.zip
Fichier: /home/augras/public_html/augras.eu/forum_zwii/sources/subs/Package.subs.php
Ligne: 2929
I made a quick take a look and no other errors and everything seems to work : i will make better "tests" in the next days.Philippe
I updated the patch today and this gift is still here.
On the line 2929 there is : // Make sure we have a form of 0777 or '777' or '0777' so its safe for intval '8'
9
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.
10
Addons / Re: Levertine Gallery
Last post by Spuds -
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.