|
Post by Wormopolis on Jul 20, 2009 22:20:10 GMT -8
Browser Tested: IE and FF placement: main footer
creates an option in a PM to make it where recipients cant reply to it.
code:
<script type="text/javascript"> <!-- // No Reply PM option v1.01 // By Wormopolis - wormocodes.proboards.com // Do not repost - keep header intact
if (location.href.match(/action=pm(send|all)/)) { tbl=document.postForm.subject.parentNode.parentNode.parentNode; nwrw=tbl.insertRow(tbl.rows.length-1); nwrw.appendChild(nwrw.previousSibling.firstChild.cloneNode(true)); nwrw.appendChild(nwrw.previousSibling.firstChild.nextSibling.cloneNode(true)); nwrw.cells[0].firstChild.innerHTML="Read Only Message?"; nwrw.cells[1].firstChild.id="readonly"; nwrw.cells[1].firstChild.nextSibling.nextSibling.innerHTML="If this box is checked, recipient cannot reply to PM";
function makeRO() { if (document.getElementById('readonly').checked) postForm.message.value+="\n[!]"; }
if (document.addEventListener) { postForm.addEventListener('submit',makeRO,false); } else { postForm.attachEvent('onsubmit',makeRO); }
} if (location.href.match(/action=pmview/)) { for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds[i].width=="80%" && tds[i].className.match(/windowbg/) && tds[i].getElementsByTagName('tr').length>1 && tds[i].getElementsByTagName('tr')[1].innerHTML.match(/\[\!\]/)) { for (lnks=document.links, w=0; w<lnks.length; w++) { if (lnks[w].href.match(/action=pmsend/) && lnks[w].href.match(/(id|quote)=/)) lnks[w].style.display="none"; } tds[i].innerHTML=tds[i].innerHTML.replace(/\[\!\]/,''); break; } } } // --> </script>
Preview: using it in PM system on this site.
|
|
La_Reina
Not New Member
Posts: 15
La_Reina said 0 great things
|
Post by La_Reina on Mar 1, 2011 9:27:05 GMT -8
Is there a way to have this worked also on the PM TO ALL when using the Admin function? I don't want to A. add another code to drop down all members or B. find all members name and add it to the one pm. ... Did that make sense?
|
|
|
Post by Wormopolis on Mar 1, 2011 10:22:29 GMT -8
change
if (location.href.match(/action=pmsend/)) {
to
if (location.href.match(/action=pm(send|all)/)) {
|
|
La_Reina
Not New Member
Posts: 15
La_Reina said 0 great things
|
Post by La_Reina on Mar 1, 2011 12:48:07 GMT -8
Huggles! You're Awesome. Thank you so very very much.
|
|
|
Post by Wormopolis on Mar 1, 2011 17:44:10 GMT -8
went ahead and added that into the posted code. good suggestion.
|
|
punktestern
Not New Member
Posts: 3
punktestern said 0 great things
|
Post by punktestern on Dec 11, 2012 20:35:56 GMT -8
Would there be any way to just make this apply to "PM to All", by any chance?
|
|
|
Post by Wormopolis on Dec 11, 2012 21:29:39 GMT -8
action=pm(all)
|
|