Post by ŖЌǾ on Dec 8, 2007 5:19:27 GMT -5
WOW!
Big code for Reverse and I
This code will allow you to Ignore a certain member by a click on his profile...
It will allow you to ignore his Posts and PM's
I would like to really really thanks for the outside help of: The Dog Monster, iAlex and none other than Chris.
Place the code in Global Footer
Previews:
1
2
3
Enjoy
Big code for Reverse and I
This code will allow you to Ignore a certain member by a click on his profile...
It will allow you to ignore his Posts and PM's
I would like to really really thanks for the outside help of: The Dog Monster, iAlex and none other than Chris.
Place the code in Global Footer
Previews:
1
2
3
<script>
<!--
/*
Ignore Certian Member's Posts and PM's
By Reverse Blade and Roger (aka RKO)
http://projekt07.proboards57.com
*/
function ignore(use) {
if(confirm('Are you sure that you want to ignore '+use+'?')==true) {
alert(use+' has been added to your ignore list.');
var ex=new Date('December 25, 6000');
ex=ex.toGMTString();
var other=(document.cookie.match(/IgnorePost=Start(.+?)End/))? RegExp.$1 : '';
document.cookie = 'IgnorePost=StartOne'+use+'Two'+other+'End;expires='+ex;
}
}
function unignore(use) {
if(confirm('Are you sure that you want to stop ignoring '+use+'?')==true) {
alert(use+' has been removed from your ignore list.');
var ex=new Date('December 25, 2010');
ex=ex.toGMTString();
var remove=(document.cookie.match(/IgnorePost=Start(.+?)End/))? RegExp.$1 : '';
document.cookie = 'IgnorePost=Start'+remove.replace('One'+use+'Two+', '')+'End;expires='+ex;
}
}
var d=document.getElementsByTagName('td');
if(location.href.match(/action=viewprofile&user/) && !location.href.match('action=viewprofile&user='+pb_username+'$')){
for(t=0;t<d.length;t++) {
if(d[t].colSpan=='2' && d[t].innerHTML.match(/Send Personal Message/i)) {
var use = (d[t-2].getElementsByTagName('b').item(0).getElementsByTagName('a').item(0).href.match(/user=(.+?)$/))? RegExp.$1 : '';
d[t].getElementsByTagName('b')[0].innerHTML +=' - <a href="javascript:ignore(\''+use+'\');">Ignore</a>/<a href="javascript:unignore(\''+use+'\');">Stop Ignoring</a>';
}
}
}
if(location.href.match(/action=(display|(user)?recent|calendarview|search2|pmview)/) || location.href.match(/index.cgi$/) && document.title.match(/Preview/) && document.postForm){
for(var t=0;t<d.length;t++){
if(d[t].width=='20%' && d[t].className.match(/windowbg(2)?/) && d[t].innerHTML.match(/member is/) && !location.href.match(/viewprofile/)){
var use = (d[t].getElementsByTagName('b').item(0).getElementsByTagName('a').item(0).href.match(/user=(.+?)$/))? RegExp.$1 : '';
if(document.cookie.match('One'+use+'Two')){
d[t+1].innerHTML='You have chosen to block out this user\'s posts and PMs. To unblock them, go into their profile and click on "Stop Ignoring".';
var disp=(d[t].innerHTML.match(/^(.+?)<br\s?\/?>/im))? RegExp.$1 : '';
d[t].innerHTML=disp+' - <b>Blocked</b>';
d[t+1].vAlign="middle";
d[t+1].align="center"
}
}
}
}
//-->
</script>
Enjoy