Hard Light Productions Forums

Site Management => Site Support / Feedback => Topic started by: ksotar on October 24, 2018, 03:27:32 pm

Title: 'width' support for [img]?
Post by: ksotar on October 24, 2018, 03:27:32 pm
I thought it is supported in SMF 2, but it seems that it has no effect for me.
Title: Re: 'width' support for [img]?
Post by: Goober5000 on October 24, 2018, 11:14:52 pm
I just did some testing.  It is supported, though there is a problem with our current forum theme that results in resized images displaying at their normal size.
Title: Re: 'width' support for [img]?
Post by: ksotar on October 25, 2018, 03:46:35 pm
What to do, then?
Title: Re: 'width' support for [img]?
Post by: Goober5000 on October 27, 2018, 06:43:17 pm
As I recall, wayyy back in the day there was a problem with people making obnoxiously large or small images, so Sandwich edited the theme to prevent this.  Now all images display at a fixed size.

I think the best solution would be to modify the theme to restrict image resizing within a certain range.  But that's a Sandwich question, and given Sandwich's limited time currently, I would prefer to wait until he has completed his front page tasks.
Title: Re: 'width' support for [img]?
Post by: ngld on October 31, 2018, 12:52:24 am
I think the best solution would be to modify the theme to restrict image resizing within a certain range.
I could implement this if you tell me which maximum size to use.
Title: Re: 'width' support for [img]?
Post by: ksotar on October 31, 2018, 01:04:49 am
I guess there is current restriction in the code (which sadly makes images to expand to this size as well), and that'll do just fine.
Title: Re: 'width' support for [img]?
Post by: jr2 on October 31, 2018, 01:18:02 pm
-betting this comes back to bite us when everyone is on 8K monitors-  :lol:
Title: Re: 'width' support for [img]?
Post by: Goober5000 on November 13, 2018, 01:45:52 am
I think the best solution would be to modify the theme to restrict image resizing within a certain range.

I could implement this if you tell me which maximum size to use.

Thanks! :)

I was more worried about a minimum size, since we don't want people sneaking in pixel trackers.  But let's say 8 for the minimum and 1024 for the maximum.
Title: Re: 'width' support for [img]?
Post by: ngld on November 13, 2018, 08:05:44 pm
Done. For simplicity's sake you can only set the image width (the height is ignored).
Title: Re: 'width' support for [img]?
Post by: Goober5000 on November 13, 2018, 08:24:08 pm
(https://www.hard-light.net/forums/Smileys/HLP/yes.gif)
Title: Re: 'width' support for [img]?
Post by: Spoon on November 13, 2018, 09:36:26 pm
(https://www.hard-light.net/forums/Smileys/HLP/headz.gif)
Maximum headz
Title: Re: 'width' support for [img]?
Post by: Mongoose on November 13, 2018, 11:33:21 pm
And it begins...
Title: Re: 'width' support for [img]?
Post by: jr2 on November 14, 2018, 01:28:43 am

(https://www.hard-light.net/forums/Smileys/HLP/welcome2hlpbb.gif)

Maximum beamz!!