Author Topic: 'width' support for [img]?  (Read 25291 times)

0 Members and 1 Guest are viewing this topic.

Offline ksotar

  • 26
'width' support for [img]?
I thought it is supported in SMF 2, but it seems that it has no effect for me.

 

Online Goober5000

  • HLP Loremaster
  • Administrator
  • 214
    • Goober5000 Productions
Re: 'width' support for [img]?
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.

 

Offline ksotar

  • 26
Re: 'width' support for [img]?
What to do, then?

 

Online Goober5000

  • HLP Loremaster
  • Administrator
  • 214
    • Goober5000 Productions
Re: 'width' support for [img]?
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.

 

Offline ngld

  • Administrator
  • 29
  • Knossos dev
Re: 'width' support for [img]?
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.

 

Offline ksotar

  • 26
Re: 'width' support for [img]?
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.

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: 'width' support for [img]?
-betting this comes back to bite us when everyone is on 8K monitors-  :lol:

 

Online Goober5000

  • HLP Loremaster
  • Administrator
  • 214
    • Goober5000 Productions
Re: 'width' support for [img]?
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.

 

Offline ngld

  • Administrator
  • 29
  • Knossos dev
Re: 'width' support for [img]?
Done. For simplicity's sake you can only set the image width (the height is ignored).

 

Online Goober5000

  • HLP Loremaster
  • Administrator
  • 214
    • Goober5000 Productions
Re: 'width' support for [img]?

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: 'width' support for [img]?

Maximum headz
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Mongoose

  • Rikki-Tikki-Tavi
  • Global Moderator
  • 212
  • This brain for rent.
    • Minecraft
    • Steam
    • Something
Re: 'width' support for [img]?
And it begins...

  

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: 'width' support for [img]?



Maximum beamz!!