Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
New BB tag to do image thumbnails... Details »»
New BB tag to do image thumbnails...
Version: 1.00, by Zzed Zzed is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-26-2003 Last Update: Never Installs: 30
 
No support by the author.

This hack adds a new tag to your forums that will allow you to post images
in the form of a thumbnail.

The tag allows you to post pictures in the form of a thumbnail. Large images
can throw off the page, and the tag will scale the picture down to an 80x60
thumbnail preserving its original length and width ratio and turn it into a
hyperlink that you can click on and see the full image in a new browser window.
If the image being thumbnailed is smaller than 80x60, it will show up as is.

This tag is identical to the IMG tag. The new tag is THUMB

Tables affected: none
Templates affected: none
Files affected: admin/functions.php

Check out this link for a demo: http://www.ls1.com/forums/showthread...hreadid=276879

Note: This tag does not resize the actual picture. It just displays them at a smaller
scale. It will not help with bandwidth preservation.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 07-04-2003, 10:16 AM
wolfgang2 wolfgang2 is offline
 
Join Date: Apr 2003
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no problems anymore
Reply With Quote
  #93  
Old 07-13-2003, 07:16 PM
fiendnutz
Guest
 
Posts: n/a
Default

is there anyway to make this work with attached images that were uploaded through a post made by someone. They use an img src tag rather than a {img} tag.
Reply With Quote
  #94  
Old 11-06-2003, 05:35 AM
Tweak589 Tweak589 is offline
 
Join Date: Nov 2003
Location: California
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works great!

Except I run into a very terrible issue with the code I think....

Zzed, if you can help possibly, please do so. I am all set with your code, and used your recomendation from this post:

https://vborg.vbsupport.ru/showthrea...ight=%5Bimg%5D

To use that line of code that will have [IMG] tags changed to [THUMB] tags. So I edited the functions.php perfectly fine, and everything works perfect.

The max estimated image size I can use for the forum dimensions is 540 x 405. Any image Higher than 540 will automatically resize to 540, no problems. But for things like signatures.... and small icons, I will always get a big thick black border around the small image. I even made the setting in your code of border="3" set to "0". So what could be the problem?

Is it looking at any image w/ [IMG] tags around it and trying to do this little equation or what?

All I am asking is for a fix that takes away those borders even though border="0" is on... Please Help!

-Tweak
Reply With Quote
  #95  
Old 11-09-2003, 08:18 PM
ChrisSy ChrisSy is offline
 
Join Date: Mar 2002
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fiendnutz
is there anyway to make this work with attached images that were uploaded through a post made by someone. They use an img src tag rather than a {img} tag.
BUMP - also wanting this :l
Reply With Quote
  #96  
Old 11-12-2003, 02:00 AM
MatrixSh0cke MatrixSh0cke is offline
 
Join Date: May 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems people dont want the border LOL I on the other hand DO, just want to color it? Is there any way to change it's color?
Reply With Quote
  #97  
Old 11-12-2003, 08:18 PM
hypedave's Avatar
hypedave hypedave is offline
 
Join Date: Nov 2001
Location: Dallas, Tx
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MatrixSh0cke
Seems people dont want the border LOL I on the other hand DO, just want to color it? Is there any way to change it's color?

try this. Open admin/functions.php up
look for the folowing code.


PHP Code:
$code="<a href=\"$code\" target=\"_blank\"><img src=\"$code\" width=\"$xsize\" height=\"$ysize\" border=\"3\"></a>"
and change "border=\"3\ to border=\"1\

I havent tryed it, but let us know if that works
Reply With Quote
  #98  
Old 11-12-2003, 10:54 PM
Tweak589 Tweak589 is offline
 
Join Date: Nov 2003
Location: California
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

He asked how to color the border, not the thickness....
Reply With Quote
  #99  
Old 11-13-2003, 01:21 AM
MatrixSh0cke MatrixSh0cke is offline
 
Join Date: May 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL, yeah I already trimmed the border down, I just wanted to color it. I tried the bordercolor= thing, but it didnt work. Is there something else I need to do?
Reply With Quote
  #100  
Old 11-19-2003, 06:18 PM
MatrixSh0cke MatrixSh0cke is offline
 
Join Date: May 2003
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No one can tell me how? ;_;
Reply With Quote
  #101  
Old 12-10-2003, 04:40 PM
Prince Prince is offline
 
Join Date: Oct 2001
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did you add the bordercolor tag to the first img line too?

this one:
$code = "<a href=\"$code\" target=\"_blank\"><img src=\"$code\"></a>";
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 10:09 PM.


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.04981 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
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)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete