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

Reply
 
Thread Tools
Wide image automatic resize for html and vB tags in posts - fixes template problems Details »»
Wide image automatic resize for html and vB tags in posts - fixes template problems
Version: 1.00, by Steve St.Lauren Steve St.Lauren is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Version: 3.0.8 Rating:
Released: 07-28-2004 Last Update: 09-09-2004 Installs: 111
 
No support by the author.

Having trouble with large images in [img] or <img src> tags in your posts causing your templates to go too wide causing a horizontal scroll bar for all posts? I have many users that attach large images to their posts either through vB img or html img src tags. In vB2 it wasn't that much of an issue because it only caused their post to go wide causing a horizontal scroll bar. In vB3 it causes all the posts on that thread to go to that width.

This hack uses the img src width="xx" tag to resize the picture to whatever max size you wish. It also adds a link to the full size image in it's original location and retains any extra formatting the user puts in the tag. In addition it checks to see if the picture actually exists and if not show "Image link is broken" where the picture would have been. Please click install if you install it and please give feedback so I can go full release with it if it's bug free.

Updated on 07/30/2004 - R0.9
Updated on 08/06/2004 - R1.0 - Identical to R.9, no need to upgrade just changing to full release from beta
Updated on 08/10/2004 - R1.1 - Added max_imgsize to the 2nd section of code (and removed global max_imgsize line from both), some users had problems with the code grabbing the max_imgsize from the first section - this fixes that.
Updated on 09/09/2004 - R1.2 - fixed problem with duplicating the resize notice when using wysiwyg editor

Show Your Support

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

Comments
  #102  
Old 12-24-2004, 05:42 PM
HaloImpulse HaloImpulse is offline
 
Join Date: Jul 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Apache version 1.3.33 (Unix)

PHP version 4.3.9

MySQL version 4.0.22-standard
Reply With Quote
  #103  
Old 12-27-2004, 03:11 PM
Steve St.Lauren Steve St.Lauren is offline
 
Join Date: May 2002
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HaloImpulse
Apache version 1.3.33 (Unix)

PHP version 4.3.9

MySQL version 4.0.22-standard
I'm running Apache 1.3.29 and PHP version 4.3.6 and it's working fine here. Not sure what your problem is. Is it not resizing the pictures at all? Error message?
Reply With Quote
  #104  
Old 12-27-2004, 07:20 PM
HaloImpulse HaloImpulse is offline
 
Join Date: Jul 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Error message, something about T-Strings. I replaced the files with the originals so i forget what teh exact message was...
Reply With Quote
  #105  
Old 12-28-2004, 01:27 AM
Steve St.Lauren Steve St.Lauren is offline
 
Join Date: May 2002
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HaloImpulse
Error message, something about T-Strings. I replaced the files with the originals so i forget what teh exact message was...
I'd need to know what that error message was but my guess would be that a mistake was made in installing the hack. Were you using the exact same files you were on the other server or did you start fresh? The php issue won't give an error message it just won't function correctly.
Reply With Quote
  #106  
Old 12-28-2004, 01:28 AM
Steve St.Lauren Steve St.Lauren is offline
 
Join Date: May 2002
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gnappy
this hack really rox, thx Steve!

[high]* Gnappy install ^^
[/high]



but i have a little question.. on my forums many ppl uses to upload images on forum, and for these images i added this tag, used to see this kind of pictures(with url dont finish with .jpg, .gif, .jpeg, etc..) i called this tag [card] (i think many other ppl here uses this tag) and it works like this:
Code:
<img src="{param}">
now, when i use [img] tag ur hack works nicely, but when i use the tag card for a forum uploaded images, the hack dont work. Its obviously that this hack is made just to be applicated to [img] tag, BUT can u tell me how can i use this nice hack to my [card] tags?

thx a lot for replies
I'll take a look at this when I get a chance. I'm recovering from working 90+ hrs a week for a few weeks and don't really feel like digging into code right now.
Reply With Quote
  #107  
Old 12-31-2004, 01:21 AM
HaloImpulse HaloImpulse is offline
 
Join Date: Jul 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Steve St.Lauren
I'd need to know what that error message was but my guess would be that a mistake was made in installing the hack. Were you using the exact same files you were on the other server or did you start fresh? The php issue won't give an error message it just won't function correctly.
yes, i used the same files. When that didnt work, i reinstalled the hack, and it still didnt work. Then to insure that another hack wasnt screwing wiht it, i installed vb all over again and tried it on a brand new installation. No workage. Im running 3.0.3, if thats any consolation
Reply With Quote
  #108  
Old 01-04-2005, 01:40 PM
HaloImpulse HaloImpulse is offline
 
Join Date: Jul 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

were switching to a new more powerful server soon, so hopefully it will work after that
Reply With Quote
  #109  
Old 01-11-2005, 11:55 PM
FWF FWF is offline
 
Join Date: Feb 2003
Location: Indianapolis, IN
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ive got this installed, and i have a section where people post more then 1 image and its taking FOREVER for a page to load with all the images....any ideas ?
Reply With Quote
  #110  
Old 01-17-2005, 09:56 PM
EricR EricR is offline
 
Join Date: Feb 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by FWF
ive got this installed, and i have a section where people post more then 1 image and its taking FOREVER for a page to load with all the images....any ideas ?
Go back to post #83 and start reading from there. Steve has a possible solution in post #97 but I haven't tried it yet. I removed the hack because of the slowdown with multiple images, but I may give his suggestion a try and see if it helps.
Reply With Quote
  #111  
Old 01-18-2005, 03:17 PM
Gnappy Gnappy is offline
 
Join Date: Sep 2003
Location: Italy
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Steve St.Lauren
I'll take a look at this when I get a chance. I'm recovering from working 90+ hrs a week for a few weeks and don't really feel like digging into code right now.
thx a lot for assistance, ill wait for ur reply.. ^^
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:35 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.04327 seconds
  • Memory Usage 2,308KB
  • 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_code
  • (6)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
  • (4)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
  • (11)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