Post by iPokemon on Sept 4, 2011 20:19:35 GMT -5
<style type="text/css">
.guestlinks {text-transform: lowercase;}
.memberlinks {text-transform: uppercase;}
.stafflinks {border-top: 1px dotted white;}
</style>
<script type="text/javascript"><!--
/*
iPokemon PM Bar v2
created by iPokemon
bytemecodes.proboards.com/
Copyright 2010
Do not distribute or call your own
*/
var staff=/^(admin|staff2|staff3)$/i;
var td = document.getElementsByTagName("td");
if(td[2].innerHTML.match(/, (\d+)\ (are|is) new./i)){
var newPMs = RegExp.$1;}
var totalPMs = td[2].innerHTML.split(' message')[0].split("\, you have ")[1];
document.write('<table id="pm_bar" class="bordercolor" width="92%" align="center" cellpadding="4" cellspacing="1"><tr><td class="windowbg" width="100%" align="center">');
if(pb_username == "Guest"){
document.write('<div style="float:left;">Welcome Guest ( <a href="/index.cgi?action=login" class="guestlinks">Log In</a> | <a href="/index.cgi?action=register" class="guestlinks">Register</a> )</div> <div style="float:right;"><a href="/index.cgi?action=forgotpassword" class="guestlinks">Forgot Password?</a></div>');
} else if(pb_username.match(staff)) {
document.write('<div style="float:left;">Logged in as: <a href="/index.cgi?action=viewprofile" class="stafflinks">'+pb_displayname+'</a> ( <a class="stafflinks" href="/index.cgi?action=logout">Log Out </a> • <a class="stafflinks" href="/index.cgi?action=admin">Admin CP</a> )</div> <div style="float:right;"><a href="/index.cgi?action=modifyprofile&user='+pb_username+'" class="stafflinks">Modify Profile</a> • Inbox (<a class="stafflinks" href="/index.cgi?action=pm">'+newPMs+'</a>) • <a href="/index.cgi?action=recent" class="stafflinks">View New Posts</a></div>');
} else {
document.write('<div style="float:left;">Logged in as: <a href="/index.cgi?action=viewprofile" class="memberlinks">'+pb_displayname+'</a> ( <a class="memberlinks" href="/index.cgi?action=logout">Log Out </a> )</div> <div style="float:right;"><a href="/index.cgi?action=modifyprofile&user='+pb_username+'" class="memberlinks">Modify Profile</a> • Inbox (<a class="memberlinks" href="/index.cgi?action=pm">'+newPMs+'</a>) • <a href="/index.cgi?action=recent" class="memberlinks">View New Posts</a></div>');
}
document.write('</td></tr></table>');
//--></script> [/blockquote]
.guestlinks {text-transform: lowercase;}
.memberlinks {text-transform: uppercase;}
.stafflinks {border-top: 1px dotted white;}
</style>
<script type="text/javascript"><!--
/*
iPokemon PM Bar v2
created by iPokemon
bytemecodes.proboards.com/
Copyright 2010
Do not distribute or call your own
*/
var staff=/^(admin|staff2|staff3)$/i;
var td = document.getElementsByTagName("td");
if(td[2].innerHTML.match(/, (\d+)\ (are|is) new./i)){
var newPMs = RegExp.$1;}
var totalPMs = td[2].innerHTML.split(' message')[0].split("\, you have ")[1];
document.write('<table id="pm_bar" class="bordercolor" width="92%" align="center" cellpadding="4" cellspacing="1"><tr><td class="windowbg" width="100%" align="center">');
if(pb_username == "Guest"){
document.write('<div style="float:left;">Welcome Guest ( <a href="/index.cgi?action=login" class="guestlinks">Log In</a> | <a href="/index.cgi?action=register" class="guestlinks">Register</a> )</div> <div style="float:right;"><a href="/index.cgi?action=forgotpassword" class="guestlinks">Forgot Password?</a></div>');
} else if(pb_username.match(staff)) {
document.write('<div style="float:left;">Logged in as: <a href="/index.cgi?action=viewprofile" class="stafflinks">'+pb_displayname+'</a> ( <a class="stafflinks" href="/index.cgi?action=logout">Log Out </a> • <a class="stafflinks" href="/index.cgi?action=admin">Admin CP</a> )</div> <div style="float:right;"><a href="/index.cgi?action=modifyprofile&user='+pb_username+'" class="stafflinks">Modify Profile</a> • Inbox (<a class="stafflinks" href="/index.cgi?action=pm">'+newPMs+'</a>) • <a href="/index.cgi?action=recent" class="stafflinks">View New Posts</a></div>');
} else {
document.write('<div style="float:left;">Logged in as: <a href="/index.cgi?action=viewprofile" class="memberlinks">'+pb_displayname+'</a> ( <a class="memberlinks" href="/index.cgi?action=logout">Log Out </a> )</div> <div style="float:right;"><a href="/index.cgi?action=modifyprofile&user='+pb_username+'" class="memberlinks">Modify Profile</a> • Inbox (<a class="memberlinks" href="/index.cgi?action=pm">'+newPMs+'</a>) • <a href="/index.cgi?action=recent" class="memberlinks">View New Posts</a></div>');
}
document.write('</td></tr></table>');
//--></script> [/blockquote]
Edit the Red to the staff usernames, separating with the | symbol, with no | at the end. (ex. (admin|admin2|staff1|staff2|)
Edit the Green or remove it. It is CSS, for styling the links. If you do not know CSS, or you don't want any styling to the links, remove the green.
Place wherever you want the PM bar to be located!