Author Topic: Properties for the IMG tag  (Read 9059 times)

0 Members and 1 Guest are viewing this topic.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Properties for the IMG tag
« on: March 06, 2013, 09:08:42 pm »
Today I learned a cool trick for SMF that I didn't know until now. And because it is a cool trick, I think it would be beneficial for everyone to know about it.

Apparently the IMG tag has properties like WIDTH and HEIGHT, so if you want to post a picture that is thousands of pixels wide and obviously doesn't fit on the board, you can post it like this:
Code: [Select]
[img width=N height=N]link here[/img]Where N is the number in pixels. Then you can click on an image to make it larger or smaller again.

To have the image scaled proportionally, only use "width".

Thank you, and I hope this will help the forum to look better :)
« Last Edit: March 06, 2013, 09:38:18 pm by Kulverstukas »

Offline WirelessDesert

  • Knight
  • **
  • Posts: 356
  • Cookies: 10
  • I think...
    • View Profile
Re: Properties for the IMG tag
« Reply #1 on: March 06, 2013, 09:28:36 pm »

Where did my link go! Ermahgerd! The picture was only 5000 x 3500...


::Edit:: It works!!! Haleluja! Haleluja, Haleluja, Halelujaa! For he shall reign for ever and ever! Haleluja, Haleluja, Haleluja, for omni qui potens regens! Haleluja, Haleluja, Haleluja!


Thy holy master of BB code shall have thy gift of thine +1, have mercy upon us, almight yea!
(cont) For thy hast brung an gift upon us, and thus he said: [21:39] <Kulverstukas> it's a nice trick isn't it.
For he that is almighty shall have thy honor to bring us not into fear, but into salvation of the non existing god, yea.






::edit:: Have to say that all of this comes from songs I've sung with a choir I attend in. One would be the Haleluja choir for SATB young voices, some are modified quotes from the book/song "The common prayer 1662" or also called, preces and responses.
« Last Edit: March 06, 2013, 09:55:03 pm by WirelessDesert »
Check out my arduino project: Moving car - School project!
"I'm like current, I always take the easiest route."

Offline geXXos

  • Royal Highness
  • ****
  • Posts: 646
  • Cookies: 178
    • View Profile
Re: Properties for the IMG tag
« Reply #2 on: March 06, 2013, 09:42:09 pm »
Thats a great tip, and certainly you made WirelessDesert  very happy.

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Properties for the IMG tag
« Reply #3 on: March 06, 2013, 10:07:37 pm »
I think there is an alt text param too.

So now that everyone knows how to resize, go resize your sigs to a decent level   ;D
>>>import this
-----------------------------

Offline hanorotu

  • Dj Rapture
  • VIP
  • Majesty
  • *
  • Posts: 1173
  • Cookies: 98
  • ( ͡° ʖ ͡°)
    • View Profile
    • Rapture
Re: Properties for the IMG tag
« Reply #4 on: March 06, 2013, 10:15:16 pm »

Where did my link go! Ermahgerd! The picture was only 5000 x 3500...


::Edit:: It works!!! Haleluja! Haleluja, Haleluja, Halelujaa! For he shall reign for ever and ever! Haleluja, Haleluja, Haleluja, for omni qui potens regens! Haleluja, Haleluja, Haleluja!


Thy holy master of BB code shall have thy gift of thine +1, have mercy upon us, almight yea!
(cont) For thy hast brung an gift upon us, and thus he said: [21:39] <Kulverstukas> it's a nice trick isn't it.
For he that is almighty shall have thy honor to bring us not into fear, but into salvation of the non existing god, yea.






::edit:: Have to say that all of this comes from songs I've sung with a choir I attend in. One would be the Haleluja choir for SATB young voices, some are modified quotes from the book/song "The common prayer 1662" or also called, preces and responses.
I lol'ed +1


Life is hard, then you get buried.
If you want to use my work all of my music is licensed under GNU General Public License v3 (GPL-3) - http://bit.ly/TfUOBA

Offline relax

  • Sir
  • ***
  • Posts: 562
  • Cookies: 114
  • The one and only
    • View Profile
Re: Properties for the IMG tag
« Reply #5 on: March 06, 2013, 10:36:31 pm »
I think there is an alt text param too.

So now that everyone knows how to resize, go resize your sigs to a decent level   ;D


how to know what a decent size is? my screen resolution might be bigger then yours so what's decent for me might not be for you...
I know I fixed my sign for my resolution when i got it...

Mouse Over Me    [abbr=to see this text :P]Mouse Over Me[/abbr]
[move]1337 text[/move]
shadow [shadow=white,left][size=18pt][color=black]shadow[/color][/size][/shadow]
glow [glow=red,50,50][size=18pt]glow[/size][/glow]

more codes here

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Properties for the IMG tag
« Reply #6 on: March 06, 2013, 10:48:49 pm »
all that stupid shit

Please. Dont ever. Ever. EVER. Use glowing or moving text.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: Properties for the IMG tag
« Reply #7 on: March 07, 2013, 01:06:30 am »
This is pretty old, but thank you for pointing it out. I typically disregard it by default as most forum software has it disabled (I believe IPB has it on, though).
« Last Edit: March 07, 2013, 01:06:54 am by vezzy »
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline relax

  • Sir
  • ***
  • Posts: 562
  • Cookies: 114
  • The one and only
    • View Profile
Re: Properties for the IMG tag
« Reply #8 on: March 07, 2013, 03:33:59 am »
Please. Dont ever. Ever. EVER. Use glowing or moving text.


ande why don't you disable it? i saw you disabled the [flash=x,y]url[/flash]

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: Properties for the IMG tag
« Reply #9 on: March 07, 2013, 06:01:22 pm »
ande why don't you disable it? i saw you disabled the [flash=x,y]url[/flash]

I dont know.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline Snayler

  • Baron
  • ****
  • Posts: 812
  • Cookies: 135
    • View Profile
Re: Properties for the IMG tag
« Reply #10 on: March 07, 2013, 06:36:45 pm »
Well, alpha must be close, so I don't see the need to tweak things now. Just my 2 cents.
BTW, nice find Kulver. Time to review my posts and resize any picture I posted.
« Last Edit: March 07, 2013, 06:37:34 pm by Snayler »