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

Space After Smilie 1.0.0

Changes the default smilie template so there is a space automatically after each one

  1. Chris D

    Chris D XenForo Developer Staff Member

    Chris Deeming submitted a new resource:

    Space After Smilie (version 1.0.0) - Changes the default smilie template so there is a space automatically after each one

    Read more about this resource...
     
    zooki and Shyuan like this.
  2. Jeff Fuqua

    Jeff Fuqua Well-Known Member

  3. Nolik

    Nolik Member

    May be add function adds a space after smile from text and smile too? If is possible... Text:) >>> Text :)
     
    Weppa333 likes this.
  4. Weppa333

    Weppa333 Active Member

    what would actually be best is to add the space BEFORE the smilie rather than after, would solve #2 and perform the same functionnality.
     
    Nolik likes this.
  5. Nolik

    Nolik Member

    Space After Smilie > Space Before Smilie :)
     
  6. Chris D

    Chris D XenForo Developer Staff Member

    I won't be updating this add-on because there's lots of iterations that people might want including spaces or double spaces or spaces before or after so I will now leave the rest of it up to you guys :)

    If you want to make these changes yourself, open this file in a text editor:

    library/SpaceAfterSmilie/BbCode/Formatter/Base.php

    You will see two variables in this file:

    $_smilieTemplate
    $_smilieSpriteTemplate

    You can modify these as you wish. As you know, by default this add-on creates a space at the end of the smilie. You can see where these two spaces are created as they are indicated by  

    To put the space at the beginning you would just add &nbsp; right before <img on each line.

    So with that information you can now easily play around with it yourself. Have the space before and after, have multiple spaces if you wish. Good luck :)
     
    zooki, Taxi and Weppa333 like this.

Share This Page