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

XF 1.5 How to add an icon/button for custom bb code in the editor

Discussion in 'Styling and Customization Questions' started by dutchbb, Apr 4, 2016.

  1. dutchbb

    dutchbb Well-Known Member

    I created a custom BB code and want to add a new icon/button for it in the editor. Did a few searches but found nothing relevant. Is there a tut for this and does it require coding experience?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Click on the [Advanced Options] tab and enter the icon/sprite details as required.

    For example:
  3. dutchbb

    dutchbb Well-Known Member

    Yes I was kinda stuck there, so if I understand correctly I first need to add the new icon to icons.png. in photoshop, but then how does position work. It's not completely clear from that point on (first time I use sprites).
  4. Brogan

    Brogan XenForo Moderator Staff Member

    If you're not familiar with working with sprites, you can just use a single image and don't enable Sprite Mode.

    Otherwise the two fields are the x (left) and y (top) coordinates of the specific image within the sprite.

    dutchbb likes this.
  5. dutchbb

    dutchbb Well-Known Member

    Ok easier than I thought, ty.

Share This Page