Promise Broken New Member
 member is offline
![[avatar]](http://img.photobucket.com/albums/v513/Moshoney_byte/brokenpromisehead.jpg)
Don't say you will if you won't, don't say you do if you don't - It's okay to say you'll try
Joined: Nov 2005 Posts: 48 Karma: 1 |  | PM problem « Thread Started on Nov 14, 2005, 1:13pm » | |
With the current set up one cant see when one has a new PM. you might be using a code to get of it and that's understandable, however - its too difficult to see when one gets a PM and to check them, so some messages go unnoticed. Thus - I've foundd an HTML code, to solve that problem. Just paste it into the global header, and all is solved. just trying to help
Code:<center><script type="text/javascript"> <!-- /* Hi-Tech PM Bar v.1 Created by Naruto [url]http://hatakeforum.proboards30.com/index.cgi[/url] */
// First flash color - Darker color than AfterFlash var BeforeFlash = "#666666"; // Second flash color - Lighter color than BeforeFlash var AfterFlash = "#FF9900";
function Click(pm) { var Function = document.getElementById(pm); if (Function.parentNode.style.display=="none") { Function.parentNode.style.display=""; } else { Function.parentNode.style.display="none"; } } function flash(name) { if (name=="flash0") { document.getElementById("flashtext").style.color=""+BeforeFlash+""; document.getElementById("flashtext").name="flash1"; } else { document.getElementById("flashtext").style.color=""+AfterFlash+""; document.getElementById("flashtext").name="flash0"; } setTimeout("flash(document.getElementById('flashtext').name)",500) } var td = document.getElementsByTagName("td"); if(td[2].innerHTML.match(/<\/a>,\s(\d+)\s/i)) { var NewPM = RegExp.$1 } if(td[2].innerHTML.match(/action=pm">(\d+)\s/i)) { var TotalPM = RegExp.$1 } var PMBar = document.getElementsByTagName("table")[0].insertRow(2).insertCell(0); var PMBar2 = document.getElementsByTagName("table")[0].insertRow(3).insertCell(0); PMBar.className="windowbg"; PMBar.style.padding="3"; if(td[2].innerHTML.match(/Welcome Guest/i)) { PMBar.innerHTML="<font size='1'><b>Welcome Guest</b> ( <a href='index.cgi?action=login'>Login</a> | <a href='index.cgi?action=register'>Register</a> )</font>"; } else if(td[2].innerHTML.match(/, 0 are new./i)) { PMBar.innerHTML="<font color='"+BeforeFlash+"' size='1'>»</font><font size='1'> <a href=javascript:Click(\"pm\");>Check PMs</a> </font><font color='"+BeforeFlash+"' size='1'>No New</font>"; } else { PMBar.innerHTML="<div id=\"flashtext\" name=\"flash0\"><font size='1'>» <a href=javascript:Click(\"pm\");>Check PMs</a> <font size='1'>New</font></font></div>"; flash(document.getElementById("flashtext").name); } PMBar2.className="windowbg2"; PMBar2.style.padding="3"; PMBar2.id="pm"; PMBar2.parentNode.style.display="none"; PMBar2.innerHTML="<table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td><font size='1'>Total PMs: "+TotalPM+" - New: <a href='index.cgi?action=pm'>"+NewPM+"</a></font></td><td align='right'><font size='1'>[ <a href='index.cgi?action=pm'>Inbox</a> ] [ <a href='index.cgi?action=pm&view=2'>Outbox</a> ] [ <a href='index.cgi?action=pmsend'>Compose</a> ] [ <a href='index.cgi?action=pmprefs'>Preferences</a> ]</font></td></tr></table>"; //--> </script> |
|
You can manipulate the colors in the html to better match ur site colors.
|
![[image]](http://img.photobucket.com/albums/v513/Moshoney_byte/promisebrokencharacterbanner.jpg)
![[image]](http://img.photobucket.com/albums/v513/Moshoney_byte/Soleil.jpg)
![[image]](http://img.photobucket.com/albums/v513/Moshoney_byte/River.jpg) |
|