| The original content in this documentation is copyrighted to Agent Moose.
Compatibility: · · · · 
Description: This will add a notice box to a certain user, which the admin can specify.
Footers: - Code:
-
<script type="text/javascript"> var Symbol = "SYMBOL"; var NoticeText = "NOTICE TEXT";
var Notice = new Array(); var z = 0; Notice[z++] = ["NAME","REASON"];
//Created by Agent Moose (revolutionx.smfforfree3.com) var name = document.getElementsByTagName("span"); for(v=0;v<name.length;v++){ if(name[v].innerHTML.match(/Hello <b>(.*)<\/b>/i)){ var username = RegExp.$1; };}; for(x=0;x<Notice.length;x++){ if(username == Notice[x][0]){ document.getElementById("bodyarea").innerHTML = '<div style="border: 2px dashed rgb(204, 51, 68); margin: 2ex; padding: 2ex; color: black; background-color: rgb(255, 228, 233);"><div style="float: left; width: 2ex; font-size: 2em; color: red;">' + Symbol + '</div><b style="text-decoration: underline;">' + Notice[x][0] + '</b><br/><div style="padding-left: 6ex;">' + NoticeText + Notice[x][1] + '</div></div>' + document.getElementById("bodyarea").innerHTML; };}; </script> SYMBOL = The Symbol that will be left of the text (example: "!!") NOTICE = the Text before the Username (example: "Notice: Username") NAME = The User you want the notice box to show up for REASON = The reason why that user is getting the notice.
If you require support for this code, please start a topic in our Global Support Forum. Once your topic is posted, please PM the URL to the topic starter so that they know a support request is pending for their topic. Please DO NOT PM the topic starter with your actual support request.
|