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

Implemented Spoiler BBCode

Discussion in 'Closed Suggestions' started by Dream, Aug 22, 2010.

  1. Dream

    Dream Active Member

    A BBCode is useful.

    The text is hidden until you click the button to show it. :)
     
  2. Sejper

    Sejper Active Member

    I would like this to be an standard bbcode 2.
     
    VanHuek likes this.
  3. Luke F

    Luke F Well-Known Member

    +1 to this
     
  4. CyberAP

    CyberAP Well-Known Member

    Spoiler is a 'must have' bbcode!
     
  5. Dream

    Dream Active Member

    Like the first post if you want it! :)
     
  6. anotheralias

    anotheralias Well-Known Member

    Liked it, and posting for emphasis. :) Highlight to read or click to open - I prefer the latter, because it doubles as a way to stash huge chunks of text, but either way it's a necessity. I don't mind making my own but it would be nice to have it built in.
     
  7. DSF

    DSF Well-Known Member

    A "Spoiler" can be a add-on if required but never in core.
     
  8. Dream

    Dream Active Member

    I also don't mind creating a nice one for myself, but one made by K&M would sure be a great one.
     
  9. anotheralias

    anotheralias Well-Known Member

    Really? Why is that? (Just curious.)
     
  10. Darat

    Darat Member

    And to ask for the pony - be great if the text in the spoiler tag was hidden in any notification emails that are generated
     
  11. Dream

    Dream Active Member

    Indeed, and on search, etc.
     
  12. James

    James Well-Known Member

    If we're talking hiding the contents of spoiler from searches/notifications etc. then sure I'm up for it. If you mean just a piece of code to hide the text until a button is clicked then it's not worth it and an add-on would be more suitable.
     
  13. Lycaon

    Lycaon Well-Known Member

    Not every forum needs a spoiler.

    An add-on would be better rather than in core.
     
  14. feldon30

    feldon30 Well-Known Member

    Why should a straightforward, 1-line replacement BBCode be an add-on?

    BBCodes that are included in the base product receive wide adoption because people can use them on every forum they visit. BBCodes that are proprietary to a certain forum never get widespread adoption. Look at the chaos of having [s] [strikethru] [strike] on all different forums. It rarely got used.

    Why? Why shouldn't XenForo ship with 20-30 BBCodes if they result in no increase in overhead or decrease in performance? XenForo is about stepping back and looking at how people use forums. BBCodes are a great contributor to usability and they have great bang-for-the-buck.

    Imagine a relative time BBCode that takes a GMT time/date and adjusts it according to the user's time zone. Great for upcoming events. For instance:

    Next week, tune in at [timedate]02:00:00 2010/09/14[/timedate] to catch the Euro Beats program.

    Next week, tune in at 8:30pm on September 13, 2010 to catch the Euro Beats program.
     
  15. anotheralias

    anotheralias Well-Known Member

    How about this: a page on the customer forum that gives you the code you need to add spoiler bbcode, strikethrough bbcode, and so on so that you don't mess up the lovely speediness of your forum by using some clunky homemade piece of code that may not be the best choice.

    It's not so much that I need it built-in, as it is that I'm not a coder and it would be nice if I didn't have to jerry-rig something together from what I can find in a Google search for Bbcodes.
     
  16. Lycaon

    Lycaon Well-Known Member

    Even if they don't decrease performance, I wouldn't want my forum having 30 BBCodes installed when only say 10 were actually used. It just clutters the place up.

    Maybe if there was an option to enable/disable then yeah have them included in the core but then I would still prefer to just add the ones I need as and when I need them.
     
  17. Brogan

    Brogan XenForo Moderator Staff Member

    I created another thread a few weeks ago asking for the ability to create and add custom BBCode to the WYSIWYG editor but I would also like so see a lot more codes included as standard.

    Maybe not quite as many as this though :D

    tiny_MCE.PNG

    http://tinymce.moxiecode.com/examples/full.php

    Incidentally, this is what I use for spoilers on my site. Unfortunately you can't use apostrophes in the button but other than that it works great.

    Code:
    <div class="spoiler"><div class="quotetitle"><input type="button" value="{TEXT1}" style="font-size:11px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';        this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = '{TEXT1}'; }" /></div><div class="quotecontent"><div style="display: none;">{TEXT2}</div></div></div>
     
  18. projectego

    projectego Active Member

    A spoiler option would be very helpful for my kind of forum demographic (movies, gaming, etc.). +1 from me.
     
  19. Dream

    Dream Active Member

    I'm overwhelmed by the positive response to this thread. This spoiler BBCode in question, I think would be useful in most communities, if not only for movies and books and games, for entertainment of the users, which is equal in importance or more.
     
  20. feldon30

    feldon30 Well-Known Member

    Brogan's example, with dozens of extra buttons in the toolbar is not what I had in mind, and I can see how it would make for a cluttered toolbar.

    I thought of having several BBCodes built-in which do not have toolbar buttons, but are there if users discover them. I leave it up to Kier and Mike whether they want to have create icons for every BBCode they add, even if some are disabled by default to minimize clutter. :)
     

Share This Page