SMF Support > SMF 2.0.x Support

In topic make img clickable

<< < (2/3) > >>

lurkalot:

--- Quote from: K@ on June 24, 2012, 11:43:13 AM ---They should do that, as standard, for attachments, I believe.

In Attachments settings, I believe you need to have both of these checked:

Display image attachments as pictures under post
 
Resize images when showing under posts

--- End quote ---

Don't think that image is attached K@  it's embedded using [img][/img] tags. ;)

K@:
I'd guess that would depend on how the sizes are set and if they're set to be resized.

I could be wrong. But, I believe that the resizing thing that repxl is talking about is down to the browser, isn't it?

The image won't enlarge, if the software's set to resize it.

(Have I got that right?)

MrPhil:
If it's [img] tags you're using, they'll only display the image you specify. If you don't like the HS4SMF model, what you could do is

--- Code: ---blah blah [url=http://link to fullsize image][img]http://link to thumbnail[/img][/url] blah blah

--- End code ---

Now, that will probably give you a new page with nothing but the full size image, rather than a lightbox style enlargement, or the full size image flowed into your post's text. Is that sufficient?

repxl:

--- Quote from: MrPhil on June 24, 2012, 12:30:36 PM ---If it's [img] tags you're using, they'll only display the image you specify. If you don't like the HS4SMF model, what you could do is

--- Code: ---blah blah [url=http://link to fullsize image][img]http://link to thumbnail[/img][/url] blah blah

--- End code ---

Now, that will probably give you a new page with nothing but the full size image, rather than a lightbox style enlargement, or the full size image flowed into your post's text. Is that sufficient?

--- End quote ---

hmm when you give the url to fullsize image it opens in a new window

MrPhil:
Well, that's what I said would probably happen ("...give you a new page..."). If that is the action you desire (click on a thumbnail to get a full size image), but don't like the bare page, I'm sure there are alternatives. Look through the mods, including HS4SMF and any "lightbox" offerings. Someone is bound to have cracked this nut before. You could even write a simple little display.php?path_name-of-full-size-image to at least give an empty page framework and color scheme matching your forum, plus the image centered.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version