Open wtl420 opened 8 years ago
another related thread:
Sun Sep 23, 2012 03:56 PM Smarter [simg] by Yoshin:
Mason:
Please make it so-
Code:
[simg w=200% h=200%]http://i.imgur.com/Yklwo.gif[/simg]
-works. It should go for shrunken percentages too. Reason: it's too much trouble to constantly figure the aspect ratio out manually to type it in. You should also make it so "width" and "height" work, as an alternative to the letters only.
Sun Sep 23, 2012 04:14 PM Re: Smarter [simg] by Bitteh:
Good idea! I agree :D
Sun Sep 23, 2012 04:23 PM Re: Smarter [simg] by Oracular:
yeah this is a good idea
Sun Sep 23, 2012 07:13 PM Re: Smarter [simg] by Draku:
i would like for this to happen
Sun Sep 23, 2012 08:49 PM Re: Smarter [simg] by Draku:
Teddy:
One problem though. The way it's set up, it only accepts numbers. If you allow other characters like the % sign, it could cause some security issues, with people potentially being able to inject scripts.
make a [simg2] that goes off of the % resizing rule
Sun Sep 23, 2012 08:51 PM Re: Smarter [simg] by JoshJDubya:
Isn't there a way to code it so that the board reads numbers as a percentage but doesn't allow the member to put in special characters? You wouldn't be able to change the size outside of a percentage, though. The other thing you could do is put in a 4 character limit for the value, if that's possible.
Mon Sep 24, 2012 10:38 PM Re: Smarter [simg] by Yoshin:
Teddy:
Yeah what draku said would be good.
this
Mon Sep 24, 2012 11:12 PM Re: Smarter [simg] by Elyk:
I tried messing around with it and html img tags don't read percentages the way you would expect them to. The percentage is only adjusted to the width which increases or decreases the entire image size proportionately. 50% of a 50px image is not 25px, but 50% of your browser's window width. You might be able to accomplish it by performing some math but whether or not that can be done in the tag I'll look into later.
Tue Sep 25, 2012 12:39 AM Re: Smarter [simg] by Elyk:
I'm beginning to suspect that we have javascript blocked.
Tue Sep 25, 2012 12:44 AM Re: Smarter [simg] by Elyk:
Teddy:
We don't. This uses javascript. .
My code was probably just wrong. I had no way of testing it, so idk. I usually trial and error this stuff.
There are a couple of other elements that use javascript that are disabled that I was curious about (quick quote, full editor for quick reply).
Tue Sep 25, 2012 09:31 PM Re: Smarter [simg] by Kyori:
Works now. We've got jquery in topics so you can use it in BBCode, it makes stuff like this a lot easier. It's not in the post preview page though which is kind of dumb. Probably have to fix that.
It's a bit weird at the moment and I'm not sure why.
uh... it doesn't really work now. I'll fix it tomorrow.
Imported issue
Tue May 10, 2011 05:57 PM More about image IMG tags, and BBcode by Bitteh:
Tue May 10, 2011 06:29 PM Re: More about image IMG tags, and BBcode by Roo:
Tue May 10, 2011 06:46 PM Re: More about image IMG tags, and BBcode by rtsmarty:
Tue May 10, 2011 07:21 PM Re: More about image IMG tags, and BBcode by Bitteh:
Tue May 10, 2011 09:29 PM Re: More about image IMG tags, and BBcode by rtsmarty:
Tue May 10, 2011 10:52 PM Re: More about image IMG tags, and BBcode by Kyori:
Thu May 12, 2011 03:01 PM Re: More about image IMG tags, and BBcode by Bitteh:
Thu May 12, 2011 03:19 PM Re: More about image IMG tags, and BBcode by Kyori: