Post by Malagrond on Sept 2, 2008 13:26:51 GMT -8
Features:
- Current number of messages
- Total number of messages
- Quick jump menu featuring:
--> Inbox
--> Send PM
--> Outbox
--> PM Preferences
--> Modify Profile
--> Most Recent Posts
- Blends with most forum styles; what doesn't blend is found in the editable <style> section.
Preview: pbhelptest.proboards100.com/index.cgi
GLOBAL/MAIN HEADER
Enjoy! ^_^
~Mala
- Current number of messages
- Total number of messages
- Quick jump menu featuring:
--> Inbox
--> Send PM
--> Outbox
--> PM Preferences
--> Modify Profile
--> Most Recent Posts
- Blends with most forum styles; what doesn't blend is found in the editable <style> section.
Preview: pbhelptest.proboards100.com/index.cgi
GLOBAL/MAIN HEADER
<!--
~_-`{PM Bar v3.0 by Malagrond}`-_~
++This header must stay intact to use this script.
http://pbhelpnet.proboards101.com/
//-->
<!-- Begin Pm Bar DIV ++ Do not edit this!! //-->
<div id="pmBarver3">
<table><tr id="topRow" class="titlebg"><td width="85%">PM Bar</td><td width="15%"></td></tr>
<tr><td width='85%'>Welcome, <i>Guest</i>!</td></tr><tr><td width='85%'><span>Please <b><a href='index.cgi?action=login'>Login</a></b> or <b><a href='index.cgi?action=register'>Register</a></b></span></td></table>
</div>
<!-- End Pm Bar DIV ++ Do not edit this!! //-->
<!-- Begin Pm Bar Script ++ Do not edit this!! //-->
<script>
var get = document.getElementsByTagName("TD");
var pmNew = get[2].innerHTML.split(' are new')[0].split(',')[3];
pmNew = pmNew.split(' is new')[0];
var totalPms = get[2].innerHTML.split(' message')[0].split("\, you have ")[1];
totalPms = removeHTMLTags(totalPms);
var topRow = '<table><tr class="titlebg" id="topRow"><td width="85%">PM Bar</td><td width="15%">Quick Jump</td></tr>';
if(pb_username!="Guest"){
if(pmNew==0){
var pmMsg = "no new messages";
} else {
var pmMsg = pmNew+" new messages";
}
document.getElementById("pmBarver3").innerHTML = topRow+"<tr><td width='85%'><span>Welcome, <i>"+pb_displayname+"</i>!</span></td><td width='15%' style='text-align:right;'><select id='jumpMenu' onchange='pmMenuJump()' style='width:100%;'><option value=''>(Select One)</option><option value='pm'>Inbox</option><option value='pmsend'>Send Pm</option><option value='pm&view=2'>Outbox</option><option value='pmprefs'>PM Preferences</option><option value='modifyprofile&user="+pb_username+"'>Modify Profile</option><option value='recent'>Most Recent Posts</option></select></td></tr><tr><td width='85%'><span>You have <a href='index.cgi?action=pm'>"+pmMsg+"</a> ("+totalPms+" total).</span></td><td width='15%' style='text-align:right;'></td></tr></table>";
}
function pmMenuJump(){
location.href = "/index.cgi?action="+document.getElementById("jumpMenu").value;
}
function removeHTMLTags(inputText){
var strInputCode = inputText;
strInputCode = strInputCode.replace(/&(lt|gt);/g, function (strMatch, p1){
return (p1 == "lt")? "<" : ">";
});
var strTagStrippedText = strInputCode.replace(/<\/?[^>]+(>|$)/g, "");
totalPms = strTagStrippedText;
return totalPms;
}
</script>
<!-- End Pm Bar Script ++ Do not edit this!! //-->
<!-- Begin Pm Bar Styles ++ You can edit this. //-->
<style>
#pmBarver3 {
border:1px dashed #000;
width:91%;
position:relative;
left:4%;
padding:3px;
}
#pmBarver3 table {
width:100%;
border:1px solid #000;
padding:1px;
}
#topRow, #topRow td {
padding:3px;
border:1px solid #000;
}
</style>
<!-- End Pm Bar Styles ++ You can edit this. //-->
<!-- End PM Bar v3.0 by Malagrond //-->
Enjoy! ^_^
~Mala