PDA

View Full Version : Show Thread Enhancements - Hide thumbnails for images that are inlined in the post with the [img] tag


sockwater
07-01-2008, 10:00 PM
This mod does what the title says. If you attach images to a post and then use the bbcode to display the image in your post, then the thumbnail for it at the bottom will be hidden.

This mod works with the built-in [IMG] bb code, and can also work with your custom image bbcodes.

To install, just import the product XML file.


Before:

[IMG]https://vborg.vbsupport.ru/attachment.php?attachmentid=83411&stc=1&d=1215030405

After:

https://vborg.vbsupport.ru/attachment.php?attachmentid=83412&stc=1&d=1215030405

MissKalunji
07-02-2008, 10:52 PM
ahh that's good thanks!

elmati
07-03-2008, 02:21 AM
COOL!
really useful :)

thanks a lot!

NAZIA
07-03-2008, 02:22 AM
hmm. not bad idea...

Q-v-n-s-Q
07-03-2008, 08:52 AM
good idea, thanks

sockwater
07-03-2008, 04:33 PM
Glad you like it! :)

Alfa1
07-03-2008, 07:20 PM
Superrrr!

maxicep
07-04-2008, 02:05 PM
Good Idea, thx

NwM
07-30-2008, 02:50 AM
Hello,

This is just what I have been looking for. I'm still a bit new to PHP coding, and I have this question:

Is it possible to modify this plugin to look for an attachment inserted into the post using a custom BBCode tag instead of [IMG] ? I want to use a custom tag that inserts the image and allows for text wrapping and image alignment.

Thanks!

sockwater
08-01-2008, 12:03 AM
It only looks for the [img] tag. But it would be simple to modify it to work with your custom image bbcodes. What are your bbcodes?

NwM
08-01-2008, 12:52 AM
It only looks for the [img] tag. But it would be simple to modify it to work with your custom image bbcodes. What are your bbcodes?

I am using a tag called [img4]:

<img src="{param}" align="{option}" alt="" border="0" hspace="5" vspace="5" />

So ideally, I would like it to look for images inserted with the [img4] tag.

Thanks.

Alfa1
08-01-2008, 12:58 AM
Interesting. What hack is that?

I am using this and would like to hide thumbs for this as well:

<img src="{param}" align="left" alt="left align image" style="border:4px;border-style:inset;background:{option}" hspace="6" vspace="3" />

NwM
08-01-2008, 01:03 AM
Interesting. What hack is that?

I am using this and would like to hide thumbs for this as well:

<img src="{param}" align="left" alt="left align image" style="border:4px;border-style:inset;background:{option}" hspace="6" vspace="3" />

Your tag is almost identical except you are manually specifying the alignment, right? So you have a separate tag for right, left, center, etc? I really don't care about background color, etc., but this addpon seems a good way to produce posts for news blocks in a CPM system page. :)

Alfa1
08-01-2008, 01:09 AM
Indeed.

sockwater
08-01-2008, 06:37 AM
So ideally, I would like it to look for images inserted with the [img4] tag.
I am using this and would like to hide thumbs for this as well:
Download version 1.1 and you can now add any number of image bbcodes in the settings. So it will work for [img], [img4], [imgleft] etc.

Alfa1
08-01-2008, 02:33 PM
I can't find the settings

NwM
08-01-2008, 05:08 PM
I also cannot find the settings... Where is the options panel located that is shown in the third screenshot?

Thanks!

sockwater
08-04-2008, 09:58 PM
I can't find the settings

I also cannot find the settings... Where is the options panel located that is shown in the third screenshot?

Thanks!
vBulletin Options -> Hide Attached Thumbnails Options

NwM
08-04-2008, 11:38 PM
Aaah... Very nice, thank you!

Alfa1
08-04-2008, 11:46 PM
Great.

emtee
09-23-2008, 10:47 PM
Very nice, thanks! This should be vB default imho.

f0rmat
09-23-2008, 11:56 PM
is it work just wish jpg files?

barcena
09-24-2008, 12:59 AM
I just installed and is unable by default but it dosn't seems to be working on my site 3.7.3. I can stil see the thumbnail on attached pictures, maybe i'm attaching a wrong type of extension, who knows.

lucky51
09-24-2008, 11:12 AM
thanks working

mark as installed

rnixon
11-28-2008, 08:38 AM
Many thanks, those thumbnails have always bothered me, good riddance!

3.6.8

kiwivc
11-29-2008, 10:53 PM
3.6.8 PL2 installed/uninstalled. Didn't work for me unfortunately.

Alfa1
12-01-2010, 02:15 PM
Does this work on vb4.1?

ykkrox
09-20-2011, 07:36 PM
Does this work on vb4.1?

It seems to work just fine in 4.1.6


Oops. There is a bug when I come back to the thread.
It updates fine when posting, but when you leave the thread and come back, the thumbnails aren't parsed out.

hgb
10-25-2011, 07:20 PM
thanks for the mod:up:

Alfa1
05-21-2012, 02:57 PM
Is there an alternative to this mod for vb4? or does anyone have a fix for this mod to make it work for vb4?