vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Creating a Hide/Show (Spoiler) Feature (https://vborg.vbsupport.ru/showthread.php?t=97691)

OrangeFlea 10-06-2005 01:51 AM

Creating a Hide/Show (Spoiler) Feature
 
As shown in this person's signature:

http://boards1.wizards.com/showpost....00&postcount=1

How does one make it look exactly like that?

Blindchild02 10-06-2005 02:22 AM

yeah thats pretty nice.

OrangeFlea 10-06-2005 08:52 PM

Bump.

Come on. Will no one even attempt this?

Oblivion Knight 10-06-2005 09:39 PM

I may look in to this one later if nobody else does.. :)

Paul M 10-06-2005 09:55 PM

Just view the source .........

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;">

HIDDEN TEXT HERE

</div>

</div>

</div>


Funchiestz 10-06-2005 10:19 PM

can u teach me how to implement that one in my 3.5 ?

utw-Mephisto 10-06-2005 10:40 PM

gimme 5 minutes ... can be done by bbcode ...one sec

Go to your BBCode Manager :

with these settings :

http://ut2007world.com/images/bb.jpg

As replacement code you can use the one Paul posted instead of HIDDEN TEXT HERE, you use {param}.

Preview should be then :

http://ut2007world.com/images/bb2.jpg

Of course you can use anything, you don't have to call it spoiler2

and since bbcode can be used in signatures, you'll get that result

Chris M 10-06-2005 10:51 PM

Very nice spoiler code :)

Chris

utw-Mephisto 10-06-2005 10:58 PM

Another spoiler code would be

http://img246.imageshack.us/img246/9062/16tw.jpg

And when you mouseover :

http://img246.imageshack.us/img246/6361/28hn.jpg

Settings :

http://img246.imageshack.us/img246/9435/untitled1xd.jpg

COBRAws 10-07-2005 01:10 AM

There's a spoiler hack just released: https://vborg.vbsupport.ru/showthrea...threadid=97728

At least its something


All times are GMT. The time now is 10:53 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.00988 seconds
  • Memory Usage 1,734KB
  • 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
  • (1)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