Search not my friend: resize images mod - Postet den (1581 Views)
Starting Member
Dean_OK
Innlegg: 27
27
Ok, came up with a neat wrapper for my forum, now I realize that images posted in the forum are going to blow out my neat design if they are too big.
I looked at several posts about resizing, but soon became lost in the maze of changes and modifications.
Can someone point me to a mod that will resize images in that are included in the posts and set a maximum width and maintain the original aspect ratio?
<moved from="Help: General / Current Version (v3.4.xx)" by="Shaggy" /><
   
 Sidestørrelse 
Postet den
Support Moderator
Shaggy
Innlegg: 6780
6780
[Link]
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
Starting Member
Dean_OK
Innlegg: 27
27
Well, I did this mod. Easy enough to do, but I never got it to work. No JavaScript errors... just nothing. Can't figure out what I did wrong.<
Postet den
Senior Member
MaD2ko0l
Innlegg: 1053
1053
i did somthing similar to that, but it also worked for long words, as in when comeone enters a laod of letters without spaces, works the same when images are to big as well. i use this bit of css in a div tag

.MessageText {width:847px; overflow: auto}

may not be the best, but i saw somthign similar on another forum so i though i would give it a crack and see if i could do it and make it work.
altho i do try and keep images to 640x800, but u know what some people are like when they aint got a clue how to resize a pic<
© 1999-2010 MaD2ko0l
Postet den
New Member
radiodelicate
Innlegg: 53
53
I might be a bit late here, and I could be completely wrong, but... isn't it possible just to in inc_func_common.asp, around line 1200 add a bit of css to the end of the image tags?
Code:
ImgTags(1,1,2) = "<img src="""
ImgTags(1,2,2) = """ border=""0"" style=""max-width:600px; max-height:400px;"">"

set the max width and height to whatever you fancy, and then do the same with all of the image tags? I haven't tried this, but I reckon it ought to work.<
 
Du må legge inn en melding