TheMinusWorld / forum-improvements

Organize suggestions and other details related to improving the phpBB iteration of the Minus World
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Imported: alt attribute for image tags and different scaling options for simg #23

Open wtl420 opened 8 years ago

wtl420 commented 8 years ago

Imported issue

Tue May 10, 2011 05:57 PM More about image IMG tags, and BBcode by Bitteh:

I think there should be:

Code:

[IMG alt="broken T_T"]http://i.imgur.com/Yklwo.gif[/IMG]

So you can choose what you want broken images to show up as. "broken T_T" could be anything. Also, it'd be cool if there were a "no bbcode tag" so we don't have to use code boxes if we want BBCode in the rest of our post.

And okay, I hate to repost a thread but no one even responded to this a while back so I'll quote it:

Haku:

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.

I don't see why that'd be a bad idea, but I understand if it's hard to do.

Thanks for reading. :3

PS: Why are SIMG tags separate in the first place? Is it possible to make it so width/height can be specified in regular IMG tags? (And if left blank, do nothing to their width/height?)

Tue May 10, 2011 06:29 PM Re: More about image IMG tags, and BBcode by Roo:

brokn lol xD

I like the SIMG tag idea though.

Tue May 10, 2011 06:46 PM Re: More about image IMG tags, and BBcode by rtsmarty:

Haku:

Also, it'd be cool if there were a "no bbcode tag" so we don't have to use code boxes if we want BBCode in the rest of our post.

why

Tue May 10, 2011 07:21 PM Re: More about image IMG tags, and BBcode by Bitteh:

Also I propose making a rule against focusing too many posts on the least important suggestion of an OP in the Suggestion Board when the OP contains multiple suggestions. :@

Tue May 10, 2011 09:29 PM Re: More about image IMG tags, and BBcode by rtsmarty:

Teddy:

I didn't respond to the others because I have no idea how BBCode works in phpBB so that's a Kyori question.

This, plus i'm not really bothered by alt-text at all. What we have works fine and most of the time alt-text won't even be visible to most people so if, on the odd chance, there IS a case where alt-text is displayed rather than the image, the person probably wouldn't have bothered to change it anyway.

Tue May 10, 2011 10:52 PM Re: More about image IMG tags, and BBcode by Kyori:

Alternative text for images in posts is kind of pointless. I mean yeah, okay, if we're going along with the whole accessibility thing then alt text is a necessity, but when pretty much only 1 member is going to be using it and 90% of the time images in posts are either described in the post or are just not worth even posting in the first place, it's kind of redundant.

There's also the fact that phpbb3 is an accessibility minefield and so I'd be surprised if anybody using a screenreader or anything like that could even read the posts, never mind wondering what images were supposed to be showing.

Also fyi - "broken" or "lol an image should be here" or anything else that doesn't describe the content of the image in a reasonable amount of detail is a bad alt text attribute.

Adding other ways of writing the bbcodes would be great if it didn't mean physically adding new bbcodes for every format. It's a pain for something that isn't really necessary, and it makes updating any bbcode that has multiple formats messy. I'll do it at some point, but it's not high on my to-do list.

simg is separate from img because it was that way when I copied it over from MFGG. It could just be an "extension" of the img tag. Again, I'll probably do it but it's not a priority.

If you're not wanting bbcode parsed in a certain part of your post, use a [code] tag. If you don't want it parsed in its entirety, use the flag on the posting form.

Thu May 12, 2011 03:01 PM Re: More about image IMG tags, and BBcode by Bitteh:

I understand most of that but:

Quote:

Adding other ways of writing the bbcodes would be great if it didn't mean physically adding new bbcodes for every format. It's a pain for something that isn't really necessary, and it makes updating any bbcode that has multiple formats messy. I'll do it at some point, but it's not high on my to-do list.

I hope this one is at least on the bottom of the to-do list. I don't want it to sound like a demand though. :(

@next post: WONDERFUL! :D

Thu May 12, 2011 03:19 PM Re: More about image IMG tags, and BBcode by Kyori:

At the bottom would be "not high".

wtl420 commented 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:

scaled image

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.

scaled image

uh... it doesn't really work now. I'll fix it tomorrow.