Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Image Resizer and Sigs in Forum

Asked Modified Viewed 6,581 times
I
illuminator
I
www.fcopz.com/banner/fcopz_banner.gif

***********************************
Online Gaming with real fun
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Hi guys,

After my update from fusion 7.07 to 7.1 every Signature within my Forum will be scaling down by the Image Resizer as well. In my old version 7.07 this was not the case. So, only images in the forum have been resized, not Signatures.

Any chance to get this disabled anyhow ? I’m not sure, I had a kind of fix or hack installed in my old version, but it should be possible.

Second Question: It’s possible to define the picture size of the resized image. Because the current one (300 x 240 px ) is to small for me.

Thanks in advance
Cheers
illu
0 replies

14 posts

L
Luke
L
Luke 10
  • Newbie, joined since
  • Contributed 3 posts on the community forums.
answered
Newbie

Is any chance to disable image resizer completely? I really need to do this.
Our signatures have a lot of small images and the forum is loading very slow.
0 replies
I
illuminator
I
www.fcopz.com/banner/fcopz_banner.gif

***********************************
Online Gaming with real fun
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

@WEC: U are the määän ! That's it, and it's working. Great. Thanks a lot. ;)

******
Closed
******
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

As i read this code, it will assume user screen resolution 1000 if the browser cannot determine the user screen resolution.

If user resolution is less than 800, image will be resized to 200.

If user resolution is less than 1152, image will be resized to 300.

If user resolution is larger than 1152, image will be resized to 400.

So try to change the values 200, 300 and 400 to whatever you would like to test and see if you get the expected result.
0 replies
I
illuminator
I
www.fcopz.com/banner/fcopz_banner.gif

***********************************
Online Gaming with real fun
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Ok, this http://jsbeautifier.org/ give a better look and feel of the code. *gg*

But what i have to change here, if i wanna use the resize functionality only for pics, which has a width of more than 500 px ? Sorry, i'm a "noob" *g I guess, thats the right part of the js file.

if (document.body) {
e = document.body.clientWidth
} else {
e = 1000
}
}
}
if (e <= 800) {
f = 200
} else {
if (e < 1152) {
f = 300
} else {
if (e >= 1152) {
f = 400
}
}
}


THX in advance guys.

Cheers illu
0 replies
L
l0nelyc0wboy
L
I am always doing things that which i cannot do, in order that i may learn how to do it.
whatpulse.org/dynamic-../../images/300224.jpg
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
answered
Junior Member

There's always a way around: http://jsbeautifier.org/
0 replies
M
MarcusG
M
Ex Senior Dev.
  • Member, joined since
  • Contributed 182 posts on the community forums.
  • Started 5 threads in the forums
answered
Member

The includes\jscript.js is minimized in v7.01

That's bad if you want to modify it....
0 replies
M
mpkossen
M
  • Senior Member, joined since
  • Contributed 267 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Why does it look strange to you?
0 replies
I
illuminator
I
www.fcopz.com/banner/fcopz_banner.gif

***********************************
Online Gaming with real fun
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Ah ok, got it. This java script code looks very strange to me.

function resize_forum_imgs(){var f;var e;if(self.innerWidth){e=self.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth){e=document.documentElement.clientWidth}else{if(document.body){e=document.body.clientWidth}else{e=1000}}}if(e<=800){f=200}else{if(e<1152){f=300}else{if(e>=1152){f=400}}}for(var c=0;c<document.images.length;c++){var b=document.images[c];if(b.className!="forum-img"


Can anybody help ? *LoL*

Cheers
illu
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

I think you need to lookup the function resize_forum_imgs() in includes\jscript.js
0 replies
T
ter3
T
ter3 10
  • Newbie, joined since
  • Contributed 1 post on the community forums.
answered
Newbie

sdsdfsf
Edited by ter3 on 16-09-2010 11:03,
0 replies
I
illuminator
I
www.fcopz.com/banner/fcopz_banner.gif

***********************************
Online Gaming with real fun
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Hm this code looks quite good and it seems, thats the right one. Because, if i rename the file img_bbcode_include.php, no image will be shon any longer in forum, only the IMG BB Code.

But if i cange any values here, nothing happens. I changed the default value from 300 px to 500 px. But every pic in the forum and every sig still has a width of 300 px. :(

return "<span style='display: block; [b]width: 500px[/b]; [b]max-height: 500px[/b]; overflow: auto;' class='forum-img-wrapper'><img src='".$matches[1].str_replace(array("?","&amp;","&","="), "", $matches[3]).$matches[4]."' alt='".$matches[3].$matches[4]."' style='border:0px' class='forum-img' /></span>";


Funny, or ?

THX illu
0 replies
G
GMUDuckman
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
answered
Senior Member

i'm not sure how to fix it but i think it has to do with this file:
img_bbcode_include.php in particular this portion
return "<span style='display: block; [b]width: 300px[/b]; [b]max-height: 300px[/b]; overflow: auto;' class='forum-img-wrapper'><img src='".$matches[1].str_replace(array("?","&amp;","&","="), "", $matches[3]).$matches[4]."' alt='".$matches[3].$matches[4]."' style='border:0px' class='forum-img' /></span>";


i could be wrong tho
Edited by GMUDuckman on 15-09-2010 22:36,
0 replies
I
illuminator
I
www.fcopz.com/banner/fcopz_banner.gif

***********************************
Online Gaming with real fun
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Hi mpkossen, thx 4 trying to help.

Well, tried to change anything within the Gallery Settings menu. But this only has an affect on Gallery pics. :(
0 replies
M
mpkossen
M
  • Senior Member, joined since
  • Contributed 267 posts on the community forums.
  • Started 4 threads in the forums
answered
Senior Member

Could you try altering the photo gallery settings, see if that changes anything?
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 14 posts
  • Votes 0 votes
  • Topic users 8 members

8 participants

M
M
  • Senior Member, joined since
  • Contributed 267 posts on the community forums.
  • Started 4 threads in the forums
W
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
G
G
  • Senior Member, joined since
  • Contributed 266 posts on the community forums.
  • Started 6 threads in the forums
M
M
Ex Senior Dev.
  • Member, joined since
  • Contributed 182 posts on the community forums.
  • Started 5 threads in the forums
L
L
I am always doing things that which i cannot do, in order that i may learn how to do it.
whatpulse.org/dynamic-../../images/300224.jpg
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
I
I
www.fcopz.com/banner/fcopz_banner.gif

***********************************
Online Gaming with real fun
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
T
T
ter3 10
  • Newbie, joined since
  • Contributed 1 post on the community forums.
L
L
Luke 10
  • Newbie, joined since
  • Contributed 3 posts on the community forums.

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet