vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - Classic button 'Spoiler' BB Code (NO INSTALL REQUIRED) (https://vborg.vbsupport.ru/showthread.php?t=289968)

Fatal Hazard 10-30-2012 11:00 PM

Classic button 'Spoiler' BB Code (NO INSTALL REQUIRED)
 
1 Attachment(s)
This is a classic button spoiler BB Code.

Title: Spoiler

BB Code Tag Name: Spoiler

Replacement:
Code:

<div style="margin: 5px 20px 20px;"> <div class="smallfont" style="margin-bottom: 2px;"><b>Spoiler:</b>&nbsp;  <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" 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'; }" type="button" /> </div> <div class="alt2" style="border: 1px inset ; margin: 0px; padding: 6px;"> <div style="display: none;"> {param} </div> </div> </div>
Example: [Spoiler]Some Text[/Spoiler]


Description: Allows you to hide text or images.

Image Path: Choose an image and upload it to your server.

Use {option}: No

Remove Tag If Empty: Yes

Disable BB Code Within This BB Code: No

Disable Smilies Within This BB Code: No

Disable Word Wrapping Within This BB Code: No

Disable Automatic Link Parsing Within This BB Code: No

Preview:
https://vborg.vbsupport.ru/external/2012/10/2.png

ahobilam 11-01-2012 03:17 PM

Installed, working, thanks.
But I could not get idea where we can use it?
Hiding text with a show button,
I think, it may be used to show the answer of a question after guess?

Fatal Hazard 11-18-2012 05:17 PM

Quote:

Originally Posted by ahobilam (Post 2377541)
Installed, working, thanks.
But I could not get idea where we can use it?
Hiding text with a show button,
I think, it may be used to show the answer of a question after guess?

Or just a cool bb code that your members can have fun with.

Gamelobby 12-12-2012 02:49 AM

What is this button.?
https://vborg.vbsupport.ru/external/2012/12/21.png
Isn't there supposed to be a image/button like the preview that says "Show" ?

*edit*
Nvm that is the button for when you're making a post.
I used this one..

https://vborg.vbsupport.ru/external/2012/12/4.gif

puthzel 12-12-2012 12:03 PM

Error in mobile version vb 4.2 can't show the spoiler content / can't unhide...

Fatal Hazard 12-12-2012 04:20 PM

Quote:

Originally Posted by Gamelobby (Post 2390143)
What is this button.?
https://vborg.vbsupport.ru/external/2012/12/21.png
Isn't there supposed to be a image/button like the preview that says "Show" ?

*edit*
Nvm that is the button for when you're making a post.
I used this one..

http://legendofthevoid.com/spoiler.gif

yeah, You can just use your own pic. I just uploaded that one as I was in a rush

Fatal Hazard 12-12-2012 04:22 PM

Quote:

Originally Posted by puthzel (Post 2390199)
Error in mobile version vb 4.2 can't show the spoiler content / can't unhide...

Hmm, I haven't tried it in the mobile version yet as I can't call my phone a phone but I will look into this. Thank you for pointing this out.

Asmod 12-13-2012 07:15 AM

works like a charm, thanks mate :)

Fatal Hazard 12-13-2012 09:38 PM

No problem :)

fxdigi-cash 12-14-2012 12:37 PM

I tried this code, but it seems there is something not correct. Everything is ok except that the button "show" when clicked nothing shows up. I mean spoiler is used to hide/show some text, right! so why this code doesn't do this job then!! or maybe I'm missing something here. please correct me if I'm wrong.

By the way, I did all exact steps many times, but still the hide/show function doesn't work...

any idea?

fxdigi-cash 12-14-2012 03:43 PM

This is something strange I just noticed. I placed the code in a plain html page to test it, and surprisingly it works fine without any issues. However, when I apply the same code to my vb bbcode, the show/hide button doesn't function...........

what do you think, mates?

Fatal Hazard 12-14-2012 07:20 PM

hmm, I haven't experienced any issues with the code myself so I am just trying to think of why it wouldn't be working.

fxdigi-cash 12-15-2012 05:39 AM

Hi Fatal Hazard,

Thanks for the efforts on this mod. This is just a quick feedback about what's going on. I have two sites with different forums, so one in English and other one is non-English so the English one is fine with this mod and works great. However, the "Arabic" one is not functioning at the property "show/hide".... possibly there is something related to the language !!!

any idea?

Thanks in advance

Quote:

Originally Posted by Fatal Hazard (Post 2390695)
hmm, I haven't experienced any issues with the code myself so I am just trying to think of why it wouldn't be working.


Fatal Hazard 12-15-2012 01:29 PM

Hi, thanks for pointing this out. This may sound a bit weird but first have you tried editing the show and spoiler text in English to Arabic? This may be worth a try in the first instance.
If you haven't already, find:
Code:

2px;"><b>Spoiler:</b>&nbsp;  <input value="Show"
and edit the
Code:

''show"
into Arabic and
Code:

Spoiler:
into Arabic.

fxdigi-cash 12-15-2012 01:48 PM

Thanks @Fatal Hazard, for the infor. However, after many tries it didn't work. possibly there is something not correct. I tried also adding other bbcodes like Blink and didn't work on the Arabic forum. I will create a new version of Arabic version and add the Spoiler BBcode and see how things go. I will update the issue with the results.

Thanks.

fxdigi-cash 12-15-2012 02:37 PM

Hi again, it is me....

I just installed new Arabic version with the same code, and guess what! it works great. I believe there is something wrong with my current forum so I guess I need to replace it. Thanks the code works perfect.

Cheers

Fatal Hazard 12-15-2012 02:40 PM

Quote:

Originally Posted by fxdigi-cash (Post 2390863)
Thanks @Fatal Hazard, for the infor. However, after many tries it didn't work. possibly there is something not correct. I tried also adding other bbcodes like Blink and didn't work on the Arabic forum. I will create a new version of Arabic version and add the Spoiler BBcode and see how things go. I will update the issue with the results.

Thanks.

Thanks, Truly Appreciated

Fatal Hazard 12-15-2012 02:51 PM

Quote:

Originally Posted by fxdigi-cash (Post 2390879)
Hi again, it is me....

I just installed new Arabic version with the same code, and guess what! it works great. I believe there is something wrong with my current forum so I guess I need to replace it. Thanks the code works perfect.

Cheers

Great to hear!!!! :)

hamdanikcung 02-19-2013 03:25 AM

when installed this spoiler why in the mobile not working ??
any suggestion ?

autoescala 02-19-2013 09:33 AM

works well, but only with text, the images can't be hidden! dont work with images :(

EliasAlucard 03-13-2013 05:07 PM

Installed, works awesome, much better than those spoiler scripts. 5 star vote.

Fatal Hazard 06-19-2013 04:48 PM

Quote:

Originally Posted by autoescala (Post 2405165)
works well, but only with text, the images can't be hidden! dont work with images :(

It should work just fine with images, well it is for me. You are wrapping the image tags within the spoiler tags right?

jokergameth 06-28-2013 07:05 AM

working great with my vb4.2.1 (text and image)
marked as installed
Thanks so much

Fatal Hazard 06-30-2013 12:33 PM

Quote:

Originally Posted by jokergameth (Post 2430935)
working great with my vb4.2.1 (text and image)
marked as installed
Thanks so much


Great to hear :)


It should also work with videos :)

infamousjoe 06-30-2013 10:01 PM

How can I make it so the spoiler is viewable to members only?

infamousjoe 07-21-2013 06:06 PM

Quote:

Originally Posted by infamousjoe (Post 2431424)
How can I make it so the spoiler is viewable to members only?

Does anyone have a solution to this?

Muhammad Rahman 07-21-2013 08:22 PM

not working in mobile style ..

Fatal Hazard 07-31-2013 04:26 PM

Quote:

Originally Posted by Muhammad Rahman (Post 2434726)
not working in mobile style ..

Thank you for pointing this out however there is nothing I can do to fix this, it is an incompatibility with the software developer's mobile style. Not an issue with the code itself.

Fatal Hazard 07-31-2013 04:29 PM

Quote:

Originally Posted by infamousjoe (Post 2431424)
How can I make it so the spoiler is viewable to members only?

Try this: https://vborg.vbsupport.ru/showthread.php?t=297555

AkibaWorld 01-29-2014 01:13 AM

It does not work on mobile style, can you do something?
And one question, do you know how to do if you want to make appear the spoiler in the user activity box?

https://vborg.vbsupport.ru/showthrea...24#post2477524

IggyP 02-13-2014 08:12 PM

um pretty sure this is the one i installed, lol, but just to verify it works for vb5.0.5 and also no issues with mobile browsing(didnt setup app yet)

im sure its beyond a simple bbcode add, but ideally id like to be able to put usergroup permissions on these tags

mightyudis 03-19-2014 09:18 PM

Thanks for posting this mod, works great on VB4.

Fatal Hazard 05-01-2014 02:34 PM

Quote:

Originally Posted by IggyP (Post 2480950)
um pretty sure this is the one i installed, lol, but just to verify it works for vb5.0.5 and also no issues with mobile browsing(didnt setup app yet)

im sure its beyond a simple bbcode add, but ideally id like to be able to put usergroup permissions on these tags

This is something that I do intend to create when I find the free time :)

Mangahaven 06-16-2015 05:38 PM

Thank you! Finally a spoiler BBcode that functions properly on install.

jokergameth 07-19-2019 09:37 AM

work great on my site since 2013 til today
http://www.jokergameth.com


All times are GMT. The time now is 05: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.01263 seconds
  • Memory Usage 1,810KB
  • 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
  • (4)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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