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

XF 1.5 Spoiler tag not working after upgrade to 1.5.7

Discussion in 'Troubleshooting and Problems' started by dutchbb, Apr 11, 2016.

  1. dutchbb

    dutchbb Well-Known Member

    When I post the spoiler tag, it is ignored. Within a post it's just not visible, when posted on its own I get the error message "Please enter a valid message."

    Anyone else having this issue?
     
  2. Mike

    Mike XenForo Developer Staff Member

    There was nothing changed with spoilers in 1.5.7. Can you reproduce this here?
     
  3. dutchbb

    dutchbb Well-Known Member

    test


    I see no spoiler button here either.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    It appears to work for me.

    Try another browser.
     
  5. dutchbb

    dutchbb Well-Known Member

    I can see your spoiler Brogan but not mine, trying in Firefox now...


    edit: can't see it in Safari & Firefox browser.
     
  6. whynot

    whynot Well-Known Member

  7. whynot

    whynot Well-Known Member

    No spoiler button in my above post
     
  8. Tracy Perry

    Tracy Perry Well-Known Member

    Works for me
    Maybe you need to make sure you aren't getting any error codes in the JS console for the browser - or stop any ad-blockers or temporarily disable antivirus.
     
  9. Chris D

    Chris D XenForo Developer Staff Member

    Your spoiler has to actually have content inside it otherwise it won't render, guys.

    [SPOILER="spoiler test"][/SPOILER]
    Won't work

    [SPOILER="spoiler test"]will work[/SPOILER]
    will work
     
    dutchbb likes this.
  10. dutchbb

    dutchbb Well-Known Member

  11. whynot

    whynot Well-Known Member

    Works for you because you gave it a title.
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    This is a spoiler without a title.
     
  13. Tracy Perry

    Tracy Perry Well-Known Member

    and your point is? ;)
     
  14. Chris D

    Chris D XenForo Developer Staff Member

    No, it works for him because his spoiler tag actually contains text.
     
  15. whynot

    whynot Well-Known Member

    It does not have a title but has content.
     
  16. Tracy Perry

    Tracy Perry Well-Known Member

    Well, every spoiler tag I've ever seen is like that.... that's what it's for - to HIDE content.
     
  17. Brogan

    Brogan XenForo Moderator Staff Member

    Indeed.

    How would you expect the spoiler to do anything without the content?

    Without it it's just an empty bb code tag.
     
  18. dutchbb

    dutchbb Well-Known Member

    The mistake I made was clicking the spoiler link in the editor thinking that I could add the content that way in the overlay, but it only asks for a title. It's designed to use on existing text.
     
  19. Tracy Perry

    Tracy Perry Well-Known Member

  20. Chris D

    Chris D XenForo Developer Staff Member

    Even without existing text, it places the cursor inside the tag.
     

Share This Page