vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   BB Tag to do thumbnails (https://vborg.vbsupport.ru/showthread.php?t=71809)

Jaxx 11-16-2004 08:10 AM

BB Tag to do thumbnails
 
I'm looking for something like this: https://vborg.vbsupport.ru/showthrea...e+thumb+forums

I know I could use the attachments option, but do to some immature folks, we have to moderate attachments for files they upload *zips, etc*. Doing this would allow img's to be posted just fine.

Thanks.

Fargo 11-16-2004 03:18 PM

if you're not worried about the actual image file size, you could do the following:

Title: thumb1
Tag: thumb1
Replacement:
HTML Code:

<a href="{param}" target="_blank"><img src="{param}" border="{option}" width="150"height="113"></a>
Example:
[thumb1=1]http://www.vbulletin.org/layout/nakkid.gif[/thumb1]

Description:
Code:

Takes a standard resolution image (image width is bigger than image height) and displays as a 150x113 px. thumbnail, linked to full size image.

Use "[thumb1=0]imageurl[/thumb1]" (no quotes) to show thumbnail without a border.

or

Use "[thumb1=1]imageurl[/thumb1]" (no quotes) to show thumbnail with a border.

NOTE: This is NOT a true thumbnail as it copies the original image and simply rescales it.  File size will be the same as the original.

Use Option: Yes

Jaxx 11-16-2004 11:14 PM

Thank you very much

HiDeo 11-17-2004 03:36 AM

Nice job thanks !

Crapaddict 03-02-2005 06:35 PM

I created something most similar to this one, except for a few things:
  • I only specified the width, because that way the width/height ratio will remain the same.
  • I didn't use the optionfield, thumbnails might just aswell always show a border, or if you would rather have them never show a border, you might set it to
    Code:

    border="0"
    now all thumbnails are uniform
    besides that, users can't specify huge borders anymore
  • and after
    Code:

    target="_blank"
    i added
    Code:

    alt="thumbnail picture, click to see fullsize"
    this way, on mouseover, the users will see a tooltip telling them it's a thumbnail.
resum?; this is what it my code is:
Code:

<a href="{param}" target="_blank"><img src="{param}" width=100 alt="thumbnail picture, click for full size"></a>

EdQ 08-19-2005 09:25 PM

Is there anyway to do this on a reply? Convert the [img] to a [thumb] ?


All times are GMT. The time now is 07:03 AM.

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.01100 seconds
  • Memory Usage 1,725KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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