Page 1 of 1

Spoiler Tag

Posted: 2 Mar 2014, 22:48
by brutalistu
To add a spoiler bbcode to your vBulletin forum simply go to your AdminCP, scroll down to Custom BB Codes and click Add new BB code. Fill the fields with the below values:

Title: Spoiler

BB Code Tag Name Spoiler

Replacement

Code: Select all

<div>
    <div class="pre-spoiler">
    <input type="button" value="Click Me" style="width:450px;font-size:14px;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.value = 'Click Me';}">
    </div>
    <div>
        <div class="spoiler" style="display: none;"><div style="border: 1px solid ;">{param}</div></div>
    </div>
</div>
Description
Shows and hides text with the click of a button

Use {option} No

Button Image (optional) - Depends on whether you want an image for the spoiler tag in your WYSIWYG editor or not. If yes please specify a path to your button image.

Save the bbcode and you are done

Tell me if it works.

Re: Spoiler Tag

Posted: 2 Mar 2014, 22:57
by Magicake
Spoiler:
A mers, mersi :)

Re: Spoiler Tag

Posted: 2 Mar 2014, 22:59
by brutalistu
Spoiler:
Glad to be of service

Re: Spoiler Tag

Posted: 2 Mar 2014, 23:02
by RaptoR
Spoiler for Test:
Test

Re: Spoiler Tag

Posted: 2 Mar 2014, 23:04
by Magicake
Se pare ca nu putem folosi atat

Code: Select all

[spoiler]ceva[/spoiler]
cat si

Code: Select all

[spoiler=descr]ceva[/spoiler]
Va trebui sa alegem unul din ele.

Re: Spoiler Tag

Posted: 2 Mar 2014, 23:15
by brutalistu
Să nu mai fac un thread nou
Add New BBCode

Title: Youtube

BB Code Tag Name: ytb

Replacement:

<iframe width="420" height="315" src="//www.youtube.com/embed/{param}" frameborder="0" allowfullscreen></iframe>

Example: [YTB]578nd9swh7E[/YTB]

Description: Embed youtube video code for your VB forum..

Use {option} NO

Button Image (Optional) (you can use any 16X16 icon here).

Remove Tag If Empty YES

Disable BB Code Within This BB Code YES

Disable Smilies Within This BB Code YES

Disable Word Wrapping Within This BB Code YES

Disable Automatic Link Parsing Within This BB Code YES

SAVE

Re: Spoiler Tag

Posted: 2 Mar 2014, 23:19
by Magicake

Code: Select all

[youtube]video code[/youtube]



Unde video code = rrVDATvUitA in https://www.youtube.com/watch?v=rrVDATvUitA

Thanks again :)

Re: Spoiler Tag

Posted: 3 Mar 2014, 13:19
by sebas
Image

Re: Spoiler Tag

Posted: 5 Mar 2014, 23:19
by brutalistu
Strike-through
1. In your AdminCP, go to Custom BB Codes and click Add New BB Code
2. Enter the following info in the appropriate fields:
Title: Strikethrough
Tag: Strike
Replacement: <strike>{param}</strike>
Complete the rest of the fields as you like (to be honest, I believe the only field that you "must" set up as I've described is the "Replacement" one, as that's the one that tells vBulletin what html code you want to use for this bb code).

Re: Spoiler Tag

Posted: 5 Mar 2014, 23:24
by TG
Avem deja. :)

E trecut ca ”s”.

Re: Spoiler Tag

Posted: 5 Mar 2014, 23:30
by brutalistu
Nu îl văzusem, scuze.