Skip to main content
[1.1.1] size of attached images and migrated ILA BBC Started by Jorin · · Read 20854 times 0 Members and 1 Guest are viewing this topic. previous topic - next topic

[1.1.1] size of attached images and migrated ILA BBC

1. Take a look here please:

https://www.elkarte.net/community/index.php?topic=4907.0

Why is the attached image so small?

2. I tried [attachimg=1] for the attached image, but it didn't work. So I asked myself: "What will happen with my migrated BBC rergarding attached images using the ILA addon when I upgrade to 1.1.1?"  :o

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #1

As I explained you a long while ago (don't remember exactly the day, but more or less two years ago) if you are using the ILA addon, a little addon to tweak the behaviour will be needed.
Migrate the data during the upgrade was not really feasible: it would have basically meant re-parse all the messages to look for potential ILA attachments and impose on any upgrade the overhead of the check, compared to the need to build a more manageable addon or even a custom something to convert the ILA tags to the new ones.

It's not a bug, because the attach tag of the core ILA work (and actually it is completely different, being "attach" and not "attachimg" or "attachurl" or "attachmini" or "attachthumb") differently from the ones of the addon. It is meant to work with the button next to each image and not by typing by hands the numbers in the text area (not because it would not work, but simply because you are not likely to know the id of the attachment).
Bugs creator.
Features destroyer.
Template killer.

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #2

I think we need a way to also post inline images at full width, with just one click, without editing the code of attached images like @Spuds‍ suggested in another topic where someone else asked for this feature.

For the upgrade you csn use the search function included in elkarte and search for the old codes provided by ILA add-on and replace them manually. A few days ago I did this test on my forum and probably in an hour or max 2 hours i can replace all the older codes provided by ila add-on. 
sorry for my bad english

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #3

I think there is a little bug in the ordering of the bbcodes that prevent the non-thumbnail to be picked up.
Anyway, I guess ILA attachments should respect the max-image width set for images as well (that I'm not sure is the case right now).

That said, sizing could be something like the attachment (at least, that's what I had in mind).
Bugs creator.
Features destroyer.
Template killer.

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #4

I'd say to keep it more simple: thumbnail or full attachment.
attach.jpg
Last Edit: January 26, 2018, 07:28:06 pm by radu81
sorry for my bad english

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #5

I'm not sure how reliable is the layout there to add long stuff...

What about like this?

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #6

I like it, and I prefer this option compared to the first you posted. Let's see what the other members think about it.

p.s. will this modification require a lot of work, or it is something simple to add? just curiosity
sorry for my bad english

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #7

I was thinking to test it out here and in case push it to 1.1.2.
Bugs creator.
Features destroyer.
Template killer.

 

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #8

BTW, I was looking at the code to see how to arrange everything and I would hear from you how the system should behave in the various cases.
I have my ideas, but since I do not use the feature that much they may be wrong on my assumptions.

There are two options that can define the maximum size of an attached image shown in-line in a post:
1) attachment can be set to show as thumbnail or not,
2) images can be set to a certain max size (width/height) because of the embedding limits.

So we can have these conditions:
1) attachments as thumbnails
2) attachments not as thumbnails with attach width/height smaller than BBC limits
3) attachments not as thumbnails with attach width/height bigger than BBC limits

For me, these should be the outcomes:
1) always use the thumbnail also when shown in-line,
2) show what the user asks for (i.e. thumbnail or full image or image at a certain size),
3) show what the user asks for but limited to the max-width/height defined for BBC (i.e. thumbnail, or full image limited at max-width/height or iamge at certain size provided the size is smaller than max-width/height set by the admin).

ETA: attached some new stuff. O:-)
Last Edit: January 28, 2018, 01:02:34 pm by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #9

Quote1) attachments as thumbnails
Ok for inline images as thumbnail, there isn't much to say about. The thumbnail is created based on the thumbail dimensions set into ACP, and the user should click to view the full size.


Quote3) show what the user asks for but limited to the max-width/height defined for BBC (i.e. thumbnail, or full image limited at max-width/height or iamge at certain size provided the size is smaller than max-width/height set by the admin).
I'd say this is correct, if we set limits for inline images, those limits should be respected but also overwritten by max-width based on screen resolution.

For me, max width and max height could be removed from ACP, but that's just my opinion. Probably someone is using these settings, so better keep them ..  I always used the full image resized to the maximum width available on screen.
sorry for my bad english

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #10

It is looking quite good - but is it necessary to be done in this way? It is a feature which will make "old inline-attachments" looking proper now. But would this new feature be useful, if you don't had any inline-attachments before 1.1.1?

Maybe I don't understand completly what you are talking about. O:-)
 
We use the attachments in full-size, 780 pixel width, no thumbnails are shown, but they always had to be enabled in the settings (in 780 px width), otherwise it did not look as expected . Inline-attachments are working perfect in this size.

Our members would get very confused about more than one opinion to make inline-attachments. I think, they could not handle this new feature and I fear they will make a mess with their attachments very often. ::)

Would it be possible to disable this new feature, if we don't need it?

And another question:

Will this addon http://addons.elkarte.net/utility/Attachment-Resize.html work with this new feature?
Last Edit: January 29, 2018, 01:49:04 am by Ruth

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #11

This s just a visual goodie to make it easier to better control inline attachments. It doesn't affect what has been done in the past.

The way I'm building it, I guess for your specific needs you will edit the theme removing all but the default options.

BTW, this is all possible even today, I'm not adding anything else than a way to see these options from the user interface. ;)
Bugs creator.
Features destroyer.
Template killer.

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #12

Thank you for the explaination, Emanuele.

There are such a lot of very nice and useful features and possibilies in ElkArte, I like them very much.

But only a very few of our members are using them. They want to do everything the way, they always did it - or the way, they know it from other forums.  ::) Maybe they are too old to learn and handle new things.  ;) 

So I have a lot to explain to them and to help them...and this is getting more and more.

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #13

I think I have it done, maybe tomorrow evening I'll upload everything here to give it a try. O:-)
Bugs creator.
Features destroyer.
Template killer.

Re: [1.1.1] size of attached images and migrated ILA BBC

Reply #14

I did it... and for the moment is not completely broken (even though it's probably still not totally coherent as described above).
Bugs creator.
Features destroyer.
Template killer.