vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   BB Code Enhancements - Spoiler BB Code (https://vborg.vbsupport.ru/showthread.php?t=187329)

finalcuthalo 08-05-2008 10:00 PM

Spoiler BB Code
 
Spoiler BB Code

A simple spoiler BB Code with a show/hide button.

Usage:
Code:

[spoiler]the cake is a lie[/spoiler]
Tag Name: Spoiler
Replacement:
HTML Code:

<div style="margin:20px; margin-top:5px">
<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;">
{param}
</div>
</div>
</div>


Q-v-n-s-Q 08-06-2008 05:48 AM

- reserved -

VanDaMe 08-06-2008 08:58 AM

waiting for the files :D

Internetcafe 08-06-2008 10:32 AM

Quote:

Originally Posted by VanDaMe (Post 1592487)
waiting for the files :D

Could be a long wait ;)

iNRoC 08-06-2008 12:58 PM

Kool

Digital Jedi 08-06-2008 01:39 PM

Quote:

Originally Posted by Internetcafe (Post 1592516)
Could be a long wait ;)

Really long wait. :D

mark370 08-06-2008 04:38 PM

Quote:

Originally Posted by VanDaMe (Post 1592487)
waiting for the files :D

Lol There Is No Files M8 Just Add To Your Custom BB Codes In ACP :D

agitated 08-06-2008 06:01 PM

:confused: and the difference is ?
https://vborg.vbsupport.ru/showthread.php?t=184855

dartho 08-06-2008 10:12 PM

Quote:

Originally Posted by agitated (Post 1592842)
:confused: and the difference is ?
https://vborg.vbsupport.ru/showthread.php?t=184855

They're heaps different - that one underlines the word Spoiler, this one bolds it ... :rolleyes:

Karri 08-07-2008 04:37 PM

so in other words, yet another person that didn't actually create the code they are claiming credit for. :rolleyes:

Twilkey 08-08-2008 01:40 AM

Actually I am a friend of finals and he doesnt copy others work.

Karri 08-08-2008 02:27 PM

Guess it is just a total coincidence that he managed to come up with the exact same code as the other mentioned mod or as code that was being used on live sites since at least 2005.

GaiLoan 08-09-2008 09:16 AM

nice thanks

Twilkey 08-10-2008 04:29 AM

Quote:

Originally Posted by Karri (Post 1594076)
Guess it is just a total coincidence that he managed to come up with the exact same code as the other mentioned mod or as code that was being used on live sites since at least 2005.

I have seen alot of people get accused of copying others. I have seen final code alot of things. He has things that he has made that hasnt been released here. He doesnt really have to copy someone else. Plus this is a very simple mod that a noob could make. If he was going to copy someone, why copy this?

Abid 10-11-2008 03:28 PM

Thanks alot...this one is much more different and usefull then the link agitated provided.

Cheers

Nadeemjp 12-03-2008 01:02 AM

it is not displaying properly:(

zombietom 07-18-2009 02:51 PM

Excellent! Works great and my members have been asking for it.

thanks and i clicked installed!

EDIT: I made a quick button to use in advance mode,it's noting special but it will do .
https://vborg.vbsupport.ru/external/2009/07/36.jpg

JαρŘα?σoζ 09-20-2009 07:28 AM

How can I add spoiler title, anyone can help me with this?

So it's like:
Spoiler for Anime: <button show>
- The contents (like quote) -

GamerFill 12-16-2010 06:15 AM

Great stuff! Works wonders for the GamerFill community!
Thank you!

lpetrich 09-21-2013 04:13 AM

To control the title, change the label into {option} and for "Use {option}" select "Yes". It will then work with [hide=label]hidden text[/hide]

BTW, I know someone who is having trouble with Google Chrome -- the code does not work properly with that browser. It doesn't hide or at least re-hide.

ETA: You have to make a separate definition for a version that uses {option}, but they can have the same tag -- both can be "hide".


All times are GMT. The time now is 05:33 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.01184 seconds
  • Memory Usage 1,754KB
  • 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)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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