View Full Version : [BBCode] Thumbnails
Genjuro-Sensei
12-22-2006, 10:00 PM
Hello All !
Description:
This simple BBCode let you display an image in a thumbnail when clicking on it it open the original image in a new window, very usefull when making tutorials and it's nice looking too ;)
Installation:
As always, Admin CP -> Custom BBCodes -> Add new BBCode
*Title: Thumbnail
*BBCode: tmb
*Code remplacement:
<table cellspacing="0" cellpadding="0" align="center" style="background-color:#000000; border:1px #000000 solid; color:#ffffff; font-size:11px;">
<tr>
<td align="center"><a href="{param}" target="_new"><img src="{param}" border="0" alt="Thumbnail" title="Thumbnail" width="300" /></a><br />Click to view the original image</td>
</tr>
</table>
*Example: image_url
*Description: Displays an image as a thumbnail when clicking on it, it opens the original image in a new window.
*Use second parameter: No
*Button image: http://img296.imageshack.us/img296/3975/tmbdb3.gif
Enjoy ;)
Allan
12-23-2006, 04:10 PM
Great, click Install ;)
Jarllax
12-24-2006, 06:02 AM
Works great! Installed.
Sophonax
12-24-2006, 01:31 PM
Installed~ <3
hotwheels
12-25-2006, 09:23 PM
very interesting.......will look at later for install.......thanks
sorry01
01-02-2007, 02:55 PM
Tankssss works great....
how do u get it so it puts them in align instead of middle.
so its like
[ ][ ][ ][ ]
instead of
[ ]
[ ]
[ ]
grecostimpy
01-20-2007, 05:05 PM
Excellent!
RFViet
02-28-2007, 06:55 PM
Cool !!
BadgerDog
03-22-2007, 02:49 PM
Is there way of "left" justifying the pics?
I put in "left" instead of "center" and it seemed to create an odd effect. I think for "left", it needs to have a carriage return at the end of each pic. How can I add that?
Thanks
Regards,
Badger
Triky
03-22-2007, 05:17 PM
how do u get it so it puts them in align instead of middle.
so its like
[ ][ ][ ][ ]
instead of
[ ]
[ ]
[ ]
Is there way of "left" justifying the pics?
I put in "left" instead of "center" and it seemed to create an odd effect. I think for "left", it needs to have a carriage return at the end of each pic. How can I add that?
Thanks
Regards,
Badger
Try to remove the align="x".
BadgerDog
03-22-2007, 05:28 PM
Try to remove the align="x".
I changed align="left" to align=""
plus
I changed td align="center" to "td align="left"
It now works like a charm, at least in my testing...
I also set the width="200" from 300. If I go smaller it leaves a thick black margin on the right side of the thumbnail. I've been trying to figure out how to get the thumbnail pic much smaller, except leave the border even all way round...
Nice mod... :up:
Thank you...
Regards,
Badger
Triky
03-22-2007, 05:32 PM
I changed align="left" to align=""
It works becouse the browser recognize that property like uncomplete, and so it doesn't show it, it doesn't work. :)
So, you can completly remove it.
BadgerDog
03-22-2007, 05:35 PM
It works becouse the browser recognize that property like uncomplete, and so it doesn't show it, it doesn't work. :)
So, you can completly remove it.
Thanks again... it's a big help in our forum... :up:
Any quick way (I'm barely computer literate :D ) to get the thumbnails smaller, yet maintain an even black border all way round?
Regards,
Badger
MAD555
03-23-2007, 11:20 AM
<i>Really interesting...</i>
Atakan KOC
03-26-2007, 06:48 AM
Thanks....
Thanks a lot for this, great idea!
I made a few small change to the HTML though.
what about the image size?
Triky
03-28-2007, 07:55 AM
Zia, whay you mean, exactly?
Triky
03-29-2007, 11:39 AM
The problem is that if you put the tag lik this: gg it show a bad non-image thumb. How could we solve this? Another problem.. if you put the [tmb] tag into a [code] box, it show always a non-image thumb. Arg!
Majest
05-05-2007, 11:00 AM
Installed.
Guest210212002
05-05-2007, 01:17 PM
* Guest210212002 clicks install
Would also like to get it smaller, say 100x100, without the black border. I also added in a height="200" to make it an even square. :)
fordp
07-28-2007, 06:09 PM
But could you be more specific as to how to install it? (I'm a newbie)
ie., what exactly to put in fields:
Title =
Tag=
Replacement=
Example=
Description=
Use= Yes/No
Button Image=
Thanks
cheat-master30
07-28-2007, 06:47 PM
While I eventually managed to get this working, I did find that it would break Gallery hosted images when surrounding them with this code, regardless of the gallery script used. I tried images uploaded with both Photoplog and Coppermine image gallery to no success, even when other images from the same domain (mine) would come up normally. And yes, this was even when I tried the address gained from CPanels file editor option.
xman_79
07-28-2007, 08:15 PM
Installed .
Very useful .
Thanks.
I uploaded the button to forum/images/editor but what do I use as the url in that field?
(such a newbie lol)
fordp
07-31-2007, 10:58 AM
Gave up. Not installed. :(
KRaL_JAcK_
08-04-2007, 07:18 PM
Installed.. Thanks .. Working on 3.6.8.. great post..
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.