Post by Ross on Aug 3, 2005 2:02:20 GMT -8
Global Footer
This will let you ban specific users from sending/receiving PMs or you can disable the feature altogether
<script type="text/javascript">
<!--
/* disable pms by elindir */
var disable_all="no"; //disable pms for everyone? no or yes
var disabled="(baduser1|baduser2|baduser3)";
var message="This Feature has been Disabled by the Administration.";
// do not edit below
if(pb_username.match(disabled) || disable_all=="yes")
{
var tab=document.getElementsByTagName("table")
for(e=0;e<tab.length;e++)
if(document.location.href.match('action=pm') && (tab[e].cellPadding=="4" || tab[e].cellPadding=="1") && tab[e].innerHTML.match(/titlebg/))
{
var tr=tab[e].getElementsByTagName("tr");
for(j=0;j<tr.length;j++)
tr[j].style.display="none";
var iTitle=tab[e].insertRow(0).insertCell(0);
iTitle.className="titlebg";
iTitle.innerHTML='<span style="font-size: 13px; font-weight: bold;">An Error Has Occurred</span>';
var iMes=tab[e].insertRow(1).insertCell(0);
iMes.className="windowbg";
iMes.vAlign="top";
iMes.innerHTML='<span style="font-size: 13px;">'+message+'</span>';
document.title=document.title.split('-')[0]+'- An Error Has Occurred';
document.getElementsByTagName("font")[1].innerHTML='« An Error Has Occurred »';
}
var td=document.getElementsByTagName("td");
if(td[2].innerHTML.match('you have(.+?)new.')){
td[2].innerHTML=td[2].innerHTML.replace('you have'+RegExp.$1+'new.','');
}
for(r=0;r<td.length;r++)
{
if(td[r].innerHTML.match(/Your Instant Messages/i) && td[r].align=="left" && td[r].width=="40%")
{
td[r].innerHTML=td[r].innerHTML.replace(/Your Instant Messages: (.+?) New: <(.+?)a>/gi,'');
}
}
}
//-->
</script>
Green: Change this to "yes" if you would like to disable the feature for everyone.
Red: These are the Usernames of members not allowed to send/recieve PMs. Seperate each name by a "|" line.
Blue: This is the error message that will be displayed if they manage to get to the PM page.
This will let you ban specific users from sending/receiving PMs or you can disable the feature altogether
<script type="text/javascript">
<!--
/* disable pms by elindir */
var disable_all="no"; //disable pms for everyone? no or yes
var disabled="(baduser1|baduser2|baduser3)";
var message="This Feature has been Disabled by the Administration.";
// do not edit below
if(pb_username.match(disabled) || disable_all=="yes")
{
var tab=document.getElementsByTagName("table")
for(e=0;e<tab.length;e++)
if(document.location.href.match('action=pm') && (tab[e].cellPadding=="4" || tab[e].cellPadding=="1") && tab[e].innerHTML.match(/titlebg/))
{
var tr=tab[e].getElementsByTagName("tr");
for(j=0;j<tr.length;j++)
tr[j].style.display="none";
var iTitle=tab[e].insertRow(0).insertCell(0);
iTitle.className="titlebg";
iTitle.innerHTML='<span style="font-size: 13px; font-weight: bold;">An Error Has Occurred</span>';
var iMes=tab[e].insertRow(1).insertCell(0);
iMes.className="windowbg";
iMes.vAlign="top";
iMes.innerHTML='<span style="font-size: 13px;">'+message+'</span>';
document.title=document.title.split('-')[0]+'- An Error Has Occurred';
document.getElementsByTagName("font")[1].innerHTML='« An Error Has Occurred »';
}
var td=document.getElementsByTagName("td");
if(td[2].innerHTML.match('you have(.+?)new.')){
td[2].innerHTML=td[2].innerHTML.replace('you have'+RegExp.$1+'new.','');
}
for(r=0;r<td.length;r++)
{
if(td[r].innerHTML.match(/Your Instant Messages/i) && td[r].align=="left" && td[r].width=="40%")
{
td[r].innerHTML=td[r].innerHTML.replace(/Your Instant Messages: (.+?) New: <(.+?)a>/gi,'');
}
}
}
//-->
</script>
Green: Change this to "yes" if you would like to disable the feature for everyone.
Red: These are the Usernames of members not allowed to send/recieve PMs. Seperate each name by a "|" line.
Blue: This is the error message that will be displayed if they manage to get to the PM page.