[BBCode] jQuery Spoiler

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[BBCode] jQuery Spoiler

Post by samowen »

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.

[BBCode] jQuery Spoiler

Post by martin123456 »

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!

[BBCode] jQuery Spoiler

Post by Sniper_E »

I would make that ending code ('slow');" />

[BBCode] jQuery Spoiler

Post by peterhv31 »

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?