|
Post by CFP wolf on Sept 23, 2009 1:38:27 GMT -5
This will add a "Report to Admin" link in everyone's posts at the bottom of the miniprofile.
<script> <!-- /*This code has been written by Soul-Divider (http://Xtreeme.proboards22.com PM me for any assistance.) This code should not be posted or modified in any way without my permission. This statement must not be removed.*/
var rName="Report to Admin" //What the link is called var rSubject="Reporting User: " //What the PM is called var rMessage="I am reporting this user for misconduct in the following thread: " //What the first line of the pm is var rUser="admin" //Who recieves the pm (usernames seperated by comma)
var URLtext = escape(location.href); URLtext = URLtext.replace(/&/g,"%26"); URLtext = URLtext.replace(/@/g,"%40"); URLtext = URLtext.replace(/\//g,"%2F"); URLtext = URLtext.replace(/\?/g,"%3F"); URLtext = URLtext.replace(/=/g,"%3D"); var rLocation = URLtext ;
if (location.href.indexOf("action=display") != -1) { tCat = document.getElementsByTagName('TD'); for (i=0;i<tCat.length;i++){ if (tCat.width=="20%" && tCat.innerHTML.match("Posts") && tCat.innerHTML.match("member is")){ tCat.innerHTML+='<center><a href="/index.cgi?action=pmsend&to='+rUser+'&subject='+ rSubject + tCat.all(1).innerText + '&message=' + rMessage + rLocation + '">'+rName+'</a></center>' }}} //--> </script>
Place it in your Global Footer.
|
|