1. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.
  2. In order to post messages and view attached files in this forum, you must be a licensed XenForo customer.
    If you can't post, enter your forum username in the Associated Forum Users form in your customer area.

Creating a beautiful looking SPOILER tag...

Discussion in 'Development Tutorials [Archive]' started by Jaxel, Jun 17, 2011.

  1. Jaxel Well-Known Member

  2. sparky5693 Member

    Looks really nice Jaxel.
  3. zaiger Member

    I am having a problem with this, if you could help me I would really appreciate it. I uploaded the files to their respective spots on the server and installed the XML. It created the spoiler_template and spoiler shows up in the addons page, however it doesn't parse at all, I just get [SPOILER]text[/SPOILER]. Am I missing something?
  4. Saarbruecken Member

    Remove the spoiler_template you just created and re-import the add-on, that should fix the problem, also don't forget to upload all files.
  5. KidCactus Member

    I installed this, and it kind of works. When I load or refresh a page with a spoiler, I can see the hidden text while the page loads, and it's only hidden when it has finished loading.
  6. AceOfDeath Member

    Did a little tweaking of my own and it works great :) Thanks!!!!
  7. Saarbruecken Member

    What exactly did you change?
  8. AceOfDeath Member

    nothing worth mentioning haha I'm not really good at tweaking things, I just got the Spoiler stuff out of there and made it so it only showed the title I entered after the equals sign. Oh and changed show spoiler to Show Content
  9. Daracon Member

    try to add in your extra.css

    Code:
    .bbCodeSpoiler .spoilerContent
    {
        display: none;
    }
  10. Jaxel Well-Known Member

    Thats absolutely intended. If you made the spoiler text hidden by default, then someone who doesn't have javascript enabled on their browser will NEVER be able to see the spoiler text. This way, the text is shown by default, and then hidden after it is confirmed that the user has javascript.

    This is something called graceful degradation and it is something very important to good design.
    Digital Doctor likes this.
  11. Dismal Shadow Active Member

    How did you rename them and using only one button?
  12. Digital Doctor Well-Known Member

  13. LP-John Well-Known Member

    Jaxel, any chance you can release this as a small addon with the installation included. You new style is nice and would love to implement this on my board. Have you been able to add this BB code to the TinyMCE editor?
  14. Digital Doctor Well-Known Member

  15. yavuz Well-Known Member

    Creating a beautiful looking SPOILER tag... (y)
  16. LP-John Well-Known Member

  17. Jaxel Well-Known Member

    I've updated the first post with my new HTML and CSS.

Share This Page