Advertisement:

Author Topic: Resize Images To Fit Screen  (Read 40592 times)

Offline slinouille

  • Jr. Member
  • **
  • Posts: 312
    • VAG-Technique
Resize Images To Fit Screen
« on: April 13, 2009, 01:43:14 PM »
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
« Last Edit: April 13, 2009, 02:32:20 PM by slinouille »
Visit VAG-Technique.fr
Take a look to my mods

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Resize Images To Fit Screen
« Reply #1 on: April 13, 2009, 02:33:22 PM »
wow seems to be very intersting
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Resize Images To Fit Screen
« Reply #2 on: April 13, 2009, 04:06:43 PM »
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

Offline slinouille

  • Jr. Member
  • **
  • Posts: 312
    • VAG-Technique
Re: Resize Images To Fit Screen
« Reply #3 on: April 13, 2009, 04:20:42 PM »
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

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: Resize Images To Fit Screen
« Reply #4 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
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline Raugturi

  • Newbie
  • *
  • Posts: 2
Re: Resize Images To Fit Screen
« Reply #5 on: April 14, 2009, 05:55:26 PM »
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.

Offline chef4o

  • Newbie
  • *
  • Posts: 5
Re: Resize Images To Fit Screen
« Reply #6 on: April 14, 2009, 06:25:05 PM »
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!

Offline Özgür

  • SMF Hero
  • ******
  • Posts: 3,924
  • Gender: Male
  • Özgür | jQuery Lover
    • Özgür Yalçın
Re: Resize Images To Fit Screen
« Reply #7 on: April 14, 2009, 08:16:55 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. =)
Yeni forum projem: Özgür Nurettin Yalçın (Üye kaydı açıldı) | Android & jQuery Lover
Don't depend too much on anyone in this world. Because even your shadow leaves you when you're in darkness!
Twitter @ OzgurceFacebook @ Ozgurce
Özgür Yalçın | http://blog.mnyk.net/

Offline timned88

  • Jr. Member
  • **
  • Posts: 360
    • The Magic in Pixels
Re: Resize Images To Fit Screen
« Reply #8 on: April 15, 2009, 12:23:30 AM »
what type of images does this resize?   (attachments, linked images, all images, etc.)

Offline slinouille

  • Jr. Member
  • **
  • Posts: 312
    • VAG-Technique
Re: Resize Images To Fit Screen
« Reply #9 on: April 15, 2009, 03:32:25 AM »
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

Offline slinouille

  • Jr. Member
  • **
  • Posts: 312
    • VAG-Technique
Re: Resize Images To Fit Screen
« Reply #10 on: April 15, 2009, 10:06:57 AM »
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

Offline chef4o

  • Newbie
  • *
  • Posts: 5
Re: Resize Images To Fit Screen
« Reply #11 on: April 18, 2009, 05:18:05 PM »
Thanks a lot!!! It works just great now :) You're the best :P

Offline slinouille

  • Jr. Member
  • **
  • Posts: 312
    • VAG-Technique
Re: Resize Images To Fit Screen
« Reply #12 on: April 19, 2009, 08:05:16 AM »
Thanks a lot!!! It works just great now :) You're the best :P

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

Offline ALEJO

  • Jr. Member
  • **
  • Posts: 160
    • Buzarda
Re: Resize Images To Fit Screen
« Reply #13 on: April 19, 2009, 09:23:34 PM »
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.

« Last Edit: April 20, 2009, 07:41:58 PM by ALEJO »
solo el mas paranoico sobrevive

Offline slinouille

  • Jr. Member
  • **
  • Posts: 312
    • VAG-Technique
Re: Resize Images To Fit Screen
« Reply #14 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 ;)
Visit VAG-Technique.fr
Take a look to my mods

Offline ALEJO

  • Jr. Member
  • **
  • Posts: 160
    • Buzarda
Re: Resize Images To Fit Screen
« Reply #15 on: April 22, 2009, 04:53:06 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

Offline miseryshining

  • Jr. Member
  • **
  • Posts: 173
Re: Resize Images To Fit Screen
« Reply #16 on: April 26, 2009, 12:49:56 AM »
works great out of the box, thanks!

Offline gourav

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
    • Gstek.info
Re: Resize Images To Fit Screen
« Reply #17 on: April 27, 2009, 08:34:13 AM »
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?? 

Offline gourav

  • Semi-Newbie
  • *
  • Posts: 77
  • Gender: Male
    • Gstek.info
Re: Resize Images To Fit Screen
« Reply #18 on: April 27, 2009, 08:36:29 AM »
Example of images deletd by this mod????
Code: [Select]
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
Code: [Select]
http://gstek.info/forum/software-games-wallpapers-zone/landscapes-flowers-3d-sky-scenarios-all-eye-catching-wallpapers-(must-visit)/

Offline ArkServer

  • SMF Hero
  • ******
  • Posts: 1,813
  • Owner of Javaforums.net /nl /be
    • Javaforums.net :: For those that need Java help and tutorials!
Re: Resize Images To Fit Screen
« Reply #19 on: May 10, 2009, 04:26:02 PM »
any chance to get this work on smf 1.1.x ? very useful mod :D!

http://diablolivestream.com :: A diablo livestream community! It's my new pet project and i hope u all like it and join so it becomes a very nice and active community :)!