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

Limit graphics in sig file to one

Discussion in 'XenForo Questions and Support' started by Temery, Dec 14, 2011.

  1. Temery

    Temery Active Member

    How can I limit a signature file to just one graphic? Ideally I'd like to also set a max size.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can't limit the number of images, but you can limit the overall size of the signature and the image sizes.

    Try adding this to EXTRA.css:
    Code:
    .message .signature .bbCodeImage {
    max-height: 100px;
    max-width: 200px;
    overflow-x: auto !important;
    overflow-y: auto !important;
    }
    You can change that code to suit, adjusting the sizes and the overflow type (hidden for example).
     
  3. wickedstangs

    wickedstangs Well-Known Member

    wow, that is awesome how can I do that to uploaded pictures?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    You can do something like this:
    Code:
    .bbCodeImage {
    max-height: 400px !important;
    max-width: 600px !important;
    }
    Just use the .bbCodeImage class.
     
    wickedstangs likes this.
  5. tommydamic68

    tommydamic68 Well-Known Member

    I added this code as described, however the image remains full size in signature. Any suggetions?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    The FAQ in my signature has the updated code.
     
  7. daviden

    daviden Active Member

    Is there a way to limit text?
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    The standard signature permissions will do that.
     
  9. daviden

    daviden Active Member

    In 1.1.4?
     
  10. Brogan

    Brogan XenForo Moderator Staff Member

    The permissions don't exist in that version.

    It would require an add-on in that case.
     
  11. daviden

    daviden Active Member

    Thanks for quick answer.

    Will upgrade ...but it would require a _lot_ of work right now. :)
     

Share This Page