<script>
// Made by Omikron 9861
// Please leave this header intact
// Show the number of new PMs a user has (V2)
var pmtotal, url;
$(".maintab_back").each(function(){
if(this.innerHTML.match(/My Messages \[<strong>(\d+)<\/strong>\]/)) {
pmtotal=RegExp.$1;
} else {
pmtotal=0;
}
});
if(location.href.match(/http:\/\/(\S+)\/index.php/)) {
url=RegExp.$1;
}
document.write("<center><div class='tborder'>You have <a href='http://"+url+"/index.php?action=pm'>"+pmtotal+"</a> new personal messages.</div></center>");
</script>
This code is like V1 except that this one includes a link to the PM page that shows the PMs that a user has. Simply copy-paste the code to your footers, into a sidebar or into a board description.