[BBCode] jQuery Spoiler

Mods, snippets and styles postet and supported by the users
Forum rules
As the forum title says this is for User Contributions
Post a support request in this forum and you will be banned!
samowen
BBCoder I
BBCoder I
Posts: 1
Joined: 17 Oct 2012, 20:37
BBCodes: 3

[BBCode] jQuery Spoiler

Post by samowen » 17 Oct 2012, 20:43

Thanks for the code, but it doesn't work in Safari if you use a You Tube video.

Code: Select all

[spolier](You Tube Video)[/spoiler]
It opens, but does not close again.


User avatar
martin123456
BBCoder VI
BBCoder VI
Posts: 764
Joined: 25 Jul 2011, 11:29
BBCodes: 34
Favourite MOD: Ban button
Location: Down south!

[BBCode] jQuery Spoiler

Post by martin123456 » 19 Oct 2012, 01:30

If you want it w3c valid then use this

Code: Select all

<div style="margin:5px; margin-top:5px; border: 1px solid #3bbfe7;" class="codebox">
    <div style="height:22px; text-align: center;"><strong>phpbb3bbcodes Spoiler:</strong>
    <input type="button" class="changevalue" value="{L_EXPAND_VIEW}" style="width:100px; font-size:10px; margin:0px; padding:0px;" onclick="$(this).parents('.codebox').find('.content').toggle('slow');"/></div>
    <div class="content" style="display: none; background-color:#e6e6e6; padding: 5px;">{TEXT}</div></div>
You messed up on this part ('slow');"> should be ('slow');"/>

This document was successfully checked as XHTML 1.0 Strict!

User avatar
Sniper_E
BBCoder II
BBCoder II
Posts: 43
Joined: 04 Dec 2011, 04:30
BBCodes: 1

[BBCode] jQuery Spoiler

Post by Sniper_E » 21 Oct 2012, 21:01

I would make that ending code ('slow');" />
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

peterhv31
BBCoder I
BBCoder I
Posts: 1
Joined: 29 Mar 2014, 12:10
BBCodes: 3

[BBCode] jQuery Spoiler

Post by peterhv31 » 29 Mar 2014, 12:17

me too, but there are made a few suggestion which makes it all confusing.
I tried this and now in the forumheader i get text like:

var jump_page = 'Enter the number of the page where you want to go:'; var on_page = ''; var per_page = ''; var base_url = ''; var style_cookie = 'phpBBstyle'; var style_cookie_settings = '; path=/; '; var onload_functions = new Array(); var onunload_functions = new Array(); /** * Find a member */ function find_username(url) { popup(url, 760, 570, '_usersearch'); return false; } /** * New function for handling multiple calls to window.onload and window.unload by pentapenguin */ window.onload = function() { for (var i = 0; i < onload_functions.length; i++) { eval(onload_functions); } }; window.onunload = function() { for (var i = 0; i < onunload_functions.length; i++) { eval(onunload_functions); } }; // ]]>

so, i wonder???

can anybody help me with this issue?