Spoiler Tag

Ce vă place la forum şi site și ce nu (dar mai mult ce vă place). Opinii, sugestii, critici.
Post Reply
User avatar
brutalistu
Hammer Haunt
Posts: 2293
Joined: 2 Mar 2014, 15:53

Spoiler Tag

Post 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.
Image
User avatar
Magicake
Global Belit
Posts: 4657
Joined: 2 Mar 2014, 14:27

Re: Spoiler Tag

Post by Magicake »

Spoiler:
A mers, mersi :)
User avatar
brutalistu
Hammer Haunt
Posts: 2293
Joined: 2 Mar 2014, 15:53

Re: Spoiler Tag

Post by brutalistu »

Spoiler:
Glad to be of service
Image
User avatar
RaptoR
Mad Scientist
Posts: 426
Joined: 2 Mar 2014, 15:26

Re: Spoiler Tag

Post by RaptoR »

Spoiler for Test:
Test
User avatar
Magicake
Global Belit
Posts: 4657
Joined: 2 Mar 2014, 14:27

Re: Spoiler Tag

Post 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.
User avatar
brutalistu
Hammer Haunt
Posts: 2293
Joined: 2 Mar 2014, 15:53

Re: Spoiler Tag

Post 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
Image
User avatar
Magicake
Global Belit
Posts: 4657
Joined: 2 Mar 2014, 14:27

Re: Spoiler Tag

Post by Magicake »

Code: Select all

[youtube]video code[/youtube]



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

Thanks again :)
User avatar
sebas
Hammer Haunt
Posts: 1581
Joined: 2 Mar 2014, 15:50

Re: Spoiler Tag

Post by sebas »

Image
dump CHA
User avatar
brutalistu
Hammer Haunt
Posts: 2293
Joined: 2 Mar 2014, 15:53

Re: Spoiler Tag

Post 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).
Image
User avatar
TG
Dremora Lord
Posts: 4947
Joined: 1 Mar 2014, 20:08
Contact:

Re: Spoiler Tag

Post by TG »

Avem deja. :)

E trecut ca ”s”.
"Screams of a billion murdered stars give life to the night's peace. While we cling in desperation to the few spinning stones we call worlds."

Image
User avatar
brutalistu
Hammer Haunt
Posts: 2293
Joined: 2 Mar 2014, 15:53

Re: Spoiler Tag

Post by brutalistu »

Nu îl văzusem, scuze.
Image
Post Reply

Return to “Sugestii Forum & Site”

Who is online

Users browsing this forum: No registered users and 9 guests