Post by Ross on May 11, 2007 13:26:27 GMT
Global Footer
<script type="text/javascript">
<!--
/*
Admins/Staff can Bold Thread Titles
Ross - freelancedev.net
Please Do Not Repost
*/
var userReg = /user=(admin|admin2)/i;
var a = document.getElementsByTagName('a');
for(i=0; i<a.length; i++) {
if(a.item(i).innerHTML.match(/^b:/i) && (a.item(i+1).href.match(userReg) || a.item(i-1).href.match(userReg))) {
a.item(i).innerHTML = '<span style="font-weight: bolder!important;">'+a.item(i).innerHTML.replace(/^b:/, '')+'</span>';
}
}
if(location.href.match(/ion=(display|(user)?recent|search2)/)) {
var font = document.getElementsByTagName('font');
for(x=0; x<font.length; x++) {
if(font.item(x).innerHTML.match(/b:/i)) {
font.item(x).innerHTML = font.item(x).innerHTML.replace(/b:/, '');
}
}
}
if(document.postForm && !document.postForm.thread && document.cookie.match(userReg)) {
document.postForm.subject.maxLength = '48';
var span_holder = document.createElement('span');
span_holder.innerHTML += ' Make Bold: <input type="checkbox" id="is_bold" />';
document.postForm.subject.parentNode.appendChild(span_holder);
document.postForm.onsubmit = function() {
if(document.getElementById('is_bold').checked == true)
document.postForm.subject.value = 'b:'+document.postForm.subject.value
}
}
//-->
</script>
Edit the usernames of those who can use this in red, each name should be seperated by a "|" line.
<script type="text/javascript">
<!--
/*
Admins/Staff can Bold Thread Titles
Ross - freelancedev.net
Please Do Not Repost
*/
var userReg = /user=(admin|admin2)/i;
var a = document.getElementsByTagName('a');
for(i=0; i<a.length; i++) {
if(a.item(i).innerHTML.match(/^b:/i) && (a.item(i+1).href.match(userReg) || a.item(i-1).href.match(userReg))) {
a.item(i).innerHTML = '<span style="font-weight: bolder!important;">'+a.item(i).innerHTML.replace(/^b:/, '')+'</span>';
}
}
if(location.href.match(/ion=(display|(user)?recent|search2)/)) {
var font = document.getElementsByTagName('font');
for(x=0; x<font.length; x++) {
if(font.item(x).innerHTML.match(/b:/i)) {
font.item(x).innerHTML = font.item(x).innerHTML.replace(/b:/, '');
}
}
}
if(document.postForm && !document.postForm.thread && document.cookie.match(userReg)) {
document.postForm.subject.maxLength = '48';
var span_holder = document.createElement('span');
span_holder.innerHTML += ' Make Bold: <input type="checkbox" id="is_bold" />';
document.postForm.subject.parentNode.appendChild(span_holder);
document.postForm.onsubmit = function() {
if(document.getElementById('is_bold').checked == true)
document.postForm.subject.value = 'b:'+document.postForm.subject.value
}
}
//-->
</script>
Edit the usernames of those who can use this in red, each name should be seperated by a "|" line.