![]() |
Spoiler Tag
1 Attachment(s)
Title: Spoiler Tag
BBCode Tag Name: spoiler Replacement: HTML Code:
<div style="margin:20px; margin-top:5px"> Descpription: Hide large images or just text. Set all options to NO (If any options have yes selected, it will not work. Enjoy! --------------------------------------------------------------------------------------------------------------------- It at first says, "Show Spoiler" - "Hide" - After clicking it just says "Show" |
Any pics of this in action, both open and closed?
|
tagged and thanks
edit untag and installed |
I'll post up pics later.
|
We have discussed it in PM already. You and some other anonymous person are accusing me of stealing code, which myself would never do.
|
your code
Code:
<div style="margin:20px; margin-top:5px"> code from this spoiler https://vborg.vbsupport.ru/showthrea...hlight=spoiler Code:
<div style="margin:20px; margin-top:5px"> a tiny difference in the style is all I see Code:
<div class="smallfont" style="margin-bottom:2px; width:852; height:26"><right><font color="red"><b> </b></font></right> |
I didn't edit out my first post to change it. Told you already i have talked to the person who made the "other" code.
|
Says show spoiler even after opening the spoiler, somethings not right in the code
|
Quote:
|
I will update the code....sorry.
|
Code updated, have all options set to NO!
Example in a thread http://forum.vbdiscussions.com/showthread.php?t=7701 http://forum.vbdiscussions.com/showthread.php?t=8262 http://www.urbanreply.com/showthread.php?t=3272 Works perfect! Just make sure any options are set to no. |
The last URL you gave still has the same problem, when you click the button to show spoiler, shouldnt the text change to hide spoiler? instead of still saying show spoiler :confused:
|
It works fine in FF.
|
All you've done is copy this hack from MyBB
http://community.mybb.com/thread-703...hlight=spoiler Compare the main code and see. I used that hack before when I ran MyBB 1.4, so spotted this as looking the same right off. You've made a few changes that's all to suit vbulletin, but the main Spoiler Code used is exactly the same. Your code: Code:
<input type="button" value="$1" style="width:auto;font-size:12px;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 = '$3'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = '$1'; }" /> Code:
<input type="button" value="Show Spoiler" 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 = 'Show'; }"> |
I didn't copy it from MyBB, (i have no reason to go over there either) i don't copy things. If i we're to do that why would i even bother posting my work. Why you accusing me of such things? If thats what you think than idgaf anyways. I didn't copy it from anyone, made it long ago on my gaming site and decided to post it.
|
installed
thanxxx |
Worker perfect thanks a lot for the code help.
|
And how do I change the background of the Spoiler? That is, change the background where writing the occult? Thanks!
|
Quote:
I would assume this mod is no longer supported. RIP ChopSuey |
nice.. thank you
|
thanks. installed
|
Quote:
To change to a different color add a background color to the style attribute... such as: Code:
<div style="margin:20px; margin-top:5px"> <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> to: <div style="margin: 0px; padding: 6px; border: 1px inset; background: red;"> |
We've been using this for some time without problem, but it has recently it has stopped working, possibly due to the latest update of vB(4.0.5)
Code:
<div style="margin:20px; margin-top:5px"> |
BB Code is just HTML, as long as {param} is there it should work in any VB version... I would try deleting the code and re-adding it, maybe something got corrupted along the way but it should work just fine.
|
Spoiler tag is not working in Firefox browser, any solution?
|
Quote:
|
It's working fine for me in Firefox-
http://www.juot.net/forums/showpost....36&postcount=2 Does it work for you guys on my site/link? |
Code:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET CLR 1.1.4322) @BirdofPrey; Your using an old version(v3.8.6) of vB not v4.0.6, that is the difference dude =\ |
Quote:
|
Quote:
2) I have a test install of 4.0.4 and it also works fine with FF on that Can you try it with the default style- maybe something in a custom style is conflicting Also can you post line 1344 (and neighboring lines) from the page source that generated that error? (or whatever lines around the error the next time you go to that page). |
Stopped working for me as well, I can see the spoiler (closed), but can't open it once post is submitted. Nothing happens when I click on the spoiler button.
|
Quote:
|
Quote:
Would complete the bbcode to work perfectly in Firefox? My version is 4.0.5 |
For me it's working fine in all browsers in 4.0.4- while I wold be surprised if upgrading to 4.0.6 breaks it, nothing with vbulletin shocks me anymore... I will try and upgrade my test install and check it.
|
when there is more than 1 spoiler...you can see only one...and the other doesnt expand itself
|
Quote:
|
Where do you type that code in?
|
Admin CP-> BB Code Manager -> Add New BB Code
|
yeah im pretty sure upgrading to 4.0.6 breaks it,
i just upgraded and it broke. |
I upgraded to 4.0.6 and it's still working fine for me... I have the default style though, everything very basic.
To those have say it broke in 4.0.6 are you using the forum only or the suite? I'm testing on forum only. |
All times are GMT. The time now is 02:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|