Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« on: November 17, 2007, 06:41:09 pm » |
|
Footers <script> var b = document.getElementsByTagName("div"); //Created by Agent Moose (smcodes.smfforfree3.com) for(x=0;x<b.length;x++){ if(b[x].className=="post" && b[x].innerHTML.match(/\[spoiler\](.*)\[\/spoiler\]/i)){ b[x].innerHTML = b[x].innerHTML.replace("[spoiler]" + RegExp.$1 + "[/spoiler]","<div><div><a href='javascript:void(0)' onclick='$(this).parent().next().toggle()'>(Click to Show/Hide Spoiler)</a></div><div style='display:none' id='spoiler'>" + RegExp.$1 + "</div></div>"); };}; </script> Just place [spoiler]YOUR TEXT HERE[/spoiler] to create the spoiler.
|
|
« Last Edit: March 18, 2008, 06:28:06 pm by Agent Moose »
|
Report Spam
Logged
|
|
|
|
|
Myth
Lightning Guardian
Members
Offline
Gender:
Posts: 28
Ike for Brawl!
|
|
« Reply #1 on: November 17, 2007, 09:13:20 pm » |
|
It doesn't work. the tags aren't recognized...
|
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #2 on: November 17, 2007, 09:55:54 pm » |
|
This should work. I tested it and it does.
|
|
|
|
Myth
Lightning Guardian
Members
Offline
Gender:
Posts: 28
Ike for Brawl!
|
|
« Reply #3 on: November 27, 2007, 03:14:29 pm » |
|
Oh nvm I did a "Preview" and it didn't show it, but when you enter it it works
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #4 on: November 29, 2007, 03:37:53 am » |
|
You didn't post this on support, did you?
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #5 on: November 29, 2007, 02:29:17 pm » |
|
Nope. there are accually alot of codes I havn't posted on support.
|
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #6 on: November 30, 2007, 02:03:35 am » |
|
That goes in my sig, lol.
|
|
|
|
Coreeeey
Starter
Offline
Posts: 8
|
|
« Reply #7 on: December 27, 2007, 02:48:02 pm » |
|
Noticed something when I was testing this code. I have two tags in two different posts with different content in each.
|
|
|
|
Agent Moose
Administrator
Offline
Gender:
Posts: 2,672
|
|
« Reply #8 on: December 27, 2007, 03:36:12 pm » |
|
I see. I had that problem with the Member Quickies. I will try to fix it.
|
|
|
|
Agent Moose Jr.
Ultra Contagious
Global Moderator
Offline
Gender:
Posts: 1,045
|
|
« Reply #9 on: December 29, 2007, 01:35:48 pm » |
|
what does this do??
|
Newest:
|
|
|
Celebrus
Artificially Conscious
Administrator
Offline
Gender:
Posts: 1,337
aka Omikron
|
|
« Reply #10 on: January 01, 2008, 05:27:58 am » |
|
It gives your forum spoiler tag capabilities.
|
|
|
|
Agent Moose Jr.
Ultra Contagious
Global Moderator
Offline
Gender:
Posts: 1,045
|
|
« Reply #11 on: January 01, 2008, 05:13:33 pm » |
|
um in english please lol ?
|
Newest:
|
|
|
|
Coreeeey
Starter
Offline
Posts: 8
|
|
« Reply #13 on: January 03, 2008, 09:01:03 pm » |
|
I'm glad you got it working. I see you released it at the support site.
|
|
|
|
zombozo3eyes
Starter
Offline
Posts: 14
|
|
« Reply #14 on: January 04, 2008, 12:43:39 pm » |
|
I added it and nothing happened, does a button show up on the reply window?
|
|
|
|
|
|