The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
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
Developer Last Online: Mar 2013
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
|
Comments |
#12
|
|||
|
|||
Quote:
|
#13
|
||||
|
||||
sounds great, im definitly gonna use this
|
#14
|
|||
|
|||
I just uploaded a new version that fixes the server down problem. It now checks to see if the server is up first. If it cannot connect to the server after 5 seconds it returns "Image server is down" so the users know why it took longer to generate the page. This was the best solution I could come up with for this. I also added a release # in the title and end of the hack lines of code to keep track of where it's at. Right now this is R0.9 - the original had no release number. Please update to the latest version.
Let me know how it's working for you too, please. |
#15
|
||||
|
||||
Using R0.9 on a vb3.0.1 board with no problems ( did a couple of comestic changes, the font size, opening the oversized image in a new window, and the table for displaying image link broken or server down )
Good job Steve ! |
#16
|
|||
|
|||
awesome hack!
|
#17
|
||||
|
||||
anyone have a live demo setup?
|
#18
|
||||
|
||||
<a href="http://www.runaked.com/forums/showpost.php?p=83416&postcount=76" target="_blank">Link for Live Demo</a>
You can use the demo I just posted! I appreciate this a lot! |
#19
|
||||
|
||||
Odd, but it seems to work on some images but not on others.
For eg, i set the width max at 480 An image that is 500x300 is resized but not a 800x600 linked image. Any clues as to why this might occur ? |
#20
|
|||
|
|||
Do you have a link for that 800x600 image so I can look at it? It would have to be a problem with the getimagesize command in php and that specific file. Perhaps it was done in a program that has something non-standard in the way the files are written? If you can get me the link to the file I'll take a look at it and see what I can figure out. So far it's working on all the images users have posted on our site.
|
#21
|
||||
|
||||
Install was a piece of cake........ thanks for the hack and install is clicked.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|