News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Resize Images To Fit Screen

Started by slinouille, April 13, 2009, 01:43:14 PM

Previous topic - Next topic

slinouille

Link to Mod



Resize Images to Fit Screen v0.1
By Slinouille



Introduction
This mod permits to proportionally scale all images to fit the user's screen size.
This mod uses:
- jQuery javascript library : http://jquery.com/ - v1.3.2
- jQuery imagefit pluggin : http://www.ollicle.com/eg/jquery/imagefit/ - v0.2

Features
o Ability to proportionally scale all embended images in messages to fit the user's screen size.
o Images are dynamically resized if user's screen is changing.
o Very simple ... just enable it and enjoy!

Installation
Simply install the package to install this modification on the SMF Default Core theme.
Manual edits will be required for other themes.

This mod is compatible with SMF 2.0 RC1 Public and above only.

Support
Please use the modification thread for support with this modification.

Changelog
0.1 - 09th April 2009
o Initial release
Visit VAG-Technique.fr
Take a look to my mods

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

edi67

Installed all ok but seem not work for me :) already enabled mod but...nothing appear image are always in same size
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

slinouille

Hi!

Do you use a personal theme?
Do you use any other mod "working" on images?
Any url for an example of post with big images  that I could check?

SliN
Visit VAG-Technique.fr
Take a look to my mods

edi67

Default theme core
no, i unistalled Ncode mod before install this
this is image i using: http://wallpapers.insanepwning.net/albums/Crowded_Wallpaper.jpg
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Raugturi

I too installed this and the images are not resizing at all.  I am using a custom theme though.  What modifications should I make to the files in that theme for this to work?

The only modification I made so far was to the Settings.english.php file to get the option to enable image resizing to show up.  That worked, so I checked the box to enable it, but the images still do not resize.

chef4o

It's working great on my forum, causing the images... The problem is that it resizes my emoticons too... And this problem seems to be only with the IE and Opera... No problems under Firefox!

Özgür

Quote from: edi67 on April 13, 2009, 05:59:09 PM
Default theme core
no, i unistalled Ncode mod before install this
this is image i using: http://wallpapers.insanepwning.net/albums/Crowded_Wallpaper.jpg
Slin asked your forum post url. =)
So Long

timned88

what type of images does this resize?   (attachments, linked images, all images, etc.)

slinouille

Hello all!
Strange that you get all those problems and really sorry for that

Concerning the "noresizing" problem, I've experiment this trouble yesterday on installing mod "simpleportal" ... indeed this mod adds some new tables element which changes the name of the main container. For those who have troubles, do you have ths mod installed (I've got a solution)

@chef4o : I'll check that.

@timned88: It has been done only for image embedded in message using img tag.

@all: I'll take some time to found a better solution for defining the "reference container".

SLiN
Visit VAG-Technique.fr
Take a look to my mods

slinouille

Hello,

I've uploaded a release 0.1.5.
For those you have experimented some difficulties please use it, and tell me if it's better.
I've added the possibility to customize the theme elements on which the mod is activated. Please follow instructions ;)

SliN
Visit VAG-Technique.fr
Take a look to my mods

chef4o

Thanks a lot!!! It works just great now :) You're the best :P

slinouille

Quote from: chef4o on April 18, 2009, 05:18:05 PM
Thanks a lot!!! It works just great now :) You're the best :P

Thanks ... :)
Visit VAG-Technique.fr
Take a look to my mods

ALEJO

#13
Hi, im having this problem*see picture below - the pic its like compressed vertically*. (15" monitor at 1280x800)
This seems to have problems with the resoultion because with 1280x1024 it works fine, so if you can help me i would be thankful.

solo el mas paranoico sobrevive

slinouille

Really strange ... perhaps can you give an url where to found that, so that I can check by myself ;)
Visit VAG-Technique.fr
Take a look to my mods

ALEJO

Quote from: slinouille on April 22, 2009, 01:26:31 PM
Really strange ... perhaps can you give an url where to found that, so that I can check by myself ;)

It happens with all pictures of the forum (with that resolution)
I sent you the link by mp.
solo el mas paranoico sobrevive

miseryshining

works great out of the box, thanks!

gourav

I am using v0.1.5 on beta2 RC1
but there is no chnage at all in Iamges?
Nither in iamges posted using [img ] tag
nor in images uploaded to smf??

1 more serous problem appeared after using this mod
that all new Images uploaded gets deleted :(
this mod was highly unsafe for me?? 

gourav

Example of images deletd by this mod????
http://gstek.info/forum/software-games-wallpapers-zone/landscapes-flowers-3d-sky-scenarios-all-eye-catching-wallpapers-(must-visit)/114/

And example that it doesnt have any effect on images
http://gstek.info/forum/software-games-wallpapers-zone/landscapes-flowers-3d-sky-scenarios-all-eye-catching-wallpapers-(must-visit)/

ArkServer

any chance to get this work on smf 1.1.x ? very useful mod :D!

Advertisement: