1
Create a Forum Codes and Support / Re: BBCode spoiler
« on: May 31, 2018, 03:57:39 am »
Not a ton, but few are, yes. It's more likely it will not work than will work.
Create A Forum Installed
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
<script type="text/javascript src="/jquery.js></script><script>
b = document.getElementsByTagName("div");
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>
<script type="text/javascript">
var Groups = new Array(), YES;
//Created by Agent Moose (November 22, 2015)
Groups["#00aabb"] = "Administrator";
Groups["green"] = "Moderator";
Groups["COLOR"] = "MEMBERGROUP NAME";
//Only Edit the word "Newbie". This is used for Membergroups who don't have a color.
Groups["none"] = "Newbie";
var hc = document.getElementById("upshrinkHeaderIC");
var para = hc.getElementsByTagName("p");
for(x=0;x<para.length;x++){
if(para[x].innerHTML.match(/Users active in/i)){
para[x].innerHTML += "<br /><br />Legend: <span id='legend'></span>";
var h = para[x].getElementsByTagName("a");
for(i=0;i<h.length;i++){
h[i].innerHTML = "<span onmouseover='red(this);' onmouseout='blue();'>" + h[i].innerHTML + "</span>";
};
};
};
function red(AgentMoose){
(AgentMoose.parentNode.style.color) ? YES = AgentMoose.parentNode.style.color : YES = "none";
if(YES !== undefined && /rgb\((.*)\,(.*)\,(.*)\)/i.test(YES)){
var SEY = "#" + toHex(RegExp.$1) + toHex(RegExp.$2) + toHex(RegExp.$3);
YES = SEY;
};
document.getElementById("legend").innerHTML = Groups[YES.toLowerCase() || YES.toUpperCase()];
};
function blue(){
setTimeout(function(){
document.getElementById("legend").innerHTML = "&n" + "bsp;";
}, 500);
};
function toHex(N) {
if(N === null){
return "00";
};
N = parseInt(N);
if(N === 0 || isNaN(N)){
return "00";
};
N = Math.max(0,N);
N = Math.min(N,255);
N = Math.round(N);
return "0123456789ABCDEF".charAt((N - N % 16) / 16) + "0123456789ABCDEF".charAt(N % 16);
};
</script>
Groups["COLOR"] = "MEMBERGROUP NAME";
Replace the COLOR with the color of the membergroup name. You can use HEX (#00aabb) or color codes (red, blue, green, ect.)Groups["none"] = "Default";
That line is there so that if there is no color for that membergroup, it will default to showing the word "Default". You can change that if you wish.<script type="text/javascript">
function NAB(real, owned){
//Created by Agent Moose
for(i in document.links){
if(document.links[i].innerHTML === real){
document.links[i].innerHTML = owned;
};};};
NAB("Agent Moose", "<font color='#00aabb'><b>Agent Caboose</b></font>");
NAB("OLD NAME", "NEW NAME");
</script>
NAB("OLD NAME", "NEW NAME");
OLD NAME = Current Username (THIS IS CASE SENSITIVE)NAB("Agent Moose", "<img src='IMAGE URL HERE' />Agent Moose");
NAB("OLD NAME", "NEW NAME");