Shoutbox

suggestion - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: suggestion (/showthread.php?tid=88042)

suggestion by Jarrod on 01-01-2009 at 06:14 AM

add percentage support for img tags
example

mycode code:
[img=50%][attachment][/img]

RE: suggestion by Th3rmal on 01-01-2009 at 07:05 AM

quote:
Originally posted by Jarrod
add percentage support for img tags
example
mycode code:
[img=50%][attachment][/img]

well stuff like this exists [img=800x300] url [/img]
RE: suggestion by ShawnZ on 01-01-2009 at 07:09 AM

yes, but he said add percentage support :p


RE: suggestion by Th3rmal on 01-01-2009 at 07:31 AM

quote:
Originally posted by ShawnZ
yes, but he said add percentage support :p
i stand corrected :P, but i guess you could just specify the dimensions yourself, its not that hard and doesnt require support for anything new
RE: suggestion by WDZ on 01-01-2009 at 07:42 AM

That kind of scaling would have to be done on the client side with Javascript, since the server doesn't know the dimensions of the image at the specified URL. I think the way Invision Board does it is pretty nice... maybe I could implement something like that. :/

Random example: http://forum.mininova.org/index.php?showtopic=235...=findpost&p=523203


RE: suggestion by Jarrod on 01-01-2009 at 08:53 AM

quote:
Originally posted by WDZ
but i guess you could just specify the dimensions yourself, its not that hard
what if i don't know the dimensions of the image?
i could whack in some numbers but then i loose the proportions.
and i am way to lazy to find the dimensions:P

quote:
Originally posted by WDZ
That kind of scaling would have to be done on the client side with Javascript, since the server doesn't know the dimensions of the image at the specified URL. I think the way Invision Board does it is pretty nice... maybe I could implement something like that. :/

Random example: http://forum.mininova.org/index.php?showtopic=235...=findpost&p=523203


Please and Thank you:)
RE: suggestion by ShawnZ on 01-01-2009 at 04:04 PM

and you should add a [thumbnail] tag that will automatically generate [url=x][img=25%]x[/img][/url]


RE: suggestion by WDZ on 01-02-2009 at 01:22 AM

What if the Javascript just scaled down all images in posts (enforcing a maximum width, like IPB) so they couldn't mess up the layout? Then the [img=50%] thing wouldn't be as useful, and images would be scaled even when the special tag format isn't used. :p


RE: suggestion by ShawnZ on 01-02-2009 at 01:53 AM

quote:
Originally posted by WDZ
What if the Javascript just scaled down all images in posts (enforcing a maximum width, like IPB) so they couldn't mess up the layout? Then the [img=50%] thing wouldn't be as useful, and images would be scaled even when the special tag format isn't used. :p

okay, but then also make it automatically link to them :p
RE: suggestion by Mike on 01-02-2009 at 02:48 AM

Don't forget that IPB scales according to your resolution :P


RE: suggestion by Menthix on 01-02-2009 at 11:02 AM

quote:
Originally posted by Mike
Don't forget that IPB scales according to your resolution
Which is useless for people with big screens who never run their browser window maximized.