vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Spoiler vB Code. (https://vborg.vbsupport.ru/showthread.php?t=42844)

Slynderdale 08-28-2002 03:10 AM

Spoiler vB Code.
 
Heres a neat pop up spoiler tag as seen here:
http://www.ls1.com/forums/showthread...hreadid=110647


vB Code tag: spoiler

vB Code replacement:
Code:

<INPUT onclick="alert('{param}')" type=button value="{option}">
vB Code example:
Code:

<INPUT onclick="alert('yes!')" type=button value="Is this a test?">
Use {option} ?: yes

bonnmac 08-28-2002 03:50 AM

I'm having terrible luck at getting things to work today.... :( I've added the code now what do I type to make it work?

Slynderdale 08-28-2002 04:07 AM

[ spoiler=What is 2+2? ] 4 [ /spoiler ]

without the spaces

bonnmac 08-28-2002 04:13 AM

Thanks! Finally something works for me today... LOL

yzztik 08-31-2002 02:14 AM

Is there a limit of characters they can enclose in the spoiler pop up? Like if they put a whole paragraph will it cause problems?

SgtSling 09-01-2002 06:49 PM

is there anyway that we can make a popup for this for the codebuttons template?
That way it is easier for the members to use?

SgtSling 03-05-2003 11:56 AM

bump

Zzed 03-08-2003 05:31 PM

OMG, I had no idea something I made would be even referred to on VB.org. :D

Thank you Slynderdale.

Rufus69 03-10-2003 05:20 PM

another way to do this in browsers with javascript disabled is:

Code:

Spoilers Highlite to read.
<br>_________________________<br>
<font style=background-color:#000000; color:#000000;> {param}</font>


SgtSling 04-04-2003 04:03 AM

i am still wondering how we could add this to the vbcode buttons

Cyricx 04-10-2003 07:56 PM

Either I seem to have a problem in the code? or this is just the limitations of the button?

The code breaks when you use ' or "

The button either doesn't show up and the code all shows up if you use it in spoiler= (here) or the button shows up but doesn't work when you click it when you enter it ](here)[/spoiler

MUG 04-10-2003 08:12 PM

I don't recommend using this, because it can be exploited to run JavaScript of the user's choice.

[spoiler=' + document.cookie + ']Example of a possibility[/spoiler]

or

[spoiler='); window.open('http://www.annoyingadsite.com]click here[/spoiler]

SgtSling 04-12-2003 04:22 AM

i am still wondering how we could add this to the vbcode buttons

monstergamer 06-02-2003 05:59 PM

Quote:

04-12-03 at 01:22 AM SgtSling said this in Post #13
i am still wondering how we could add this to the vbcode buttons
same here

monstergamer 06-19-2003 11:59 PM

no one can make this into a button
so people can just click on it?


All times are GMT. The time now is 06:02 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.01144 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete