vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   [BBCode] Thumbnails (https://vborg.vbsupport.ru/showthread.php?t=134665)

Genjuro-Sensei 12-22-2006 10:00 PM

[BBCode] Thumbnails
 
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:
HTML Code:

<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: [tmb]image_url[/tmb]
*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....

ep13 01-19-2007 12:48 PM

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

Quote:

Originally Posted by ep13 (Post 1162776)
how do u get it so it puts them in align instead of middle.

so its like

[ ][ ][ ][ ]

instead of

[ ]
[ ]
[ ]

Quote:

Originally Posted by BadgerDog (Post 1209593)
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

Quote:

Originally Posted by Triky (Post 1209700)
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

Quote:

Originally Posted by BadgerDog (Post 1209710)
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

Quote:

Originally Posted by Triky (Post 1209713)
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....

rayw 03-28-2007 03:17 AM

Thanks a lot for this, great idea!

I made a few small change to the HTML though.

Zia 03-28-2007 05:15 AM

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: [tmb]gg[/tmb] 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

[high]* Guest210212002 clicks install
[/high]

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.

RVM 07-30-2007 02:33 AM

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..


All times are GMT. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete