Post by Malagrond on Jun 11, 2009 23:00:10 GMT -8
Code Name: [CB] Send Urgent PM
Description:
When sending a PM, you have the option of making it an "Urgent" PM. This causes the recipient to see the PM as bold and a different color in their inbox. You can change the color to suit your needs.
Main Footer
Enjoy!!
~Mala
Description:
When sending a PM, you have the option of making it an "Urgent" PM. This causes the recipient to see the PM as bold and a different color in their inbox. You can change the color to suit your needs.
Main Footer
<script>
<!--
/* Send Urgent PM's
by Malagrond
*/
var urgMsgColor = "FF0000"; // Color of urgent messages
// No need to edit below
if(location.href.match(/action=pm/gi)){
var allLinks = document.getElementsByTagName("a");
for(var i=0;i<allLinks.length;i++){
if(allLinks[i].href.match(/action=pmview/gi) && allLinks[i].innerHTML.match(/\[URG\]/gi)){
allLinks[i].style.color = "#"+urgMsgColor;
allLinks[i].style.fontWeight = "bold";
allLinks[i].innerHTML = allLinks[i].innerHTML.replace(/\[URG\]/gi, "");
}
}
if(location.href.match(/action=pmsend/gi)){
if(document.postForm.subject.value.match(/\[URG\]/gi)){
document.postForm.subject.value = document.postForm.subject.value.replace(/\[URG\]/gi, "");
}
var newTd1 = document.createElement("td");
newTd1.className = "windowbg";
newTd1.innerHTML = '<font size="2">Urgent</font>';
var newTd2 = document.createElement("td");
newTd2.className = "windowbg";
newTd2.innerHTML = '<input type="checkbox" id="urgentCheck" />';
var newTr = document.createElement("tr");
newTr.appendChild(newTd1);
newTr.appendChild(newTd2);
document.getElementsByName("to")[0].parentNode.parentNode.parentNode.insertBefore(newTr, document.getElementsByName("to")[0].parentNode.parentNode.nextSibling);
function makeUrg(){
document.postForm.subject.value = "[URG]"+document.postForm.subject.value;
}
if(document.addEventListener){
document.postForm.addEventListener('submit', makeUrg, false);
}else{
document.postForm.attachEvent('onsubmit', makeUrg);
}
}
}
-->
</script>
Enjoy!!
~Mala