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)

9mmPrincess 11-17-2004 12:14 AM

spoiler tags?
 
like they have here: http://forums.televisionwithoutpity....=3111875&st=45

if you scroll down and read the page a bit you'll see bits of texted that are blacked out-but if you use your mouse to highlight them, it suddenly becomes readable. is there any kind of mod/hack that would do that for vb3?

Michael Morris 11-17-2004 12:28 AM

First off, this isn't the forum for this. second, it's a fairly simple bb tag you can make

<span style="color=#000000; background=#000000;">{param}</span>

Brad 11-17-2004 12:40 AM

Moved to Modification Requests forum.

sabret00the 11-17-2004 09:32 PM

the best spoiler tags i've seen are on the animesuki forums

Koutaru 11-20-2004 08:51 PM

How is their's different?

sabret00the 11-21-2004 01:50 PM

check this out: http://forums.animesuki.com/showpost...5&postcount=44

and then they got the ability to have [spoiler=blah blah] check it here: http://forums.animesuki.com/showpost...0&postcount=47

it's a marvelous spoiler tag.

Natch 11-21-2004 08:53 PM

Bear with me:

[high]* Natch heads to his forum for this BBcode...
[/high]
OK: I'm back :D

That animesuki forum is using this BBcode: I think I found it on vbt, or here, some somewhere ...
Spolier BBcodes
Name: Spoiler Tags
Tag: spoiler
Replacement:
Code:

<div style="margin:5px 20px 20px 20px">
        <div class="smallfont" style="margin-bottom:2px"><b>Spoiler:</b> <input type="button" value="Show" style="width:45px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"></div>
        <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
                <div style="display: none;">
                {param}
                </div>
        </div>
</div>

Example: [spoiler]Darth Vader is Luke Skywalker's Father[/spoiler]

Simple as that :D it's a ver' sexy DOM manipulation, and it's pretty bulletproof...

Code Monkey 11-21-2004 10:13 PM

That's pretty cool. I did have a problem with it though. When I used preview post, the submit post button no longer worked. :( Looks like a form conflict.

sabret00the 11-21-2004 10:36 PM

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 :(

Natch 11-21-2004 11:21 PM

Above is edited with the bug fixed: I had not noticed that bug before... the form tags are not required for htis to work...


All times are GMT. The time now is 05:52 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.01695 seconds
  • Memory Usage 1,729KB
  • 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
  • (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