![]() |
|
Mod Options |
![]() |
|||||||||||||||
Spoiler Alert BB Code - New Look for VB5
![]() Developer Last Online: Feb 2019 ![]() ![]() ![]()
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:
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 Show Your Support
The following members like this post: Chicoynano
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
BB Code Enhancements [BB Code] Spoiler Tag | theFM | vBulletin 4.x Add-ons | 37 | 29 Jan 2015 16:03 |
BB Code Enhancements Spoiler BB Code | finalcuthalo | vBulletin 3.7 Add-ons | 19 | 21 Sep 2013 06:13 |
Mini Mods Better Spoiler bb code | Ezo | vBulletin 3.6 Add-ons | 24 | 16 Mar 2010 18:45 |
#16
|
|||
|
|||
Originally Posted by shimei
Awesome!! Thanks.
![]()
No members have liked this post.
Last edited by online68; 19 Feb 2016 at 03:32. |
#18
|
|||
|
|||
hi
buddy http://www.qapla.com/mods/showthread...e-Embedded-PDF vbulletin 5.x no work ,pls Repair. No members have liked this post.
|
#19
|
|||
|
|||
Originally Posted by teddyvgt
that would be pretty nice if possible..
![]()
No members have liked this post.
|
#20
|
||||
|
||||
Originally Posted by teddyvgt
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. The following members like this post: shimei
|
#21
|
|||
|
|||
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? The following members like this post: shimei
|
#22
|
|||
|
|||
You mean like the image proxy built into the advanced editor, but for pdf?
No members have liked this post.
|
#23
|
||||
|
||||
Originally Posted by IggyP
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.
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. No members have liked this post.
|
#24
|
|||
|
|||
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 No members have liked this post.
|
#25
|
|||
|
|||
Works very well. Installed with a little changes on the looks
![]() No members have liked this post.
|
#26
|
||||
|
||||
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
No members have liked this post.
|
#27
|
||||
|
||||
Originally Posted by Ashlar217
Should be set by the board text color but if you want to set a custom color use this as the replacement instead:![]()
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. No members have liked this post.
|
#28
|
||||
|
||||
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 No members have liked this post.
|
#29
|
||||
|
||||
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. No members have liked this post.
|
#30
|
||||
|
||||
Awesome!
![]() The following members like this post: BirdOPrey5
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:02.