Testing Inline Attachment Package

Submitted by HughGmail on Sun, 01/09/2011 - 18:31

using Default SMF theme to create and view the thumbnails and syntax, this package works. If I use the Absado theme, it does not.
Applied using the Default SMF Theme

1. Attach thumbnail image -

2. Create LINK to image

Result - 1/9/2011 - need to manually add the package to the other themes. In the mean time, if you want to see how this works, go to your profile and switch to the Default SMF theme and then come back here to see how the images appear in the post without being in the attachment list below.


Submitted by Mark McD on Sun, 01/09/2011 - 21:48

Thanks Hugh,

Let me know when the Mod has been added to the "Forum or Board Default" theme (the NARGS default theme), and I'll test it live and and write up the FAQ on its usage.  Thanks for getting this going, I believe it is an important functionality boost for forumists.


Submitted by HughGmail on Fri, 02/04/2011 - 23:22

Skulski wrote:

Wow, it works brilliantly!!!  Thanks, guys!

We're happy that this works for you.

Submitted by Lori S. on Sun, 02/06/2011 - 13:22

I really like the full-size images that were used in the recent New Zealand alpine thread... makes it all more readily-viewable than clicking on thumbnails to enlarge.  Does it cause any problems to use full-size images as opposed to thumbnails?


Submitted by Mark McD on Sun, 02/06/2011 - 13:38

Skulski wrote:

I really like the full-size images that were used in the recent New Zealand alpine thread... makes it all more readily-viewable than clicking on thumbnails to enlarge.  Does it cause any problems to use full-size images as opposed to thumbnails?


The capability does exists to post the full size images, but there are some caveats to it, and Hugh and I believe that it might lead to more headaches so that capability is not being promoted.  The earlier SRGC forum also posted only full size images, not thumbnails, but when they moved to the newer forum (same software as NARGS) in approximately 2006, they smartly opted for the thumbnail approach. The primary reason for moving to the thumbnail approach to speed up the page loading, particularly for those users who are on slower internet connections or dial-up, where they can still see the images and then select which if any image they want to enlarge, rather than forcing the full download of the image.  Spatially when viewing a thread, more can be seen using thumbnails, versus a much greater need for scrolling when full images are the default.

As an aside, NARGS implemented a different thumbnail-enlargement-to-full-size-image option, using a pop-up window, versus the style used on SRGC that enlarges "in place".  The inplace enlargement might be a bit speedier, but if someone posts an oversized image, it goes off-screen and forces scrolling, thus the constant warnings there about observing maximum image sizes (we too plan to post something on recommended image sizes, would've been done if I was able to reach the forum this past week).  On the other hand, on NARGS, the image enlargement goes to a pop-up window, and for most browsers, if an image if oversized, it will first constrain the image to fit the screen, then a second click on the image will do a full zoom using the click point as the zoom-in-center.  I think the pop-up method is therefore a better solution.  It is also possible to move or "park" the enlarged image popup window off to one size, possibly to leave up while scrolling the forum to read something else that might be pertinent.

I commented in the Salix thread how you are making good use of the in-line photo attachments, looks good.

Submitted by Lori S. on Sun, 02/06/2011 - 13:47

Thanks for the explanation, Mark.  I suspected that there probably were very good reasons why the full-size images were less desirable, and your explanation has confirmed that.  

P.S.  How bizarre that you can't access NARGS or SRGC... !  Hope you figure it out soon.

P. P. S.  Oh, wait... Hugh asked me yesterday to post a note that the Wiki was down for some work.  I have not tried to get on to it myself yet, but perhaps that's why you can't get on to NARGS.org?

Update:  OK, I have just tried and I am able to get on to NARGS.org.  I was not able to log on to the forum on Friday (got error messages); Hugh told me then to empty my cache, and then I was able to access it.  Not sure if the same would apply to the main site, but just thought I'd mention it. 

Submitted by HughGmail on Sun, 02/06/2011 - 14:59

Thanks for answering this Mark - and thanks Lori for you help.  Unfortunately, Mark's problem is not related to the other situatiion.

Submitted by RickR on Sun, 02/06/2011 - 18:51

Yes, those full size images make a huge difference in page loading.  And I am guessing that if they were thumbnails, they would have enlarged to a bigger size on the screen when clicked on.  Being not clickable, there is not that option, and the image detail is limited. 

In addition, with my old pc and its little pentium 4 1500mhz cpu, if I have multiple tabs loading, even the thumbnails might not full load, let alone the full size unclickable image.  I can still click on the partial thumbnail and get a full image, but that's not possible if the already full size image that is only partially loaded.  I have to clear my cache and restart by browser, and try again.

Submitted by Mark McD on Mon, 02/07/2011 - 20:53

Rick, your points are well taken.  It was a surprising "reality check" when Trond Hoy posted asking about the percentage of USA having access to high speed internet (see link below), and shockingly it is a dismal low percentage compared to many European countries; go figure.  In fact, President Obama addressed this issue in the recent State of the Union address.  So, we must remember that some people still try to access the forum via lower speed DSL, or believe-it-or-not very low speed dial-up over land lines.  Even where I am, in a semi-rural "bedroom community" between Boston, MA, and the southern New Hampshire hub of Nashua, we only got high-speed internet here 4 years ago.  http://nargs.org/smf/index.php?topic=440.0

Submitted by Boland on Wed, 02/16/2011 - 18:29

I must be a dufus...I cannot figure out this in-line photo attachments.  I went to my profile and cannot see any Default SMF theme.  What am I missing here?

Submitted by Lori S. on Wed, 02/16/2011 - 19:34

I dunno about the SMF theme part but all you do is attach your photos in the normal way, in the order you want to talk about them. 

Then on a new line within the text where you would like the first photo placed, type (attachthumb=1).  The first photo that you attached in the old way will now show up only in that spot.

At the place where you would like the second photo placed, type (attachthumb=2) on a new line... and so on.

MMcD Edit:  Lori, I changed the directions, because you cannot explicitly use the brackets notation, because if you do, it gets evaluated and shows as an error.  So Todd, in the example above, replace the parenthesis "(" characters with brackets "[" .

Submitted by Mark McD on Wed, 02/16/2011 - 20:11

Lori, just so that you know, in my FAQ doc about in-line image attachments, I actually made small image files of the text syntax, tricking the system, to get around the dilemma whereby if you try to show the verbatim syntax as regular text, the system actually evaluates the syntax and delivers the error instead.  So, on the fly when helping out people, just tell them to use syntax "attachthumb=1", "attachthumb=2", etc, enclosed in brackets "[" ... "]".

Todd: the color Theme should make no difference in the ability to do in-line photo attachments, Hugh added the plugin for in-line photos to the color Themes that remain on NARGS Forum.  As a Moderator, if you want to see what the syntax looks like, just go to any message where in-line attachments are used, (such as in my FAQ about the subject) click on "Modify" and take a look... don't save, just hit the back button.

Also as Moderators, please be aware of one little bug with the in-line image attachments plugin. If you need to edit an existing message, you have two options... one is to use the quick Edit button in the lower right of any message, the second is to use the Modify option in the upper right of any message.  If a message has in-line attachments, YOU MUST USE THE MODIFY OPTION if editing the message.  Do not use the basic Edit button on the lower right, otherwise when you save the edited post, the photos disappear!  No worry however, even if that happens, just re-edit the message using the MODIFY button and save, then the images come back.  This is described in my "FAQ - Images - How to attach "inline" images" message:

Any questions, feel free to ask.

Mark :-)