vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   spoiler tags? (https://vborg.vbsupport.ru/showthread.php?t=71847)

Natch 11-21-2004 11:24 PM

Quote:

Originally Posted by sabret00the
works perfectly, anyway to get it to work with and without the {option} mine only works one way or the other :(

just encountered that bug but it took alot for me to ge there, but it's there :(

How or when would you use the option tag, sabe?

EDIT: just re-read your post... I'll have a crack at it...

Natch 11-21-2004 11:36 PM

I think that maybe you have to have two tags? one with option on, and one with it off?

It's wierd that it won't behave just like other tags in that way?

sabret00the 11-22-2004 12:23 AM

is a shame, i'm wondering if they hardcoded it also? maybe might be the way to fix it, i'll look at the include bbcode file see what i come up with :)

Michael Morris 11-22-2004 12:48 AM

This is kinda neat - I'll give it a trial run see how the users react.

Code Monkey 11-22-2004 04:13 AM

Then there is this one.

Freezerator 11-22-2004 05:59 AM

This is the one i use :

Spoiler
[spoiler]Your message in a message text here[/spoiler]

<center><table width="80%"><TR><TD bgcolor="#FFFFFF"><font color="black" size="1">Spoiler: (select this text to read it)</font><br><font color="#FFFFFF" size="2"><blockquote>Your message in a message text here</blockquote></font></td></TR></TABLE></center>

Spoiler: (select this text to read it)

Your message in a message text here

N/A [Edit] [Delete]

Code Monkey 11-23-2004 08:46 PM

I've played with the code a bit. I think this looks nicer than having an empty box. Plus it has less divs.

Code:

    <div>
        <input type="button" value="Show Spoiler" style="width:80px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].style.display = ''; this.parentNode.parentNode.getElementsByTagName('div')[2].style.display = 'none'; this.innerText = ''; this.value = 'Hide Spoiler'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].style.display = 'none'; this.parentNode.parentNode.getElementsByTagName('div')[2].style.display = ''; this.innerText = ''; this.value = 'Show Spoiler'; }" />

        <div id="spoiler" style="display: none;margin: 0px; padding: 6px; border: 1px inset;width:560px">
          {param}
        </div>

        <div style="display:block; font-style:italic;font-size:x-small;">
            Click the "Show Spoiler" Button to reveal hidden text.
        </div>
    </div>


sabret00the 11-29-2004 07:10 AM

Quote:

Originally Posted by sabret00the
is a shame, i'm wondering if they hardcoded it also? maybe might be the way to fix it, i'll look at the include bbcode file see what i come up with :)

hardcoded it, if anyones interested in it, then let me know and i'll release it :)

Gaim Mastr 12-24-2004 04:18 PM

Thanks for the animesuki used spoiler code, Natch !!

It's the best one I've ever seen; and I've implemented it onto the 3DGamers.com forums just now. :up:

Sin City 02-19-2005 08:49 AM

thanks for sharing the code Natch... best spoiler code i have seen yet


All times are GMT. The time now is 01:38 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01164 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete