|
Post by Jim on Feb 4, 2007 16:42:49 GMT -5
Global Footer
This code will make the Reply and Quote buttons reply to all the users the PM was sent to. So if the PM was sent to admin, user1, user2, and you. When you hit Reply or Quote, your To: field will automatically have all all 4 usernames already in it.
<script> //Reply to All in PMs v1.0
//Copyright 10-25-2005 by ~Wonder //May be reposted anywhere as long as this header remains in tact
//Put in Global Footer if(location.href.match(/action\=pmview/)) { a=document.getElementsByTagName("a"); temp=""; for(i=0;i<a.length;i++) { a[i].href.match(/\[replyall\=(.+)\]/)?a[i].style.display="none":""; temp=RegExp.$1; } for(i=0;i<a.length;i++) { (a[i].href.match(/action\=pmsend&/) && temp.length>0)?a[i].href=a[i].href.replace(/&?to\=\w*/,"")+"&to="+temp:""; } } if("undefined" != typeof(document.postForm) && "undefined" != typeof(document.postForm.to)) { document.postForm.onsubmit=addReplyAll; document.postForm.message.value=document.postForm.message.value.replace(/\[url\]http\:\/\/\[replyall\=.*?\]\[\/url\]/ig,""); } function addReplyAll() { if(document.postForm.nextaction.value=='post') { document.postForm.message.value+="[url]http://[replyall="+document.postForm.to.value+"][/url]"; disable(document.postForm); } } </script>
|
|