1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

img bbcode - which template

Discussion in 'XenForo Questions and Support' started by ToDie4, Feb 11, 2011.

  1. ToDie4

    ToDie4 Well-Known Member

    Okay, so not having an image resizer for the img bbcode is just going to drive me bonkers so I'd like to get lightbox2 to work with that particular bbcode.

    Here's the thing, I can't even figure out which template file is controlling the img bbcode, hey, I'm a Minister, a parent then a designer, a few other things then right at the end comes coder, and I'm not a very good one at that.

    Can some one lead me in the right direction here please, which template(s) do I need to be looking at please? I'll happily share it here when I get it working. ;)
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Not sure if this is what you're after but the css class is bbCodeImage LbImage and the template is bb_code_tag_attach.
  3. Mike

    Mike XenForo Developer Staff Member

    Image BB codes don't have a template - it's in library/XenForo/BbCode/Formatter/Base.php.
  4. ToDie4

    ToDie4 Well-Known Member

    Thank you for your reply Brogan. :)

    Thank you for your reply Mike, php is definitely me being a fish out of water. I'm going to have to hope someone better at this than I will soon figure it out. I'm totally lost without the lightbox bbcode mod for img bbcode, what a rotten shame. :(
  5. Brogan

    Brogan XenForo Moderator Staff Member

  6. ToDie4

    ToDie4 Well-Known Member

  7. Brogan

    Brogan XenForo Moderator Staff Member

    Do you need a dynamic image resizer or do you just want to set the size to a fixed width?

    You could just edit the css for the img class from 100% to e.g. 50%:

    .bbCodeImage {
    max-width: 50%;
  8. ToDie4

    ToDie4 Well-Known Member

    I was hoping to get lightbox2 to work with the img bbcode, it's primarily for screen-shot demo's, I will need to use the img bbcode as opposed to attachments as some downloads will not be available to guests, with attachments denied to guests they would not be able to view the screen-shots you see. Forcing a constant size via css will negate the ability of viewing the full size image, bit of a quandary really. [​IMG]

Share This Page