pretty flowers

Started by gastil, March 24, 2021, 07:43:57 AM

Previous topic - Next topic

gastil

Testing the image upload features.
(http://tiny%20mice%20clicky-icon%20to%20make%20an%20image%20tag)
Hmmm... have not yet figured out how to embed an image in a message. Maybe it is only attachments.
How to give each photo its caption?
I neglect my garden on the central coast of California

Martin Bohnet

There is a mod allowing for attachments to be used inline: https://custom.simplemachines.org/mods/index.php?mod=3770

The question is: is that too complicated? It does call for additional BBC-operations, so that's another learning curve thing...
Martin (pronouns: he/his/him)

David Pilling

Probably the extension would do no harm - if people have an easy way they can use it, if they are more skilled/interested they can use a better way.

I wonder what ElkArte with its drag and drop does.

Martin Bohnet

#3
 
Quote from: DavidPilling on March 27, 2021, 05:05:02 AM
Probably the extension would do no harm - if people have an easy way they can use it, if they are more skilled/interested they can use a better way.
if only it would install. the alternatives don't either. hmm alternatives are not updated since 2008, maybe we miss a function that went core?



Edit: No, but installing order does matter!

  [attach id=0 msg=91]

[attach id=1 msg=91]
Tropaeolum brachyceras

[attach id=2 msg=91]



Quote from: DavidPilling on March 27, 2021, 05:05:02 AM
I wonder what ElkArte with its drag and drop does.

no idea

Edit: oh great - made inline possible, and screwed up display below... anyway: the attchment menu now offers to insert the picture.
Martin (pronouns: he/his/him)

David Pilling

some text
[attach id=0 msg=92]
some more text

Martin - that is a big improvement

David Pilling

Ah but, click on thumbnail does download...


gastil

Is the crocus photo (between some text and some more text) done with an img tag and url to david's TEG site or with an uploaded/attached image?
I neglect my garden on the central coast of California

gastil

when I clicked on the crocus photo (which I believe is a thumbnail) it did NOT download. It just got bigger.
I neglect my garden on the central coast of California

Martin Bohnet

it's the

[attach id=x]

tag, which gets auto-inserted with the link in the attachment-area, not an image-tag

but david is also right - the attachments not inlined now stopped to respond in the "right" way.... i couldn't find a configuration to improve that...
Martin (pronouns: he/his/him)

David Pilling

#9
Quote from: gastil on March 27, 2021, 08:51:36 AM
Is the crocus photo (between some text and some more text) done with an img tag and url to david's TEG site or with an uploaded/attached image?

It was done with the new insert button next to image upload. Inline thumbnails on this page are now working correctly for me. Progress...

hover over images will probably show how they're done

click on traditional end of message uploads is still doing download. I notice they are now in a row rather than as previously a column.

gastil

ok I will try adding more pretty flowers inline using the image tag and a wild guess how to refer to a given attached file...
(1) first I upload my pretty flowers
(2) the only identifiers I see so far are the filenames and the attachment indices {0,1,2,3} so... poking blindly in the dark...
(3) I copied the link to David's crocus:
https://www.pacificbulbsociety.org/smf/index.php?action=dlattach;ts=1616860150;topic=11.0;attach=59;image
which as code is:
https://www.pacificbulbsociety.org/smf/index.php?action=dlattach;ts=1616860150;topic=11.0;attach=59;image
so wrapping an img tag around that...
(https://www.pacificbulbsociety.org/smf/index.php?action=dlattach;ts=1616860150;topic=11.0;attach=59;image)
Nope that does not put an image there. [Update: later it did appear.]
Could one of you do a screenshot of the markup to insert an inline image using an attached file's link?
And please delete the eye-roll emoticon before posting. I do realize my incompetence.
(4) Well by all the sand on the shore that crocus photo DOES now appear above. It did not before. So Im going to try to reverse engineer to get it to show my own new attachments by incrementing that 59 of the crocus...
(https://www.pacificbulbsociety.org/smf/index.php?action=dlattach;ts=1616860150;topic=11.0;attach=60;image) is 60
(https://www.pacificbulbsociety.org/smf/index.php?action=dlattach;ts=1616860150;topic=11.0;attach=61;image) is 61
(https://www.pacificbulbsociety.org/smf/index.php?action=dlattach;ts=1616860150;topic=11.0;attach=62;image) is 62
Maybe those will not appear until they upload.
I neglect my garden on the central coast of California

Martin Bohnet

now why exactly would you want to use the image  code when you could use the attach code? btw one can also use other peoples attachments:

[attach id=0 msg=98]
makes
[attach id=0 msg=98]

and if you want it big,

[attachment id=0 msg=98]

[attachment id=0 msg=98]

btw I adore the rolleys-smily, it's the one i most often use, usually when noticing my own mistakes.
Martin (pronouns: he/his/him)

gastil

#12
Thank you Martin.
The Code: [Select] thing is supposed to show the code, right?
Perhaps it is a permission thing, but for me, it does not show any code.
It says:
[font=dejavu sans mono][size=x-small][ You are not allowed to view this attachment ][/size][/font]
I also tried hovering and have not yet discovered a hover that shows a clue.
OK, I like the eye-rolley smiley too. And it does often apply to me.


Update: well NOW that codes DOES show. Did you change a setting?
And the reason I did not try the attach code is because I did not know it existed, no having been able to see the code.
I neglect my garden on the central coast of California

Martin Bohnet

#13
the link in the  attachment menu does the code inserting for you!

[attach id=0 msg=103]

see here:

[attach id=1 msg=103]

as you can see, if you use this code, the attachment below the post will be hidden.

the code-markup just keeps text from being executed
Martin (pronouns: he/his/him)

gastil

#14
Sorry. I did not realize that "Insert attachment" text was an actionable thing. Your screenshot makes that clear now. So, I will test it:
I re-uploaded my Iris_ordinarious.jpg and I clicked on the "Insert Attachment 0" text to the right of the Choose File box. Nothing happened. I looked at Preview and I see no image. I tried the Toggle View and still no image. Do I understand correctly that you did not type in the squarebracket attach tag yourself, that having clicked the "Insert Attachment 0" inserted that code for you? I am going to Post to see if that makes the image show up.

Edit by Martin: [attach id=0 msg=104]
Edit by Gastil: [attach id=0 msg=104]
I neglect my garden on the central coast of California