Post by Wedge on Apr 12, 2009 1:41:33 GMT -5
Code Name: Simple PM Bar
Creator: Wedge
Preview:
Definition: A basic/simple PM bar
Placement: Global/ Board Headers
What to Edit: Variables
Additional Comments:
Creator: Wedge
Preview:
Definition: A basic/simple PM bar
Placement: Global/ Board Headers
<script type="text/javascript">
/* Simple PM Bar - Wedge*/
var logged = 'Welcome Back,'; // Text before Displayname.
var wlcom = 'Welcome to my ProBoard!'; // Text relacing the above for guests.
var pb_width = '700'; //Width of your forum, in percent or pixels
// No need to edit.
var t = document.getElementsByTagName("td");
if(t[2].innerHTML.match(/you have <.+?>(.+?) (message|messages)<.+?>, (\d+) (are|is) new./i)){
var pm_stats = document.getElementById("pm_stats");
}
document.write('<table width="'+pb_width+'" cellpadding="4" cellspacing="1" align="center" class="bordercolor"><tr><td width="100%" class="catbg" vAlign="top"><font size=2>');
if(!pb_username.match(/^(Guest)$/)){
document.write('<span style="float:left;"><b>'+logged+'</b> <a href="/index.cgi?action=viewprofile">'+pb_displayname+'</a></span><span style="float:right;">Inbox ( Total: <a href="/index.cgi?action=pm"> '+RegExp.$1+'</a> | New: <a href="/index.cgi?action=pm"> '+RegExp.$3+'</a> ) · <a href="/index.cgi?action=recent">View New Posts</a> </span>');
}else{
document.write('<span style="float:left;">'+wlcom+'</span><span style="float:right;">Please <a href="/index.cgi?action=login">Login</a> or <a href="/index.cgi?action=register">Register</a>.</span>');
}
document.write('</font></td></tr></table>');
</script>
What to Edit: Variables
Additional Comments: