inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Jul 28, 2005 14:51:50 GMT -8
Global FooterThis will add a button next to "Quote, Modify, Delete" to send a private message to the message poster. I know there's already the button in the mini-profile but nobody seems to know it's there. Anyway, here's the code. If you want, you can change the image. <script type="text/javascript"> <!-- /* send pm above post by elindir leave this header intact */
var pmImage="http://www.proboards.com/v4images/buttons/im_new.gif";
// do not edit below var td=document.getElementsByTagName("td"); if(td[5].innerHTML.match(/action=logout/) && document.location.href.match(/action=(display|goto|search2|recent)/) && !document.location.href.match(/action=pm/)){ for(e=0;e<td.length;e++){ if(td[e].width=="20%" && td[e].className.match(/windowb(g|g2)/) && td[e].innerHTML.match(/Joined:/) && td[e].getElementsByTagName("a")[1].href.match(/user=(.+)/)){ var user=RegExp.$1; if(pb_username!=user && td[e+4].getElementsByTagName("img")[0].alt=="Note: It won't show next to your own posts since you don't need to PM yourself*variable change from cookie to pb_username check - wormo
|
|