inherit
52689
0
Nov 1, 2012 0:38:41 GMT -8
Simie
1,078
July 2005
simie
|
Post by Simie on Jul 7, 2006 13:18:23 GMT -8
What this code does is makes the reply button take you to the PM screen, so people PM someone instead of replying. It also removes the quote button, I'll put that back in with quote support in v2. Preview <script type="text/Javascript"> /* Send a PM instead of replying v1 By Simie. repost all you want, just keep this header intact. */
var thread = /THREAD ID/i var pmTo = "USERNAME OF PERSON TO PM TO"; // Person to Pm to var subject = "PM SUBJECT"; // The subject of the PM var message = "MESSAGE"; // Starting message of the PM
if(location.href.match(thread)){ var a = document.getElementsByTagName("a"); for(i=0; i<a.length; i++){ if(a.href.match(/&action=post/)){ a.href="/index.cgi?action=pmsend&to=" +pmTo+ "&subject=" +subject+ "&message=" +message; }} var img = document.getElementsByTagName("img"); for(i=0; i<img.length; i++){ if(img.src.match(/quote\.gif/)){ img.style.display = "none"; }}}
</script>Change the red to the thread ID of the thread you want it to affect. Change the green to the username of the person you want to PM to. Change the Navy to the subject of the PM that the user is sending (Leave blank for none) Change the Yellow to the default message (Leave blank for none) In v2 (if I make one ) I'll make it look more like a form / post. And add quote support. Enjoy!
|
|