1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Can we have spoiler tags, please?

Discussion in 'Forum, wiki and other THD pages' started by BlueLuigi, Jan 30, 2012.

Mods: dnmr, Kazaco97
  1. BlueLuigi

    BlueLuigi :^) Forum Moderator Donator Tester

    Messages:
    3,620
    Can we please have spoiler tags for larger posts, guides, etc?

    I know there are at least 3 different spoiler systems for XenForo, all easy to install, and all working quite nicely, and very simple to install (tested myself 1 of them, took less than an hour).

    Yes, I searched, saw one other thread, was asking if we had, not if we can have.

    If we can't have spoiler tags, I would have to ask, why not?

    (Also, can we increase the amount of images per post in the builder section)
     
    Noburu and Rayne like this.
  2. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    I am now (since a few days ago) able to add such add-ons, though I haven't gotten around to it yet.
    As you've already done the research, which one do you recommend?
     
    Rayne likes this.
  3. BlueLuigi

    BlueLuigi :^) Forum Moderator Donator Tester

    Messages:
    3,620
  4. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    Hrmph. Dang add-on isn't downloadable without a licensed account :/
     
  5. BlueLuigi

    BlueLuigi :^) Forum Moderator Donator Tester

    Messages:
    3,620
    Yea, same system as vBulletin uses mostly, kind of annoying. I went through other means to get what I wanted (as well as the forum itself), so I'm not gonna post those :x
    I'll look around for something easier to install without having to visit a w***z site.
     
  6. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    Technically we have a licensed account but I don't have access to it (its citricsquid's)

    I'm gonna see if I can get access to it or if there's some way to extend it to my account.
     
  7. BlueLuigi

    BlueLuigi :^) Forum Moderator Donator Tester

    Messages:
    3,620
    Here's the spoiler.zip from the link, which really isn't anything special since it's just an easier way of doing what's already posted there (all placed in files already)
    However this is slightly outdated as the stuff in the first post of that thread is actually the more updated HTML/CSS.

    Took the files posted in the spoiler.zip in that thread and updated it with what's properly in the first post (updated from the first person who posted that .zip)
     

    Attached Files:

  8. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    That's weird. When I try to install it I get a message saying that 'The provided file was not a valid XML file. Please provide a valid XML file.' :/

    And indeed, its contents look like a template file rather than an XML file.
     
  9. BlueLuigi

    BlueLuigi :^) Forum Moderator Donator Tester

    Messages:
    3,620
    Whoops, this should be it I believe (I had copied it directly instead of copying it in context :x)

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <addon addon_id="Spoiler" title="Spoiler" version_string="2" version_id="2" url="" install_callback_class="" install_callback_method="" uninstall_callback_class="" uninstall_callback_method="">
      <admin_navigation/>
      <admin_permissions/>
      <admin_style_properties/>
      <admin_templates/>
      <code_events/>
      <code_event_listeners>
        <listener event_id="load_class_bb_code" execute_order="10" callback_class="spoiler_class" callback_method="listen" active="1" description="Spoiler"/>
      </code_event_listeners>
      <cron/>
      <email_templates/>
      <optiongroups/>
      <permissions>
        <permission_groups/>
        <permissions/>
        <interface_groups/>
      </permissions>
      <phrases/>
      <route_prefixes/>
      <style_properties/>
      <templates>
        <template title="spoiler_template" version_id="1" version_string="1"><![CDATA[<xen:require css="bb_code.css" />
    <xen:require css="EWRcustom_spoiler.css" />
    <xen:require js="js/spoiler/EWRcustom_ajax.js" />
     
    <div class="bbCodeBlock bbCodeQuote bbCodeSpoiler">
        <aside>
            <div class="spoilerBar attribution type">
                <div class="spoilerWarning">
                    <b>{xen:phrase spoiler}</b><xen:if is="{$spoiler}">: {$spoiler}</xen:if>
                </div>
                <a href="#" class="spoilerToggle button primary">{xen:phrase toggle_spoiler}</a>
            </div>
            <blockquote class="spoilerContent">{xen:raw $content}</blockquote>
        </aside>
    </div>]]></template>
      </templates>
    </addon>
    
    Also, the original spoiler.zip from that thread.
     

    Attached Files:

  10. Rayne

    Rayne ༼ つ ◕_◕ ༽つ Administrator Global Moderator Forum Moderator Tester

    Messages:
    1,916
    Oh thank god, I've been wanting spoiler tags forever.
     
  11. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    Thanks BlueLuigi. I'll install it in a few hours once I'm back home.

    Also, citric graciously extended his license to my XF forum account so I will be able to grab these add-ons myself in future.
     
    AJ, Noburu, Rayne and 1 other person like this.
  12. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    Testing

    Check this sucker out
     
    Apronymous likes this.
  13. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    Okay the tags looks like this:

    Code:
    [spoiler]Stuff[/spoiler] = regular spoiler
     
    [spoiler=Bluhbluh]Stuff[/spoiler] = spoiler with a note regarding what it is hiding (sub 'Bluhbluh' for your note)
    These examples end up like this:

    Stuff
    Stuff

    Not included in the editor yet, that is more fiddly than it should be.
     
  14. AJ

    AJ Emperor of Mankind Donator

    Messages:
    592
    Can we put a spoiler in a spoiler?Spoilerception?
    And would this mean we could out as much media in a post as we wnt with 1 spoiler and then spoilers onside labeled say Song1 Song2 etc?
     
  15. BlueLuigi

    BlueLuigi :^) Forum Moderator Donator Tester

    Messages:
    3,620
    Please don't go crazy in sits just because you have spoilers. That said just test it...

    hi
    more butts
    wut
     
Mods: dnmr, Kazaco97