Traditional Muzzleloading Association

The Center of Camp => The Campfire => Topic started by: RobD on August 15, 2017, 09:14:28 AM

Title: inline attachments now activated for our TMA forum
Post by: RobD on August 15, 2017, 09:14:28 AM
whenever you attach a file, or files, to a post, they're stuck down at the bottom of the post and thumbnailed to a small size.

forum code has been added that will allow you to attach images to your post and place those images anywhere within the body of your post.

here's an example of just attaching an image to post, and seeing it at the bottom ....
Title: Re: inline attachments now activated for our TMA forum
Post by: RobD on August 15, 2017, 09:18:18 AM
now here's a post that uses the same attached image as above, but puts that image inside the body of the post itself.

 [ Invalid Attachment ]

kinda neat, eh?

how'd he do dat?

easy.  just attach yer image (or images) as you normally do, then wherever in the body of your post that you want the attached image to appear, simply type this code ...
Code: [Select]
[attach=1]the number (in this case "1") is for the first attached image - increment that number for each other attached image (if there is more than 1 attached image).
Title: Re: inline attachments now activated for our TMA forum
Post by: Maven on August 15, 2017, 10:57:10 AM
Neat, Rob! :bl th up
Title: Re: inline attachments now activated for our TMA forum
Post by: Uncle Russ on August 15, 2017, 03:34:12 PM
I like this feature a lot better than the little "attachment" feature.
IMHO, This has been needed, very glad to see it has come about.

You're spot on.....how'd he do that?

Thanks Rob!
 :hairy

Uncle Russ...
Title: Re: inline attachments now activated for our TMA forum
Post by: rollingb on August 15, 2017, 04:50:48 PM
I 'bout had another heart attack when I first seen the title to this thread.  :lol sign
Title: Re: inline attachments now activated for our TMA forum
Post by: Uncle Russ on August 15, 2017, 05:16:55 PM
I 'bout had another heart attack when I first seen the title to this thread.  :lol sign

I know! Rob done gone "In-Line" on us...what a terrible thing to have happen to a fellow traditionalist.

However, It didn't take me long to discover that I'm all in for "In-Line" when it comes to this application of the term.

Uncle Russ...

Title: Re: inline attachments now activated for our TMA forum
Post by: RobD on August 15, 2017, 05:21:13 PM
"inline"!?!?!? 

dang, i never put 2 and 2 together on that alternate meaning!!!!  :Doh!

NO WAY am i going over to THAT dark side!!!!!!  :P  8)  :laffing
Title: Re: inline attachments now activated for our TMA forum
Post by: Hank in WV on August 15, 2017, 06:21:55 PM
Almost had part two of the big one. "I'm comin to join you Elizabeth". apologies to Redd Foxx.
Title: Re: inline attachments now activated for our TMA forum
Post by: Winter Hawk on August 15, 2017, 08:12:18 PM
I 'bout had another heart attack when I first seen the title to this thread.

Me too!  Well, it definitely catches your attention so you read the post!  :laffing

~WH~
Title: Re: inline attachments now activated for our TMA forum
Post by: Uncle Russ on August 15, 2017, 08:42:17 PM
Almost had part two of the big one. "I'm comin to join you Elizabeth". apologies to Redd Foxx.

Good one!
 :lol sign  :applaud

Uncle Russ...
Title: Re: inline attachments now activated for our TMA forum
Post by: Ohio Joe on August 15, 2017, 11:26:05 PM
Cool!
Title: Re: inline attachments now activated for our TMA forum
Post by: SharpStick on May 10, 2018, 07:43:40 PM
Just trying to see why inline attachments aren't working for me ... now
 [ Invalid Attachment ]

Well did it
Title: Re: inline attachments now activated for our TMA forum
Post by: Uncle Russ on May 11, 2018, 02:25:20 AM
Just trying to see why inline attachments aren't working for me ... now
 [ Invalid Attachment ]

Well did it

Don't see it.
 [ Invalid Attachment ]  

I'm going to try this with my tablet , I've never gone there before, so I don't know what to expect.

Uncle Russ...
Title: Re: inline attachments now activated for our TMA forum
Post by: Hank in WV on May 11, 2018, 06:07:21 AM
Not trying to steal this thread, but what would that pistol weigh? I also wouldn't want to clean it.
Title: Re: inline attachments now activated for our TMA forum
Post by: RobD on May 11, 2018, 11:20:16 AM
Just trying to see why inline attachments aren't working for me ... now
 [ Invalid Attachment ]

Well did it

lemme ask the obvious  -  are you sure that that MikeFink.pdf file exists on your computer?
Title: Re: inline attachments now activated for our TMA forum
Post by: SharpStick on May 11, 2018, 12:39:22 PM
Yes it does. I use the "Choose File" button under "Attachment and other options" to find the file. The file name appears in the box. Then I click the "Insert Attachment 1" and the "attach=1" appears inside square brackets. But when I preview or post nothing appears, not even the [ Invalid Attachment ] that I see when you quote my message in your reply.
Like here, the image should appear between two smiley faces

 :)  [ Invalid Attachment ]   :)

Worse is that I've successfully done this several times before.
Title: Re: inline attachments now activated for our TMA forum
Post by: RobD on May 11, 2018, 01:05:16 PM
pdf files can be strange to include inline ... i fudged around it and now they'll show up.  :applaud  :*:
Title: Re: inline attachments now activated for our TMA forum
Post by: SharpStick on May 11, 2018, 01:30:42 PM
Let me try the PDF file again and then a JEPG file.  I tried both originally, neither worked.

PDF
 [ Invalid Attachment ]

JPEG
 [ Invalid Attachment ]

Fingers crossed ....  They both appear attached now, only the JPEG displays inline.

I notice too that I can now do attachments when I modify a post. That didn't appear earlier.
Title: Re: inline attachments now activated for our TMA forum
Post by: Uncle Russ on May 11, 2018, 03:29:55 PM
Looks like you finally did it.
Don't know if it was you, or something Rob did but you gotrdone.

Uncle Russ.....
Title: Re: inline attachments now activated for our TMA forum
Post by: SharpStick on May 11, 2018, 03:58:13 PM
Looks like you finally did it.
Don't know if it was you, or something Rob did but you gotrdone.

Uncle Russ.....

The problem, apparently, was only with PDF files.  Rob did something so they at least show up as a link, but still not inline.
JPEG files work fine.  I had tried the PDF file because it was much smaller (70k vs. 250k), and the website software acts like PDF files should work. But, after 40 years as a software engineer I should know better that to expect software to actually work  :Doh!   What was I thinkin'!

Rob, is there a try-it-out forum to test things like this and everyone doesn't get notified?
Title: Re: inline attachments now activated for our TMA forum
Post by: RobD on May 11, 2018, 04:00:00 PM
inline pdf links now show up ... there is NO way to show pdf content, only images and videos are direct content.

 [ Invalid Attachment ]

... no test forum - if something fails, i'd like to know about it here in the live forum.

a lot SMF "features" are mod add-on hacks, and inline images was one of them.


Title: Re: inline attachments now activated for our TMA forum
Post by: SharpStick on May 11, 2018, 04:02:30 PM
inline pdf links now show up ...

 [ Invalid Attachment ]

The link shows, but the image does not appear as it does for JPEG files.
Title: Re: inline attachments now activated for our TMA forum
Post by: RobD on May 11, 2018, 04:04:15 PM
inline pdf links now show up ...

 [ Invalid Attachment ]

The link shows, but the image does not appear as it does for JPEG files.

see my post above your last post  ^^^^

ALSO - images embedded inside any other medium, like a pdf file, can never show.  better to just use the image rather than pdf it.
Title: Re: inline attachments now activated for our TMA forum
Post by: RobD on May 11, 2018, 04:24:43 PM
these are the allowed attached file types ...

Allowed file types: doc, gif, jpg, pdf, png, txt, zip

gif, jpg, png - these are direct content and will be viewed.  this is also true of external videos that are archived elsewhere on the web.

doc, pdf, txt, zip - these are not direct content and can only appear as links