Skip to main content
Topic: [ADDON][WIP] In Line Attachments (Read 34035 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: [ADDON][WIP] In Line Attachments

Reply #45

Little example of the current state. :D
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON][WIP] In Line Attachments

Reply #46

Wow coolio :D
~ SimplePortal Support Team ~

Re: [ADDON][WIP] In Line Attachments

Reply #47

today a member sent me a PM with a critical error. He told me that he got that error when looking into drafts. I have no other information, in the error log I got:
Code: [Select]
 7630ef95227de92c28f925fa7de35e28
 Tipo di errore: Critico
Wrong value type sent to the database. Integer expected. (msg)
Function: _ila_get_topic  URL http://www.skodaclub.it/index.php?action=profile;area=showdrafts;u=511
File: /../sources/subs/ILA.subs.php
Raw: 729

I checked my drafts but I was not able to reproduce this error. Anyone else with this error?
In the error log, in the last week I only see 8 of this errors, but all are from the same user.
sorry for my bad english

Re: [ADDON][WIP] In Line Attachments

Reply #48

That would be a bug with inline attachments ...

I'd say they saved a draft using the ILA tags which the system is trying to fulfill one way or another.  I should be able to reproduce this and come up with a fix this weekend. 

Re: [ADDON][WIP] In Line Attachments

Reply #49

Quote from: radu81 –
Quote from: radu81 – I know this addon is wip, but in the future would be nice to have responsive images inserted with  [attachimg=x]
Please remember about this, maybe is just a simple trick with css, but I don't know how to solve it
Please don't forget about this  :D
you can see it here: skodaclub.it/index.php?topic=1683
sorry for my bad english

Re: [ADDON][WIP] In Line Attachments

Reply #50

Yeah it's a missing max-width: 100% on images.
~ SimplePortal Support Team ~

Re: [ADDON][WIP] In Line Attachments

Reply #51

I don't know if it's a good solution but I solved the problem with responsive images inserted with [ attachimg=x ] by changing the line 531 in ILA.subs.php  from
Code: [Select]
$inlinedtext = '<img src="' . $this->_attachment['href'] . ';image" alt="" title="' . $ila_title . '" id="thumb_' . $uniqueID . '" style="width:' . $this->_curr_tag['width'] . 'px;" />';
to
Code: [Select]
$inlinedtext = '<img src="' . $this->_attachment['href'] . ';image" alt="" title="' . $ila_title . '" id="thumb_' . $uniqueID . '" style="max-width: 100%;" />';
sorry for my bad english

Re: [ADDON][WIP] In Line Attachments

Reply #52

I think it should work, I don't know if @Spuds has other coding standards or something, but it works and it's responsive regardless of the selected theme :)
~ SimplePortal Support Team ~

Re: [ADDON][WIP] In Line Attachments

Reply #53

for me is working ;)
Quote from: radu81 – you can see it here: skodaclub.it/index.php?topic=1683
sorry for my bad english

Re: [ADDON][WIP] In Line Attachments

Reply #54

I know it does, because I had tried it :P
~ SimplePortal Support Team ~

Re: [ADDON][WIP] In Line Attachments

Reply #55

Tracked for 1.1 https://github.com/elkarte/Elkarte/issues/2191

ETA: just to explain why "1.1 beta 2", I set it as "blocker", so no release until it's fixed, but is a little tweak, so if it is fixed for beta 1 good, otherwise it must be fixed for beta 2. :)
Bugs creator.
Features destroyer.
Template killer.


Re: [ADDON][WIP] In Line Attachments

Reply #57

if this addon it will be in the core maybe you have to revisit openimporter and/or ILA, because most forums had inline attachements into core and most of them are using the same bbcode [attach=x) or [attachimg=x) where x is the id of attachment in the forum, not in topic. ILA is not using the id of the attachment in the whole forum, but the id of attachment in that topic. With the first solution you can embed an attachment inline in different topics.
sorry for my bad english

Re: [ADDON][WIP] In Line Attachments

Reply #58

There could be a "compatibility mode", where the id is the attachment id instead of the message id?
Or the other way around: change ILA code to use the attachment id and have a compatibility-mode that uses the message attachment id?
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON][WIP] In Line Attachments

Reply #59

Installed, works fine. German translation added. Is there any need of translating the help text? I didn't find where the translation is used anyway.

Some news on the editor problem?