Results 1 to 8 of 8

Thread: Any way to specify image size in BBcode?

  1. #1
    Cloyster Moderator
    Moderator
    Jeff's Avatar
    Join Date
    Nov 2004
    Location
    Maryland, USA
    Posts
    4,453

    Default Any way to specify image size in BBcode?

    I've Googled and came up with [img=100x200]http://i5.photobucket.com/albums/y157/jingleweasel/Pokemon/2nso215.png[/img], but it doesn't work here. Is there another way to do it here or can't it be done at all?
    Winner of the Unown Awards: 2008 "Hard Work", 2010 "Dedicated", 2012 "Journalist", 2012 "Unown", 2013 "Anchorman", 2014 "Unown", 2015 "Jeff Jeff Jeff Jeff!"



    Facebook - YouTube - Miiverse
    Diamond: 1418 3196 1413 - SoulSilver: 0217 4582 5426 - White: 1119 9535 7054 - White 2: 1421 4560 4887 - X: same as 3DS
    3DS: 3866 8018 5231 - AIM: IslanderJeff02
    Joined November 8, 2004 - Modded October 24, 2008

  2. #2
    Cheesecake! Moderator
    Moderator
    Telume's Avatar
    Join Date
    Dec 2008
    Posts
    1,994

    Default Re: Any way to specify image size in BBcode?

    iirc, unless the board has HTML enabled, no.
    Why Linux is better.


    Can't live without IRC.

    Happy 10 Year Anniversary Mikachu:



  3. #3
    Veteran Trainer
    Veteran Trainer

    Join Date
    Nov 2000
    Posts
    11,205

    Default Re: Any way to specify image size in BBcode?

    Enable HTML in Mt. Moon.

  4. #4
    Dragon Tamer Administrator
    Administrator
    Lady Vulpix's Avatar
    Join Date
    Oct 2000
    Location
    34.625 S, 58.50595 W (Buenos Aires, Argentina)

    Default Re: Any way to specify image size in BBcode?

    Sorry, the admin CP doesn't provide any way to make a BB code tag with more than 1 option, nor to split the option and use its parts separately. All I can do is [tag=option]content[/tag], and that's not enough to determine both width and height.

    The best I can think of is making a tag to determine the CSS class of the image, and then write the CSS for each class. But that would only give us a few preset sizes (or maximum widths and/or heights). I can't make it flexible enough to specify arbitrary dimensions. That would require PHP scripting and I don't have that kind of server access.

    And adding JavaScript to the template to manipulate the tags would not only be dirty, but it would also make the threads take longer to load.
    Last edited by Lady Vulpix; 31st May 2010 at 09:40 AM.

    Annual Unown Awards: Kind (2007), Friendly, Queen (2008), Dedicated (2009), She found Kevin! (2009),
    Everyone wins (2011), Tea, World traveler (2012), Busy, Patient (2013),
    Durga, Firefox, Twenty Thousand Hidden Posts (2014), Helpful (2015),
    Active, Discord, Letter, Unown Awards 2019 (2019).

    Don't forget to visit the Dragon's Guild and Dragon Tamers site.
    ✭Ask me about AC/CC. Adopt a pokemon and Join!✭

  5. #5
    Cloyster Moderator
    Moderator
    Jeff's Avatar
    Join Date
    Nov 2004
    Location
    Maryland, USA
    Posts
    4,453

    Default Re: Any way to specify image size in BBcode?

    That's not a problem. I just want to make it easier for people to keep images in news posts small so they don't break the main site's layout. So being able to set height isn't necessary, just width.
    Winner of the Unown Awards: 2008 "Hard Work", 2010 "Dedicated", 2012 "Journalist", 2012 "Unown", 2013 "Anchorman", 2014 "Unown", 2015 "Jeff Jeff Jeff Jeff!"



    Facebook - YouTube - Miiverse
    Diamond: 1418 3196 1413 - SoulSilver: 0217 4582 5426 - White: 1119 9535 7054 - White 2: 1421 4560 4887 - X: same as 3DS
    3DS: 3866 8018 5231 - AIM: IslanderJeff02
    Joined November 8, 2004 - Modded October 24, 2008

  6. #6
    Dragon Tamer Administrator
    Administrator
    Lady Vulpix's Avatar
    Join Date
    Oct 2000
    Location
    34.625 S, 58.50595 W (Buenos Aires, Argentina)

    Default Re: Any way to specify image size in BBcode?

    You do know that all images in posts and signatures have a maximum width of 725 pixels set specifically for that purpose, don't you?

    Although, now that I think of it, that only works for the forum. The main site requires a maximum width of 610 pixels. That can be done through CSS, though.

    div img {max-width: 610px;}

    Or you can use the new [simg] tag, which should ensure that the image does not break the layout of the main site.
    Last edited by Lady Vulpix; 31st May 2010 at 01:00 PM.

    Annual Unown Awards: Kind (2007), Friendly, Queen (2008), Dedicated (2009), She found Kevin! (2009),
    Everyone wins (2011), Tea, World traveler (2012), Busy, Patient (2013),
    Durga, Firefox, Twenty Thousand Hidden Posts (2014), Helpful (2015),
    Active, Discord, Letter, Unown Awards 2019 (2019).

    Don't forget to visit the Dragon's Guild and Dragon Tamers site.
    ✭Ask me about AC/CC. Adopt a pokemon and Join!✭

  7. #7
    Cloyster Moderator
    Moderator
    Jeff's Avatar
    Join Date
    Nov 2004
    Location
    Maryland, USA
    Posts
    4,453

    Default Re: Any way to specify image size in BBcode?

    Thanks, that should work.
    Winner of the Unown Awards: 2008 "Hard Work", 2010 "Dedicated", 2012 "Journalist", 2012 "Unown", 2013 "Anchorman", 2014 "Unown", 2015 "Jeff Jeff Jeff Jeff!"



    Facebook - YouTube - Miiverse
    Diamond: 1418 3196 1413 - SoulSilver: 0217 4582 5426 - White: 1119 9535 7054 - White 2: 1421 4560 4887 - X: same as 3DS
    3DS: 3866 8018 5231 - AIM: IslanderJeff02
    Joined November 8, 2004 - Modded October 24, 2008

  8. #8
    Dragon Tamer Administrator
    Administrator
    Lady Vulpix's Avatar
    Join Date
    Oct 2000
    Location
    34.625 S, 58.50595 W (Buenos Aires, Argentina)

    Default Re: Any way to specify image size in BBcode?

    You're welcome.

    Annual Unown Awards: Kind (2007), Friendly, Queen (2008), Dedicated (2009), She found Kevin! (2009),
    Everyone wins (2011), Tea, World traveler (2012), Busy, Patient (2013),
    Durga, Firefox, Twenty Thousand Hidden Posts (2014), Helpful (2015),
    Active, Discord, Letter, Unown Awards 2019 (2019).

    Don't forget to visit the Dragon's Guild and Dragon Tamers site.
    ✭Ask me about AC/CC. Adopt a pokemon and Join!✭

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •