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

XF 1.5 Super/sub

Discussion in 'Styling and Customization Questions' started by LuvMeSumZen, Apr 27, 2016.

  1. LuvMeSumZen

    LuvMeSumZen Active Member

    I'm having trouble finding out how to format text in super or subscript. HTML tags aren't doing it for me and could not locate an addon that adds it to the text editor. Any solutions you know of?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. LuvMeSumZen

    LuvMeSumZen Active Member

    There are no upload instructions or readme file and I am unsure how to do it. Is it as simple as moving the sup/sub xml docs to my root, or do I need to edit templates etc.? I would like the features in the text editor but don't really have a clue how to go about it.

    sup-sub.jpg
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Oh hang on, ignore that, it's an old resource which requires the bb code manager add-on.

    I'll dig out the sup and sub bb codes from my site.
     
    maszd and wickedstangs like this.
  5. LuvMeSumZen

    LuvMeSumZen Active Member

    Cool, thanks!
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    I've exported the sup and sub bb codes.

    You will just need to set the editor icon values in the Advanced Options tab if you want buttons in the editor.

    You will also need to add this to EXTRA.css:
    Code:
    .ctaBbcodeSub
    {
        vertical-align: bottom;
    }
    
    .ctaBbcodeSup
    {
        vertical-align: top;
    }
     

    Attached Files:

    LuvMeSumZen and The Dark Wizard like this.
  7. LuvMeSumZen

    LuvMeSumZen Active Member

    Okay I will try to figure this out on my own before asking questions - wish me luck lol. Thanks.
     
  8. LuvMeSumZen

    LuvMeSumZen Active Member

    @MattW Matt when you get a chance will you please help me with this on your support site. I can't figure it out. Thanks Brogan for your help you are not a logger/sawyer/woodworker and I am not a computer guru but we both have our place in society and I do appreciate what you do here.
    hi3.gif
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Actually, I was many years ago. :)

    You just need to import the .xml as custom bb code and add the code above.
     
  10. LuvMeSumZen

    LuvMeSumZen Active Member

    Based on your avatar you are way too young to have been a logger many years ago but I do not question your ability to hold your own in the patch and carry your weight. I'm sure you can do both quite well. If you are also a woodworker now that stirs my blood and I would love to see your work. Even if you are not a woodworker it is good to be able to converse with you on a somewhat personal level for a change.
     
  11. MattW

    MattW Well-Known Member

    Kev, you just needed to import the XML

    upload_2016-4-28_10-19-37.png
     
    LuvMeSumZen likes this.
  12. LuvMeSumZen

    LuvMeSumZen Active Member

    Can I put the icon images pretty much anywhere I want i.e. root/styles/woodbarter/xenforo?
     
  13. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, but I would recommend using the editor sprite and just pulling them from there.
     
  14. LuvMeSumZen

    LuvMeSumZen Active Member

    Trying to figure out all that sprite stuff. I did get them showing in my editor but when I use them the code shows instead of just super pr subbing the text as if I am in html mode. Like this . . .

    supsub.png

    Anything else I do in the editor such as bold etc. just shows the end result not the tags.
     
  15. MattW

    MattW Well-Known Member

    It's parsing the bbcode when the post is submitted
    upload_2016-4-28_16-41-40.png
     
  16. LuvMeSumZen

    LuvMeSumZen Active Member

    So do I just need to tick the Stop Parsing BBCode box?
     
  17. MattW

    MattW Well-Known Member

    Are you wanting it to do it real time in the editor? What it's doing is the same as posting text inside the code tags. It's only formatting the BB code once the post has been submitted (expected behaviour)
     
  18. LuvMeSumZen

    LuvMeSumZen Active Member

    Yes because as you know we use a lot of fractions on my site and all that code makes it easy to get lost with all the numbers inside all those tags.
     
  19. LuvMeSumZen

    LuvMeSumZen Active Member

    I'm going to take a different tack here - if I need to start a new thread in the resource request let me know. Would it be possible to include a set of fractions themselves in the text editor?
     
  20. cclaerhout

    cclaerhout Well-Known Member

    https://xenforo.com/community/resources/tinymce-quattro-and-its-wysiwyg-bbcodes.1881/
    => you will find what you need there, but no time to help you to configure it (I'm busy with the next release actually).
     
    LuvMeSumZen likes this.

Share This Page