Home : Products : Gossamer Forum : Development, Plugins and Globals :

Products: Gossamer Forum: Development, Plugins and Globals: Re: [Westin] Spoiler code would be really useful.: Edit Log

Here is the list of edits for this post
Re: [Westin] Spoiler code would be really useful.
Okay, so heres what I've been using and tried and works limited in both browsers:


<script type="text/javascript">

function toggleIframe(target) {
targetLayer = document.getElementById(target).style;
targetLayer.display = (targetLayer.display == "none") ? "" : "none";

<div class="nicetext">SPOILER:
[<a href="javascript:toggleIframe('iframetextdeck');">show</a>] | [<a href="javascript:toggleIframe('iframetextdeck');">hide</a>]</div>

<div id="iframetextdeck" style="display: none;">

closing tag code:


When I say it works limited, it's not a problem with the code, but rather what the advanced Gforum editor does to the content when editing your own post again:

A problem with this is that when a person uses the advanced editor (or the basic for that matter) to edit their post, the system has already translated the [spoiler][/spoiler] tags to what is going to be written on the page. However this then means it's going to translate it even further and just mess up the actual code. So it only works on the initial posting of a message, beyond that if the person edits their post again, they would need to cut out all the extra crap that Glinks puts into the message and re-enter the spoiler tags again to get it functioning again. Far less than an elegant solution and probably one that most people wont want on their own forums for not wanting to hassle the users with this.

Last edited by:

Westin: May 20, 2009, 3:48 AM

Edit Log: