| August 14th, 2004 08:52 AM |
|
|
| Arkham Asylum |
Is there any way that you can add custom novocode? |
| August 14th, 2004 09:49 AM |
|
|
| Faithless |
=O.O= Really? That would be awesome! =^-^= |
| August 14th, 2004 11:49 AM |
|
|
| TK-7771 |
nope |
| August 14th, 2004 03:38 PM |
|
|
| sdn |
If Javascript supports rexex replacing, then it probably is possible to script it. |
| August 14th, 2004 09:25 PM |
|
|
| Arkham Asylum |
in english that means????????:( |
| August 14th, 2004 09:29 PM |
|
|
| Arkham Asylum |
Perhaps if I explain what I want it might help. Some users in my forums want to discuss spoiler material for movies, others don't. I have a javascript i got off invision boards that works as a spoiler thing. The text is covered and you have to highlight to read it. Can I put that in? |
| August 15th, 2004 04:04 PM |
|
|
| TK-7771 |
well if you cant, you could always limit spoiler info to one thread. The in the title, have them put a spoiler warning...
Thread tilte-***Spoiler Warning*** ( or something like that)
Or even better, one forum for spoilers and one for non-spoilers. |
| August 15th, 2004 04:30 PM |
|
|
| Gary |
Or have them use the text color code. If your back ground is black tell them to use the black text novocode. The highlight thing will still work................ If it is a pic back ground then this will not work |
| August 15th, 2004 05:05 PM |
|
|
| sdn |
That can be done:
code:
<script language="javascript">
<!--
// spoiler code script
// written by sdn <33bit.com>
// put this in your footer or at the bottom of the thread template
var tag = "[spoil]";
var endtag = "[/spoil]";
var search = document.body.createTextRange();
search.collapse();
while (search.findText(tag)) {
search.pasteHTML('<div class="splabel">Spoiler</div><div class="sptext">');
}
search.collapse(true);
while (search.findText(endtag)) {
search.pasteHTML('</div>');
}
search.collapse(true);
//-->
</script>
<style type="text/css">
<!--
.splabel {background-color:BACKGROUND COLOR OF LABEL; width:75%; height:20px; font-family:FONT; font-weight:bold; color:FONT COLOR OF LABEL; border: 1px solid BORDER COLOR;}
.sptext {background-color:BACKGROUND COLOR OF SPOILER TEXT; width:75%; font-famoly:FONT; font-weight:normal; color:FONT COLOR OF SPOILER TEXT; border:1px solid BORDER COLOR OF SPOILER TEXT;}
-->
</style>
Start the spoiler with [spoil] and end it with [/spoil]. Replace the values in CAPS with your own to match your board's color scheme.
[Edited by sdn] |
| August 15th, 2004 10:01 PM |
|
|
| Sage |
Another script to add to my new forum. :D
check out my edit to it. :D Click Here!
[Edited by Sage] |
| August 16th, 2004 04:33 AM |
|
|
| Arkham Asylum |
I love you!!!!! |
| August 16th, 2004 02:42 PM |
|
|
| sdn |
I don't think I've ever gotten a response like that before, but thanks... :D Just make sure to set the text and background color the same, otherwise it would be pointless. |
| August 17th, 2004 02:02 AM |
|
|
| Arkham Asylum |
Yep, did it and it was a big hit , i never really understood why people said this but now i do, YOU SHOULD BE ON THE PAYROLL! |
| August 17th, 2004 12:24 PM |
|
|
| sdn |
Hehe. What Peter amd Markus do is a lot more complicated. That script took me about five minutes. And it worked off the first try, which was nice. |
| August 17th, 2004 03:54 PM |
|
|
| krillmeed |
Sdn, you have seen my forum, so what would i need to change the colours too so the spoilers will not show, i have it in the footer, but i am not too sure what to change the colours to:eek: Sorry for being such a pain :rolleyes: |
| August 17th, 2004 04:22 PM |
|
|
| sdn |
I replied at my board. :) |