Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Spoiler-button - Add-on

edited July 2006 in Vanilla 1.0 Help
Hi!
I'm running Vanilla on my moviesite. We discuss movies and tv-series and stuff around that. Sometimes members writes "spoilers" about movies and it would be nice to have a "spoilerbutton" or similiar. So what ever the user is writing between the spoiler-tags does'nt show. For example, the text-color is white against a white background...

Or is there some other way to do that?

//Daniel
http://bloggywood.se

Comments

  • Options
    You could do it like this (select the text below this line):
    This is my spoiler, it provides downforce at high speed!
    By using HTML to format your spoiler text e.g.
    <font color="#ffffff">This is my spoiler, it provides downforce at high speed!</font>
  • Options
    blizeHblizeH ✭✭
    edited July 2006
    Or even better...

    <a title="Spoiler goes here">Hover over to reveal spoiler</a>

    Hover over to reveal spoiler
  • Options
    Thanks for the replys!

    The anchor-title-tag doesn't allow that much text. I think i'll have to "educate" the members to use the font-tag in spoiler-cases...
  • Options
    A more elegant solution might be to have your users use a custom
     tag
    and have it the text set to white or whatever through CSS, you could even add your spoiler on/off button in this way too if you so desired.
    <spoiler>This is my spoiler, it provides downforce at high speed!</spoiler>
  • Options
    edited July 2006
    I like the spoiler system they have at Jay is Games. Things can be put between tags, and will show up as an image saying "show spoiler", clicking on the image does some javascripting (I think) and shows the original text. This entry has a few spoilers in the comments so you can see how it works.


    Edit: Previewing my post in this thread is Weird. The text is shown at the bottom of the page, and not like an existing comment (as in other discussions).
  • Options
    lamentlament
    edited July 2006
    burke you need to close your < i > or < em > tag please..
  • Options
    edited July 2006
    LOL! I used <i/> What I get for typing by hand.
    We need to add a check for that.
  • Options
    Ideally you'd want to force a preview, and run that page through a HTML validator. That'll get those meddling kids!
  • Options
    Meddling Kids! (sorry, triggered an old memory)
  • Options
    ADMADM
    edited July 2006
    We use a good spoiler tag at the Alan Wake forums and the 3D Realms forums.. you can see it here:
    http://www.alanwake.com/forum/misc.php?do=bbcode
This discussion has been closed.