Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Spoiler Alert BB Code - New Look for VB5 Details »
Spoiler Alert BB Code - New Look for VB5
Mod Version: 1.00, by BirdOPrey5 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Jul 2019 I like it Show Printable Version Email this Page

vB Version: 5.0.0 Rating: (6 votes - 4.83 average) Installs: 43
Released: 10 Mar 2013 Last Update: Never Downloads: 183
Not Supported Re-usable Code  

This is based on an old spoiler code widely available as "Reusable Code" in the VB 3.x days but since removed. It has been updated with new colors, rounded borders, and shadows for new look and fully compatible with VB5.

This is a BB Code to hide content from people who don't want to accidentally see it- usually used for "spoilers" about TV Shows, Movies, or sporting events.

Live Demo: http://www.qapla.com/mods/showthread...-Spoiler-Alert

Closed State:



Open State:



Nested (on VB5):



Tested and working on VB 3.x, 4.x, and 5.x!
Tested and working in Chrome, IE, Opera, and Safari


Note- Because it uses JavaScript you must refresh the page after submitting a post so the JS loads correctly. Other people viewing the post after you will not have any problems.

This BBCode relies on a background image (bop5-alert-bk.png) that must be uploaded to your /images/misc/ folder.



To install download the XML if you have the BBCode XML importer or add a custom BBCode with these settings:

Title: Spoiler Alert
BB Code Tag Name: sa
Replacement:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example: [sa]Spoiler Example[/sa]
Description: This is a Spoiler BBCode to hide content until someone clicks on it.
Use {Option}: No

Button Image: (Image attached)

Remove Tag if Empty: Yes
All other settings: No


---


Please "Mark as Installed" if you use this.


NOTE: Do not download the .xml fie unless you have the old obscure mod for VB 3.x to allow BBCode Importing via XML. This is NOT a VB Product file and will not import for 99.9% of you. Use the manual instructions instead. I only included the file because there is a rule where every mod thread is technically supposed to have an attached file to download.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	spoiler-alert-ss1-closed.jpg
Views:	2099
Size:	21.5 KB
ID:	144098   Click image for larger version

Name:	spoiler-alert-ss2-open.jpg
Views:	2079
Size:	32.2 KB
ID:	144099   Click image for larger version

Name:	spoiler-alert-ss3-vb5.jpg
Views:	2103
Size:	46.4 KB
ID:	144100  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
BB Code Enhancements [BB Code] Spoiler Tag theFM vBulletin 4.x Add-ons 37 29 Jan 2015 15:03
BB Code Enhancements Spoiler BB Code finalcuthalo vBulletin 3.7 Add-ons 19 21 Sep 2013 05:13
Mini Mods Better Spoiler bb code Ezo vBulletin 3.6 Add-ons 24 16 Mar 2010 17:45

  #16  
Old 18 Feb 2016, 02:39
online68 online68 is offline
 
Join Date: Mar 2015
Originally Posted by shimei View Post
Yes and Yes. Check out an example here: https://www.christforums.org/forum/n...dvanced-editor
Awesome!! Thanks.

Last edited by online68; 19 Feb 2016 at 02:32.
Reply With Quote
  #17  
Old 18 Feb 2016, 08:31
teddyvgt teddyvgt is offline
 
Join Date: Nov 2015
goog job!
Reply With Quote
  #18  
Old 18 Feb 2016, 09:39
teddyvgt teddyvgt is offline
 
Join Date: Nov 2015
hi
buddy http://www.qapla.com/mods/showthread...e-Embedded-PDF vbulletin 5.x no work ,pls Repair.
Reply With Quote
  #19  
Old 18 Feb 2016, 09:41
IggyP IggyP is offline
 
Join Date: May 2012
Originally Posted by teddyvgt View Post
hi
buddy http://www.qapla.com/mods/showthread...e-Embedded-PDF vbulletin 5.x no work ,pls Repair.
that would be pretty nice if possible..
Reply With Quote
  #20  
Old 18 Feb 2016, 23:21
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by teddyvgt View Post
hi
buddy http://www.qapla.com/mods/showthread...e-Embedded-PDF vbulletin 5.x no work ,pls Repair.
You have to use the manual installation instructions (in the 2nd post) and it should work fine. I installed and tested it here: http://sedona.vbulletin.net/forum/te...?p=434#post434
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #21  
Old 19 Feb 2016, 00:02
IggyP IggyP is offline
 
Join Date: May 2012
thanks...i have gotten it to work but i have one issue...my site is https, and only pdf with links also https will display

is there a way to embed both https and http pdfs?
Reply With Quote
  #22  
Old 19 Feb 2016, 07:32
shimei shimei is offline
 
Join Date: Feb 2015
Originally Posted by IggyP View Post
thanks...i have gotten it to work but i have one issue...my site is https, and only pdf with links also https will display

is there a way to embed both https and http pdfs?
You mean like the image proxy built into the advanced editor, but for pdf?
Reply With Quote
  #23  
Old 19 Feb 2016, 12:53
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by IggyP View Post
thanks...i have gotten it to work but i have one issue...my site is https, and only pdf with links also https will display

is there a way to embed both https and http pdfs?
That's not a problem with this, just most browsers set set to hide insecure content on when browsing secure pages. Whether it was an image or PDF or video, if it isn't from an htps source it won't display.

There's nothing int he code that forces http. If your provide an https link to a PDF no reason it wouldn't work.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

However not every site supports https so you're limiting the content you can embed, but it's the same limitation you always had.

When you use the code you can leave the http off the URL and instead of:

[pdf]http://www.qapla.com/ju/PDFOpenParameters.pdf[/pdf]

use

[pdf]//www.qapla.com/ju/PDFOpenParameters.pdf[/pdf]

That will automatically fill in the http or https depending on what the page is using at the time it is viewed, the only problem is not all content is accessible via both an http and https link so some things may work one way but not the other.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #24  
Old 19 Feb 2016, 19:45
IggyP IggyP is offline
 
Join Date: May 2012
hmm..i see...sorry to discuss here nothing to do with spoilers but ya the https embeds work perfectly but its a problem because the majority of sources are not https...and with my vb5, i tried a way like to attach the pdf, then re-edit the post to include that link from my own https but that also failed to embed, although in a different error...and of course it is confusing to members because it lists an option to insert, which also does not work other than as a download link...

so even for a long harder way is it possible to embed a common pdf at all or am i limited only to those listed on other https sources?

thank you for info and sorry for the off topic
Reply With Quote
  #25  
Old 24 Feb 2016, 05:18
kurniawands kurniawands is offline
 
Join Date: Feb 2016
Works very well. Installed with a little changes on the looks Thank you...
Reply With Quote
  #26  
Old 27 Oct 2016, 07:03
Ashlar217's Avatar
Ashlar217 Ashlar217 is offline
 
Join Date: Oct 2016
Real name: Mark
Is is 'Hidden' txt font color determined by the BBcode or the board theme? The spoiler code works fine in 5.2.4. Just can't read the text once revealed lol
Reply With Quote
  #27  
Old 27 Oct 2016, 09:43
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Ashlar217 View Post
Is is 'Hidden' txt font color determined by the BBcode or the board theme? The spoiler code works fine in 5.2.4. Just can't read the text once revealed lol
Should be set by the board text color but if you want to set a custom color use this as the replacement instead:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change the color: red; code to any color or color code you want.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #28  
Old 03 Nov 2016, 21:35
noypiscripter's Avatar
noypiscripter noypiscripter is offline
 
Join Date: Aug 2013
What if you just want to hide one or two phrases or sentences as a spoiler in a paragraph and still keep the continuity of the sentences? For example.

I just saw this awesome movie called Titanic! Anyone else see it? I can't believe [sa]Leonardo DeCaprio dies!!![/sa]. How did you like them apples!?!?!

In my own Spoiler BB Code, I preserve the layout of the entire text and make the spoiler text clickable to hide/show itself.
__________________
Glenn Vergara, an ex-vB Developer, now a vB Mod Developer

GIPHY for vB5 | AutoLinker | Video Attachments Player | New Registered Users Module | Clear System Cache Cron | DragNDrop Upload | Topic AJAX AutoUpdate | Force Read Topic
Reply With Quote
  #29  
Old 07 Nov 2016, 01:00
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Not something I ever personally needed but if you like it, glad you made it.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #30  
Old 19 May 2018, 15:22
Fleiding's Avatar
Fleiding Fleiding is offline
 
Join Date: Jan 2012
Real name: Rob
Awesome!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:29.

Layout Options | Width: Wide Color: