Register Chat Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Image auto resizer Details »»
Image auto resizer
Mod Version: 1.00, by Timmeh7 (Contributor) Timmeh7 is offline
Developer Last Online: Sep 2009 Show Printable Version Email this Page

vB Version: 3.5.3 Rating: (0 vote - 0 average) Installs: 32
Released: 08 Feb 2006 Last Update: Never Downloads: 87
Not Supported  

Hello first post \o/. I'm a long time vB lover/coder, first time poster here (having purchased my own liscence earlier... no more hanging off friend's forums for me).

Brief outline:

This mod is designed to prevent images horizontally stretching the screen, while giving you the ability to revert them to their full size if you wish.

How does this affect the user

This is a silent script - after its installation, there is no configuration or further modification required.

Lets see it then!

There are two images of the mod in action attached.

What versions will this support?

Defiantly 3.5.3 and 3.5.0 (I believe it was RC2) although it was a slightly different string you needed to search for in the php file, but it's in essentially exactly the same. I imagine that with a little messing around, it'll support earlier versions also.

Installation:

First, download the attached zip file (autoresize.zip). A copy of these instructions are also there.

Upload autoresize.js to /clientscripts/ from your forum directory.

Log into your forum admin panel, go to styles & templates > style manager > edit templates.

Edit the "SHOWTHREAD" template (Under Show Thread templates), find </head>

Just above it, add


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save it.

Repeat, adding it in the same place to the newthread template.

Now, from your forum directory, open /includes/class_bbcode.php

search for:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Give it a test, under different templates with different boundaries, it may well still stretch the table make the image a little/be a little too small.

Should this be the case, open /clientscript/autoresize.js

modify the 100 in


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

either up or down (start by moving it up and down in 100's, then when it gets closer to perfect, 10's) until an image that would normally stretch the table fits completely within the forum boundaries. 100 is perfect for the default vbulletin 3.5.3 template.

Enjoy! If you have any problems, just give a shout and I'll do my best to put you right. All feedback/suggestions are also welcome.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	stretchedtable.JPG
Views:	1054
Size:	108.6 KB
ID:	42338Click image for larger version

Name:	autoresize.JPG
Views:	982
Size:	116.5 KB
ID:	42339

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 08 Feb 2006, 03:40
ThePimp's Avatar
ThePimp ThePimp is offline
 
Join Date: Feb 2005
Wrong forum. This is a "Code Modification".
Reply With Quote
  #3  
Old 08 Feb 2006, 04:23
PcFreak's Avatar
PcFreak PcFreak is offline
 
Join Date: May 2003
For me, the forum is the right ones.

Thank you for sharing your js script. irate:

PcFreak
Reply With Quote
  #4  
Old 08 Feb 2006, 06:26
apfparadise apfparadise is offline
 
Join Date: Jan 2005
Real name: Edward Greenberg
Interesting, how about a link to a working version. I can't figure it out from the screenies. Does it open it in a new window as a full, or resizes it in the same window. What's the default state, resized or original? Does it work cross-browser? IE, Opera, and Firefox?
Reply With Quote
  #5  
Old 08 Feb 2006, 06:36
hiiped's Avatar
hiiped hiiped is offline
 
Join Date: Jan 2006
Arrow

Originally Posted by apfparadise
Interesting, how about a link to a working version. I can't figure it out from the screenies. ...........Does it open it in a new window ... NO

http://www.timbashford.com/forum/sho....php?p=7#post7
Reply With Quote
  #6  
Old 08 Feb 2006, 09:00
Timmeh7 Timmeh7 is offline
 
Join Date: Jan 2006
Originally Posted by apfparadise
Interesting, how about a link to a working version. I can't figure it out from the screenies. Does it open it in a new window as a full, or resizes it in the same window. What's the default state, resized or original? Does it work cross-browser? IE, Opera, and Firefox?
It resizes in the same window (and stretches the table as it goes), the default state is resized - though if you didn't like this, it'd be very easy to swap around, it works in all browsers I've tested including IE, Firefox, Opera, Mozilla etc.

Link is up there
Reply With Quote
  #7  
Old 08 Feb 2006, 11:16
c0d3x c0d3x is offline
 
Join Date: Mar 2005
unfortunately it doesn't works for me, i run vb 3.5.3, the bar says it reduced the image, but the image has still its original dimensions
Reply With Quote
  #8  
Old 08 Feb 2006, 11:27
3dsoft's Avatar
3dsoft 3dsoft is offline
 
Join Date: Nov 2002
the pics (bbcode) don't resize. And it does not show "Click this bar..."
I have got the default layout template 3.5.3 installed.

Edit: works great - I accidently put the code before <head> instead of </head>

Last edited by 3dsoft : 08 Feb 2006 at 12:43.
Reply With Quote
  #9  
Old 08 Feb 2006, 12:19
stcont stcont is offline
 
Join Date: Jul 2003
Firefox 1.5.0.1 does not resize image. Note that if u whant use "style.width" u must specify width accoding to spec with dimensions eg not
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thats fixes problem in FF

Last edited by stcont : 08 Feb 2006 at 12:23.
Reply With Quote
  #10  
Old 08 Feb 2006, 12:31
c0d3x c0d3x is offline
 
Join Date: Mar 2005
width of the table or of the img??
Reply With Quote
  #11  
Old 08 Feb 2006, 12:37
stcont stcont is offline
 
Join Date: Jul 2003
Any, whenever in script meets style.width ant the end of statement should be added
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by stcont : 08 Feb 2006 at 12:45.
Reply With Quote
  #12  
Old 08 Feb 2006, 12:53
3dsoft's Avatar
3dsoft 3dsoft is offline
 
Join Date: Nov 2002
Thats fixes problem in FF
that did not fix it in my firefox browser

Edit:
It works, but since I got a fixed width size for my template, the size of the image gets reduced differently depending on the browser.

The image has half of the size in Internet Explorer & Opera than in Firefox 1.5

Last edited by 3dsoft : 08 Feb 2006 at 13:13.
Reply With Quote
  #13  
Old 08 Feb 2006, 12:53
c0d3x c0d3x is offline
 
Join Date: Mar 2005
still don't work :\
Reply With Quote
  #14  
Old 08 Feb 2006, 13:12
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Thankies!
Reply With Quote
  #15  
Old 08 Feb 2006, 18:07
Zia's Avatar
Zia Zia is offline
 
Join Date: Dec 2005
Real name: Z.R.
Sounds nice...a java script...

does that touce sigs ? image hosted on imageshack/photobucket would be re-size too?
instead of klik ..cant it re-size the image to a pre-defined size?
__________________
Zia.

Vbulletin4 + Xcache +Xcache Datastore. +vbSeo3.2.0 +Apache 2.2+ Php5.3.1+SQL5
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 18:33.

Layout Options | Width: Wide Color: