The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
spoiler tags?
like they have here: http://forums.televisionwithoutpity....=3111875&st=45
if you scroll down and read the page a bit you'll see bits of texted that are blacked out-but if you use your mouse to highlight them, it suddenly becomes readable. is there any kind of mod/hack that would do that for vb3? |
#2
|
||||
|
||||
First off, this isn't the forum for this. second, it's a fairly simple bb tag you can make
<span style="color=#000000; background=#000000;">{param}</span> |
#3
|
|||
|
|||
Moved to Modification Requests forum.
|
#4
|
||||
|
||||
the best spoiler tags i've seen are on the animesuki forums
|
#5
|
||||
|
||||
How is their's different?
|
#6
|
||||
|
||||
check this out: http://forums.animesuki.com/showpost...5&postcount=44
and then they got the ability to have [spoiler=blah blah] check it here: http://forums.animesuki.com/showpost...0&postcount=47 it's a marvelous spoiler tag. |
#7
|
||||
|
||||
Bear with me:
[high]* Natch heads to his forum for this BBcode... [/high] OK: I'm back That animesuki forum is using this BBcode: I think I found it on vbt, or here, some somewhere ... Spolier BBcodes Name: Spoiler Tags Tag: spoiler Replacement: Code:
<div style="margin:5px 20px 20px 20px"> <div class="smallfont" style="margin-bottom:2px"><b>Spoiler:</b> <input type="button" value="Show" style="width:45px;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'; }"></div> <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div style="display: none;"> {param} </div> </div> </div> Simple as that it's a ver' sexy DOM manipulation, and it's pretty bulletproof... |
#8
|
||||
|
||||
That's pretty cool. I did have a problem with it though. When I used preview post, the submit post button no longer worked. Looks like a form conflict.
|
#9
|
||||
|
||||
works perfectly, anyway to get it to work with and without the {option} mine only works one way or the other
just encountered that bug but it took alot for me to ge there, but it's there |
#10
|
||||
|
||||
Above is edited with the bug fixed: I had not noticed that bug before... the form tags are not required for htis to work...
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|