Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
[img] tag thumbnail maker. Details »»
[img] tag thumbnail maker.
Version: 1.00, by Blaine0002 Blaine0002 is offline
Developer Last Online: Jul 2018 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-23-2006 Last Update: Never Installs: 11
 
No support by the author.

This makes it so whenever you use the
PHP Code:
[img
bbcode, instead of a real picture it will post a thumbnail instead. when you click that thumbnail it will bring you to the actual image.


open includes/class_bbcode.php
find:
PHP Code:
        return '<img src="' .  $link '" border="0" alt="" />'
replace with:
PHP Code:
        return '<a href="' .  $link '" target="_blank"><img border="0" width="250" alt="Thumbnail" src="' .  $link '" /></a>'

This will convert all images so they have a width of 250 and make them clickable to the original image. note: if you have a oblong image, the hight will stay preportionate so it may cause thumbnails to look strange, you can also specify a height but the thumbnails will not be preportionate. Change the width="250" to whatever you want :-)





Temp fix: (untill i get more time)
If you dont find that this is what you are looking for, try making a new bbcode with the following options

Title: thumbnail
Tag: imgt
Replacement:
PHP Code:
<a href="{param}" target="_blank"><img border="0" width="250" alt="Thumb resize." src="{param}" /></a
example: [php][imgt]http://img96.imageshack.us/img96/7499/gibraltar12804sx.jpg[/imgt][/php

then ad an image so people can use the imgt tag to make a thumbnail of only certain images.

Show Your Support

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

Comments
  #2  
Old 06-24-2006, 05:20 AM
yonglvnv yonglvnv is offline
 
Join Date: Apr 2006
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, first to reply.
Installed and works great. Thanks. Only one issue. At default size of 250, smaller pics get increased to that minimum size, but no big deal. Mine's decreased to width of 100 to match the attachment size on my forum.
Reply With Quote
  #3  
Old 06-24-2006, 08:10 AM
PabloAM PabloAM is offline
 
Join Date: Jan 2006
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This resize in Vbadvanced news??
Reply With Quote
  #4  
Old 06-24-2006, 08:21 AM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea, thanks.
Reply With Quote
  #5  
Old 06-24-2006, 10:40 AM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Anyway to stop this making smaller images lager?
Reply With Quote
  #6  
Old 06-24-2006, 01:15 PM
Blaine0002's Avatar
Blaine0002 Blaine0002 is offline
 
Join Date: Jul 2003
Location: Wisconsin.
Posts: 1,350
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

im not sure, ill need to look into it a bit. thanks for the response guys

and yes they should resize in the news if you have enabled bbcode and images.
Reply With Quote
  #7  
Old 06-24-2006, 01:30 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack!

Thanks...
Reply With Quote
  #8  
Old 06-24-2006, 08:42 PM
Qwest Qwest is offline
 
Join Date: Jun 2004
Location: United States
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Blaine002,

You need to change this to BETA!! Especially since this is a code modification.

1) As mentioned above it needs to not affect smaller images
2) It messes up people's signature images too!!


You need to work on this before it comes out of BETA.
Reply With Quote
  #9  
Old 06-24-2006, 11:55 PM
RFViet RFViet is offline
 
Join Date: Jan 2006
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool, let me try it !!
It would be nice if it is selectable forum
Reply With Quote
  #10  
Old 06-25-2006, 08:38 AM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have uninstalled this hack due to the smaller images being enlarged
I will be subscribed to the thread hoping that there is a fix for this
Reply With Quote
Reply

Thread Tools

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 07:02 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.05125 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_php
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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