PDA

View Full Version : Forum Improvement: Thumbnail Image Handling


thisnameistaken
25th January 2008, 15:16
With Show Images switched off, when people use the IMG tag, all we get is a link to a thumbnail. Sometimes it's possible to modify the thumbnail image path to find the filename of the full-size image, but it's a pain.

Could the forum preserve the link from the embedded image, and instead of just showing the thumbnail path, show the full-size image path too/instead?

Hankstar
25th January 2008, 22:34
+1.5 and a scone :up:

Bean0
25th January 2008, 23:15
With Show Images switched off, when people use the IMG tag, all we get is a link to a thumbnail. Sometimes it's possible to modify the thumbnail image path to find the filename of the full-size image, but it's a pain.

Could the forum preserve the link from the embedded image, and instead of just showing the thumbnail path, show the full-size image path too/instead?

I haven't checked, but could it be that the actual image is a thumbnail ?
The clickable ones image hosts supply for posting on forums ?

thisnameistaken
25th January 2008, 23:19
I haven't checked, but could it be that the actual image is a thumbnail ?
The clickable ones image hosts supply for posting on forums ?

They're clickable because they're surrounded by <a>nchor tags, the thumbnail image on its own is useless because it doesn't tell you where the large image is. With Show Images off, what we get is a link to the thumbnail image, when we ought to get the link that would normally surround the embedded thumbnail image if you had Show Images switched on.

thisnameistaken
28th January 2008, 11:46
Wee bump now the weekend's over: Is this suggestion feasible?

Bob Smith
28th January 2008, 13:13
I've notified Vic of this thread, hopefully he'll post something once he's read it. :)

Victor
28th January 2008, 13:59
mm, well it's how vBulletin handles it. To change it i'll have to poke around in the scripts. Can have a look later today.

thisnameistaken
28th January 2008, 14:23
It's only an inconvenience, don't let it keep you from anything important.

Thanks Bob and Victor. :)

Victor
28th January 2008, 18:30
This isn't something simple i'm afraid. The way vbulletin caches posts makes it circumvent some bb_code parsing steps. And those are exactly the ones that require changing to make this work. And even then it'll be quite a trick to fix the problem.

PS, what vb actually does here is just replace the [img] with an anchor tag, while leaving the original anchor tag in-tact. If you look at the source you'll see <a "actual link"><a "image link"></a></a>. When you click that, your browser decides to use the inner link and discards the outer one.
Now with post caching, vb pre-parses the [url] tags, so you have <a "original link">[IMG]</a>. Then when you view a post here, vb parses only the [img] tag. The function that parses this tag doesn't know anything about other text in the post, or tags by which it is surrounded.

So that makes it a bit complicated. and I'm not that much of a vBulletin wizz.

thisnameistaken
28th January 2008, 19:29
Agh. Nasty. :(

Well it was just an idea. Thanks for taking the time to look at it, Victor.