Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2003, 12:05 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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. irate:
Reply With Quote
  #2  
Old 01-21-2003, 12:34 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

and quick reply hack, and any of my hacks :thumbsup:
Reply With Quote
  #3  
Old 01-21-2003, 11:27 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 01-21-2003, 12:02 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 01-21-2003, 02:37 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 01-21-2003, 02:58 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 01-21-2003, 10:03 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh cool. Thanks guys. Worked like a charm.
Reply With Quote
  #8  
Old 01-28-2004, 06:13 PM
deaconxgp deaconxgp is offline
 
Join Date: Dec 2003
Location: Dallas
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 ??
Reply With Quote
  #9  
Old 01-28-2004, 11:14 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 03-20-2004, 01:09 PM
MasterObi1 MasterObi1 is offline
 
Join Date: Feb 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:20 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.04638 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete