Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-16-2004, 08:10 AM
Jaxx Jaxx is offline
 
Join Date: Mar 2003
Location: Seattle, Wa
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 11-16-2004, 03:18 PM
Fargo's Avatar
Fargo Fargo is offline
 
Join Date: Jan 2004
Location: North Dakota
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 11-16-2004, 11:14 PM
Jaxx Jaxx is offline
 
Join Date: Mar 2003
Location: Seattle, Wa
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much
Reply With Quote
  #4  
Old 11-17-2004, 03:36 AM
HiDeo's Avatar
HiDeo HiDeo is offline
 
Join Date: Oct 2003
Posts: 306
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice job thanks !
Reply With Quote
  #5  
Old 03-02-2005, 06:35 PM
Crapaddict Crapaddict is offline
 
Join Date: Oct 2004
Location: the Netherlands
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 08-19-2005, 09:25 PM
EdQ EdQ is offline
 
Join Date: Aug 2005
Location: Sunny San Diego
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04134 seconds
  • Memory Usage 2,209KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete