Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Spoiler Tag Details »»
Spoiler Tag
Version: 1.00, by YdieresiS YdieresiS is offline
Developer Last Online: Jun 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.0 Beta 4 Rating:
Released: 02-02-2008 Last Update: 02-02-2008 Installs: 76
Supported
Re-useable Code Translations  

I have been on this forum for a while and have used different spoiler tags, but the tags didn't sattisfied me. So i made my own spoiler tag.

This is a BB Code tag. It has to be installed in your BB code manager.

Enter the vbulletin administrator panel.
Navigate to Own BB codes.
Go to add BB code and fill in the following items.

Title: Spoiler
Tag: spoiler
Replacement:
HTML Code:
<div class="tcat" colspan="3">
	Spoiler
</div>
<div style="background-color:#fff;color:#fff;border:1px solid #CCCFDD;">
	<span class="spoiler" onmouseover="this.style.color='#000000';" onmouseout="this.style.color=this.style.backgroundColor='#ffffff'">
		{param}
	</span>
</div>
Example: [spoiler]blabla[/spoiler]
Description: This items show only the text when you move the mouse over it.

The code and style of it might be made better, but it does what it is made for.

I use this on the latest version of vBulletin (3.7.0) but it works on all versions.

I hope this is usefull for you guys. If you used it please click install so i can see if it comes in handy.

For those of you who want an example, here is it: Live Demo (dutch forum)
The first spoiler tag is my own tag, the second is this one: Invision Board Styled Spoiler Tag

And excuse me for my English, didn't used it much the last time.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-04-2008, 03:56 PM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice going... anyone has a clue on how to make this sopiler look like the one i show in the attachments?
Reply With Quote
  #23  
Old 02-04-2008, 07:14 PM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
Text is all I want to do with this anyway. Would it still be a separate line for each break?
I think so but I can't say it with confidence as I didn't test it.
Reply With Quote
  #24  
Old 02-04-2008, 09:24 PM
avsunforum avsunforum is offline
 
Join Date: Feb 2008
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks )
Reply With Quote
  #25  
Old 02-05-2008, 12:38 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freesteyelz View Post
I think so but I can't say it with confidence as I didn't test it.
Let's take this to PM as not to clutter up the thread anymore, sir. And send me the code for the overflow, please.
Reply With Quote
  #26  
Old 02-05-2008, 09:57 PM
YdieresiS YdieresiS is offline
 
Join Date: Jan 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by obmob View Post
Nice going... anyone has a clue on how to make this sopiler look like the one i show in the attachments?
That was what i was looking for in the first place, but i couldn't get that to work. I had the whole thing with javascript and css, but it only worked with one spoiler tag per page. On my forum they use a lot of this tag on one page and bij clicking the link it dit open al spoiler tags, not quite what i wanted. So i made this one and this one is good for what i use it for on our forum. If someone can fix a thing like that, please let it know.

Quote:
Originally Posted by Boofo View Post
Let's take this to PM as not to clutter up the thread anymore, sir. And send me the code for the overflow, please.
If you two get a solution to it, let it know please, so i might update the whole spoiler tag.
Reply With Quote
  #27  
Old 02-05-2008, 10:15 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YdieresiS View Post
If you two get a solution to it, let it know please, so i might update the whole spoiler tag.
Will do. I think we are close.
Reply With Quote
  #28  
Old 02-05-2008, 10:26 PM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YdieresiS View Post
That was what i was looking for in the first place, but i couldn't get that to work. I had the whole thing with javascript and css, but it only worked with one spoiler tag per page. On my forum they use a lot of this tag on one page and bij clicking the link it dit open al spoiler tags, not quite what i wanted. So i made this one and this one is good for what i use it for on our forum. If someone can fix a thing like that, please let it know.
Oh... i see... well, i'll take a look and compare with the one i'm using at the moment, will let you know if it works
Reply With Quote
  #29  
Old 02-12-2008, 09:09 PM
binevi binevi is offline
 
Join Date: Jan 2008
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to allow users to choose any title instead of Spoiler on the table ?
Reply With Quote
  #30  
Old 02-13-2008, 12:27 PM
YdieresiS YdieresiS is offline
 
Join Date: Jan 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by binevi View Post
is it possible to allow users to choose any title instead of Spoiler on the table ?
Yes this is possible.

If you use the things as posted before and change this:
Use {option} -> yes.
Replacement:
HTML Code:
<div class="tcat" colspan="3">
	{option}
</div> 
<div style="background-color:#fff;color:#fff;border:1px solid #CCCFDD;">
	<span class="spoiler" onmouseover="this.style.color='#000000';" onmouseout="this.style.color=this.style.backgroundColor='#ffffff'">
		{param}
	</span>
</div>
Example [Spoiler=Spoiler!]Testing[/Spoiler]

But in this case you always have to fill the option [Spoiler=Title]

It is possible but i wouldnt reccomend it.
Reply With Quote
  #31  
Old 02-13-2008, 04:30 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just change the word spoiler to whatever you want in the code when you enter it in the Admin CP.
Reply With Quote
Reply

Thread Tools

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 02:55 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.04566 seconds
  • Memory Usage 2,312KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_html
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete