vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Better Spoiler bb code (https://vborg.vbsupport.ru/showthread.php?t=162449)

SamuraiNigel 12-01-2007 02:15 AM

So, this looks like something I want, but I don't know what to do with the code. Do I throw this into a template? Which one? Do I replace what's in the template or add to it? There aren't any instructions here that i can see...

Edit: Nevermind, I figured it out.

superthang 12-01-2007 11:14 AM

Quote:

Originally Posted by techgsmnet (Post 1392414)
you about backgrount picture?
Just change picture link to you.

no, i mean like can we supply each with different image so user can click on that image and it show something related to that image

example
[spoiler=http://vbulletin.com/car.gif]content content content about car[/spoiler]

[spoiler=http://vbulletin.com/boat.gif]content content content about boat[/spoiler]

and so on.

also got this error: style is not "null" or an object

vasek 01-02-2008 05:43 PM

added custom title on button:
add new BB code:

Title: Spoiler with custom text on button
Tag: spoiler2
Code:

<div id="spoiler"><div><input type="button" value="{option}" style="width:160px;font-size:12px;margin:10px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display != '')
{
 this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = '';
 this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = 'none';
 this.innerText = '';
} else
{
 this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = 'none';
 this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = '';
 this.innerText = '';
}" />
<div id="show" style="display: none; background-color:transparent; background-repeat:repeat; margin: 0px;border-style:solid;border-width:1px; padding: 4px; width:98%">
{param}</div>
<div id="hide"></div></div></div>

sample: [spoiler2=text on button]hidden text[/spoiler2]
use option: On

steve1966 01-03-2008 07:30 AM

ok i managed to figure out how to install but when i click on my custom button on the tool bar I a get a pop up same as insert an image

and when i post the what i have inserted into the box i cannot get the hid show to show up
please can someone tell me what i have done wrong

tintructo 01-03-2008 09:40 AM

Quote:

Originally Posted by steve1966 (Post 1414464)
hi can someone tell me what template to add this code to thanks

or if i have to add this mod code somewhere else please can you give me a an instruction how to install

thanks

AdminCP -> Custom BB Codes -> Add New BB Code

in the title input , put something like "Spoiler"
in the tag input, put something like "spoiler" so you will have the bbcode like this : [spoiler]text[/spoiler]
in the replacement textarea, put the code of the spoiler that you can see on the thread

and that's all :)

steve1966 01-03-2008 10:25 AM

its ok i have sorted it now and got it working

mikkitine 03-28-2008 12:15 PM

Multiple spoiler tags won't open after the first spoiler tag has been open regardless of whether they were used in the same post or not. This happens on IE/Safari browsers afaik.

tjsrachel 04-04-2008 01:07 AM

Quote:

Originally Posted by vasek (Post 1413994)
added custom title on button:
add new BB code:

Title: Spoiler with custom text on button
Tag: spoiler2
Code:

<div id="spoiler"><div><input type="button" value="{option}" style="width:160px;font-size:12px;margin:10px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display != '')
{
 this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = '';
 this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = 'none';
 this.innerText = '';
} else
{
 this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = 'none';
 this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = '';
 this.innerText = '';
}" />
<div id="show" style="display: none; background-color:transparent; background-repeat:repeat; margin: 0px;border-style:solid;border-width:1px; padding: 4px; width:98%">
{param}</div>
<div id="hide"></div></div></div>



sample: [spoiler2=text on button]hidden text[/spoiler2]
use option: On

I am using this one for the custom text on the button but after you press the button the text disappears and does not come back. Anyone have any ideas how I can get the text to stay after selected?

gibigbig 04-22-2008 09:06 AM

works nicely
i customized it for my site

Coldhands 05-05-2008 06:45 PM

Found a bug!


Spoilers can be used to lure people to phishing sites.

Allow me to demonstrate:

If you have spoilers on your forum, post this and click on the spoiler.

PHP Code:

[B]Ohhh WowsCheck this out yous guys!!1[/B]
[
spoiler]Okaynow click it and watch [URL="http://www.vbulletin.org.forum.google.com/omgwhatisurpword"][COLOR=Black][spoiler]j/k! :)[/spoiler][/COLOR][/URL][/spoiler


Any suggestions on how to fix this lil bug?


All times are GMT. The time now is 12:49 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.01080 seconds
  • Memory Usage 1,750KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete