The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Custom Title Spoiler Button (Smooth Version) Details »» | |||||||||||||||||||||||||||||
Custom Title Spoiler Button (Smooth Version)
Developer Last Online: Jul 2014
This Mod supports all 3X Versions - 4.2.x Versions! Due to the demands, I have created a new version of spoilers. The greatest complaint I received HERE, was the framing of the actual spoiler. So gone is the "ugly" box! It is really quite easy to remove, but I understand that coding can be confusing/foreign to some people, this is why, I am releasing a clean, "NO BOX" version. I will still support those who want the box, for the 3X version, until the migration of everyone to the 4.X.x is made completely mandatory. Spoilers may be used as intended, in all Blog posts, forum posts, & published article content (CMS) to hide hints/cheats. I will not support it anywhere else outside of POSTING AREAS. It's really easy. Just log into the AdminCP=>Custom BBCodes=>Add New BB Code Then do this: Title: Spoiler BB Code Tag Name: Spoiler Replacement: Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px; width:852; height:26"><right><font color="red"><b> </b></font></right> <input type="button" value="Spoiler about {option}" style="font-size:10px;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.innerText = ''; this.value = '{option}'; }"> </div> <div> <div style="display: none;"> {param} </div> </div> </div> Description: Creates a button that hides/shows spoiler messages. use {option}: Click Yes (Note: some have found they need to set this option to "No" due to personal styling, but in most cases it should be "Yes"). add the path to your "spoiler" icon (feel free to use the icon I added at the bottom of this post.. just right click on it to download it to your computer) The image would go in your forums images/editor directory. Remove tag if empty: Click "Yes" ...leave the rest at "No" Click "Save" button & that is it! The code will then be: [SPOILER="Custom Button Title"]Hidden Content Here...[/SPOILER] This also works to nested spoilers as well! Nested Code Example: [SPOILER="Button Title Here"]Hidden Content Here...[SPOILER="2nd Nested Button Title Here"]2nd Hidden Nested content Here...[/SPOILER][/SPOILER] >>LIVE EXAMPLE<< (You can test there without signing up, if you want to see how it works). It also works for the CMS suites! >>LIVE EXAMPLE<< (Please feel free to post comments & give it a try!) ENJOY! Please Note: if for any reason this spoiler system breaks when converting from 3X to 4.0 upgrade. Just go to BB Code manager & delete it, go through the process of adding it again, as given above. Doing this will not make you lose any forum content as long as you use the the same code (i.e. if you modified the code I gave you, then you will have to do the same again for it to work as you want). Doing this will force the new version to read the BB code properly. Screenshots
Show Your Support
|
Благодарность от: | ||
englishtalk |
Comments |
#22
|
|||
|
|||
I like !
Just noticed the spoiler text shows up in the What's New page though. And search results alt txt. |
#23
|
||||
|
||||
Are you meaning not parsing? or... Usually BB code doesn't show in news feeds at all (i.e. Hidden content might show with missing BB Code). Is that what you mean?
I did a test at my site to show you what I get... Original Posts Followed by News Feeds: |
#24
|
|||
|
|||
Yes, bbcode doesnt show in feeds. But the hidden content does.
In whats new In alt text in search results, if in first post. I realize this is how it works, and I dont think it is really fixable since it is a bbcode hide feature. |
#25
|
|||
|
|||
I think a poster using spoiler tag will just need to make sure they type enough txt above the spoiler so the txt fills the alt txt and whats new txt area, with the bbcode well below.
Like I said, I like this. But if you figure out a solution, I will just like it even more. |
#26
|
|||
|
|||
I like this,... is it supposed to popup a javascript prompt when you click an icon?
How can I make it just drop the code and a user can fill in the text areas? |
#27
|
||||
|
||||
You should have a pop up for a title to name your spoiler... i.e. to tell what the spoiler is for (attached screen shot about this). Once that is posted, then you can place inside what you want to hide. Is this what you mean? Also, are you seeing the spoiler button icon? If you click on that, it posts the code for you, you just need to add in the details to make that post personal to the needs of the moment. If you still have problems, send me the details or PM me the details to look at your site to see what is going on.
|
#28
|
|||
|
|||
i assume this works for vb5? being simple and all...anyone tried it?
im wondering how hard it would be to put usergroup permissions on a tag like this? like for the button to work and show the txt... |
#29
|
|||
|
|||
I am not very good with the coding. How could I widen the tag? Any help is appreciated.
|
#30
|
||||
|
||||
I'm not sure what you are talking about changing. Could you give me a screen shot? I'll do my best to help.
|
#31
|
||||
|
||||
Yes, I do not personally use Version 5, but it is light code so should work fine for your needs. Just please note again that spoilers are not supported for mobile.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|