vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   VB Codes for the [spoiler] tag? (https://vborg.vbsupport.ru/showthread.php?t=47951)

007 01-21-2003 12:05 AM

VB Codes for the [spoiler] tag?
 
Hey, I have seen this on other websites, and have even found some posts on this here in these forums, but I have been unable to get any of these to work. I am running 2.2.9 if that helps. I didn't think that would make much of a difference, so maybe it's just me... Anyway, can someone tell me what codes, you know, replacement, example, and explanation are required to get this to work? I want it to me so you have to highlight the text to be able to see what it says. THANKS.

Also, I am new to all this. I'm just wondering, what are some hacks that you guys recommend as "must have hacks?" There are just so many and it's hard to focus. LOL! Any recommendations would be appreciated.

Oh yeah, and how do you make that thing at the top of this site, where it says "# online users?" I'm assuming this hack has already been made but I have been unable to find it. Any help on this would also be appreciated. Thanks. :pirate:

Neo 01-21-2003 12:34 AM

take a search on vbulletin.com they have that there..

and quick reply hack, and any of my hacks :thumbsup:

007 01-21-2003 11:27 AM

Thanks, I did look around but for some reason the one's I found did not work :( Any suggestions? I just want it to change the bg and fonf color to the background color of the message or any other color (doesn't really matter) so that it has to be highlighted to be readable. Thanks again.

WetWired 01-21-2003 12:02 PM

Go into your admin CP.
On the nav bar, under vB codes, choose add.
Fill in the fields:
spoiler
<table bgcolor={option}><tr><td><font color={option}>{param}</font></td></tr></table>
[spoiler=orange]This is hidden[/spoiler]
The spoiler tag forces one to highlight it in order to read it
Yes

KuraFire 01-21-2003 02:37 PM

Quote:

Originally posted by WetWired
Go into your admin CP.
On the nav bar, under vB codes, choose add.
Fill in the fields:
spoiler
<table bgcolor={option}><tr><td><font color={option}>{param}</font></td></tr></table>
[spoiler]This is hidden[/spoiler]
The spoiler tag forces one to highlight it in order to read it
Yes

Except that with that code, you need to replace {option} with #000 (or any other hex color) of course, since [spoiler] does not provide a color (option) thus it won't work :p

WetWired 01-21-2003 02:58 PM

I messed up my example, so what? The entry still makes it work.

You can make it work both ways if you like, just enter that one, then enter this one:
spoiler
<table bgcolor=#CCCCCC><tr><td><font color=#CCCCCC>{param}</font></td></tr></table>
[spoiler]This is hidden[/spoiler]
The spoiler tag forces one to highlight it in order to read it
No

Then, whether or not they enter a color, it will work.

007 01-21-2003 10:03 PM

Ahh cool. Thanks guys. Worked like a charm.

deaconxgp 01-28-2004 06:13 PM

is there a way to insert a spoiler button much like the http or img button in the message toolbar so users could simply hit the spoiler button, then the prompt pops up to "enter spoiler here" like it does if you click the bold or italic button ??

KuraFire 01-28-2004 11:14 PM

Quote:

Originally Posted by deaconxgp
is there a way to insert a spoiler button much like the http or img button in the message toolbar so users could simply hit the spoiler button, then the prompt pops up to "enter spoiler here" like it does if you click the bold or italic button ??

Only in vB3

MasterObi1 03-20-2004 01:09 PM

I have seen on a board the spoiler tag, however you do not need to highlight the text to see it you just click the word spoiler, this then shows the text within the tag.

Can not seem to find how to do this....
Thanks in advance for any help.


All times are GMT. The time now is 05:03 AM.

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.00998 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete