Shoutbox

Image tag 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: Image tag suggestion (/showthread.php?tid=24980)

Image tag suggestion by matty on 05-09-2004 at 02:02 AM

Alot of times i type [img=250*200
instead of [img=250x200


Is it possible to code MyBB to use either or?


RE: Image tag suggestion by Joe on 05-09-2004 at 02:02 AM

i do that a lot also... is this possible?


RE: Image tag suggestion by Johnny_Mac on 05-09-2004 at 02:53 AM

This thread has to be the definition of picky IMO... :undecided:


RE: Image tag suggestion by Chrono on 05-09-2004 at 03:04 AM

No not really, it happens to me too :undecided:


RE: Image tag suggestion by kao on 05-09-2004 at 03:18 AM

:dodgy: people, instead of asking for a new tag, learn to get it right :banana:

:P


RE: Image tag suggestion by .blade// on 05-09-2004 at 03:44 AM

What about a dialouge that asked for the image URL AND the dimmensions?


RE: Image tag suggestion by CookieRevised on 05-09-2004 at 01:53 PM

quote:
Originally posted by gigablade77
What about a dialouge that asked for the image URL AND the dimmensions?
That would be very annoying and overkill...



quote:
Originally posted by Kao
:dodgy: people, instead of asking for a new tag, learn to get it right :banana:
:P



RE: Image tag suggestion by reisyboy on 05-09-2004 at 07:17 PM

no actually i thinks mattys right i think it should be a *. But to keep it easy use both then it avoids confusion of people used to the X.

And ur right we are lazy but it should be a * (the multiply sign on pc)


RE: Image tag suggestion by MC Inferno on 05-09-2004 at 07:22 PM

I'm with Kao on this one (H)


RE: Image tag suggestion by KeyStorm on 05-09-2004 at 07:27 PM

I think you will agree that the img tag should also accept percentile parameter:

for example: my avatar:

real size:
[Image: MPavatar.php]


Half the size:
[Image: MPavatar.php]

How did I do it? Obviously I had to get to the size properties, memorize the sizes, divide them by 2 and write them in the [img=XxY]form.

Why couldn't I simply write [img=50%]?

It would be very good, because when you resize you really want to scale it.

Disadvantages: I don't know exactly, but I don't think gd/php can read the size (info) of a remote image, so the server would need to download the image, read the sizes and then load the image. Ending in server load.

But anyway, if someone finds out how to do it without the disadvantages... that would be great :)


RE: Image tag suggestion by kao on 05-09-2004 at 08:14 PM

I don't think it should be * at all, its (for example) 200 by 150, not 200 times 150, * is times (multiply) on computers, i always used x to do by (like for sizes)

it should be x not * - You're all just doing it wrong and don't want to correct yourselves :undecided:


RE: Image tag suggestion by Johnny_Mac on 05-09-2004 at 11:08 PM

quote:
Originally posted by KeyStorm
Why couldn't I simply write [img=50%]?
Bloody good suggestion. (Y)
quote:
Originally posted by KeyStorm
but I don't think gd/php can read the size (info) of a remote image...
* Johnny_Mac agrees.
quote:
Originally posted by Kao
I don't think it should be * at all, its (for example) 200 by 150, not 200 times 150, * is times (multiply) on computers, i always used x to do by (like for sizes)
This makes sence, go into PSP and see how they display the dimentions.
quote:
Originally posted by reisyboy
But to keep it easy use both then it avoids confusion of people used to the X.
I'd have no problem with that, just seems a little wierd.. like your doing some math equation. :undecided:
quote:
Originally posted by chaos_grenade
I agree entirely.
Thanks. (Y) :P

:D


RE: Image tag suggestion by WDZ on 05-11-2004 at 04:18 AM

quote:
Originally posted by KeyStorm
Disadvantages: I don't know exactly, but I don't think gd/php can read the size (info) of a remote image, so the server would need to download the image, read the sizes and then load the image. Ending in server load.
I'm not willing (well, reluctant) to use GD in the board... :dodgy:

quote:
Originally posted by Kao
I don't think it should be * at all, its (for example) 200 by 150, not 200 times 150, * is times (multiply) on computers, i always used x to do by (like for sizes)
Yeah, I agree. :banana:

quote:
Originally posted by Johnny_Mac
Bloody good suggestion. (y)
I agree that it would be great, but it's not so easy to implement.
RE: Image tag suggestion by dotNorma on 05-15-2004 at 04:55 PM

quote:
Originally posted by Keystorm
Why couldn't I simply write [img=50%]?
Yah! That is a great idea! With images with weird demintions like..... 42311 by 23424 its hard to resize them in your head :tongue:
RE: Image tag suggestion by kao on 05-15-2004 at 06:20 PM

Yeah the [img=50%] is a very nice idea indeed :)

Now we just wait for dz to add it to his to-do list :chrongue:


RE: Image tag suggestion by Guido on 05-15-2004 at 06:43 PM

*? come on, "x" is the standard in every computer application since pixels were invented :P

quote:
Originally posted by Kao
Yeah the [img=50%] is a very nice idea indeed :)

Now we just wait for dz to add it to his to-do list :chrongue:
That's just not possible without myBB reading EVERY image inserted in EVERY post, and that's not possible either :P

In html you can set width or height to percentage, but they are percentages of the actual container, for example, 50% of the total page width, not 50% of the actual image width.

Yeah, yeah, great idea, but not feasible server side.
RE: Image tag suggestion by fluffy_lobster on 05-15-2004 at 07:07 PM

You could just settle for some half-arsed javascript crap if you really wanted it :P


RE: Image tag suggestion by lylesback2 on 05-15-2004 at 07:28 PM

very picky BBcoders... how oten do you post bigger and smaller size pictures?  if its everyday.. then its a good idea, but its only once in a while


RE: Image tag suggestion by kao on 05-15-2004 at 08:24 PM

quote:
Originally posted by lylesback2
very picky BBcoders... how oten do you post bigger and smaller size pictures?  if its everyday.. then its a good idea, but its only once in a while
Its not a good idea though :P

Like Guido said, "x" is the standard, they're doing it wrong, so they should learn to start typing it right instead of doing it wrong for the rest of their lives instead of getting around their mistakes by asking Forum admins to add a new bbcode so they can carry on :P