Post by Luke on Feb 26, 2010 0:58:23 GMT -5
Code Name
Luke's PM bar
Description
Makes a PM bar which is easy to use.
Instructions
Put this at the TOP of your Global Header. Where its Purple but your site name. The rest doesn't really need to be changed
Browser Support
CB
Code
<br />
<table id="lukejcpmbar" class="bordercolour" align="center" width="92%" height="5%" cellpadding="0" cellspacing="1" style="position: relative; bottom: 1px;">
<tr>
<td id="Lukes_Cell" class="menubg" width="100%">
</td>
<td class="menubg" width="50%">
</td>
</tr>
<script type="text/javascript">
<!--
//Luke's PM Bar v1
//Copyright javacodez.proboards.com, proboardpro.proboards.com
var Lukes_Cell=document.getElementById('Lukes_Cell');
if(pb_username=="Guest"){
Lukes_Cell.innerHTML='Hello Guest, please: <a href=\"/index.cgi?action=login\">Login</a> | <a href=\"/index.cgi?action=register\">Register</a>';
}
else if(pb_username!="Guest"){
var Message_Font=document.getElementsByTagName('font').item(2).innerHTML;
var New_Messages=(Message_Font.match(/<\/a>, (.+?) (is|are) new./i))? RegExp.$1 : '';
var Total_Messages=(Message_Font.match(/>(.+?) message(s)?<\/a>/i))? RegExp.$1 : '';
Lukes_Cell.innerHTML='<div align="center">Hello, '+pb_displayname+',hope you having a good day at yoursitename. You currently have <a href="/index.cgi?action=pm">'+New_Messages+'</a> new messages. You have a total of '+Total_Messages+'.</div>';
}
//-->
</script> <br/>
Copyright Information
Can't be posted anywhere than here and javacodez.proboards.com, proboardpro.proboards.com
Other Notes
This is my first ever PM bar so I hope its good and helpful for users on ProBoards If it doesn't work, please use our great help lounge
Unfortunately this does get pushed around by other codes and does go below the advertisement, In v2 we will have the option to keep it like v1's position or put it above the advertisement and not get pushed around. It will also have your forum name come up automatically.
Luke's PM bar
Description
Makes a PM bar which is easy to use.
Instructions
Put this at the TOP of your Global Header. Where its Purple but your site name. The rest doesn't really need to be changed
Browser Support
CB
Code
<br />
<table id="lukejcpmbar" class="bordercolour" align="center" width="92%" height="5%" cellpadding="0" cellspacing="1" style="position: relative; bottom: 1px;">
<tr>
<td id="Lukes_Cell" class="menubg" width="100%">
</td>
<td class="menubg" width="50%">
</td>
</tr>
<script type="text/javascript">
<!--
//Luke's PM Bar v1
//Copyright javacodez.proboards.com, proboardpro.proboards.com
var Lukes_Cell=document.getElementById('Lukes_Cell');
if(pb_username=="Guest"){
Lukes_Cell.innerHTML='Hello Guest, please: <a href=\"/index.cgi?action=login\">Login</a> | <a href=\"/index.cgi?action=register\">Register</a>';
}
else if(pb_username!="Guest"){
var Message_Font=document.getElementsByTagName('font').item(2).innerHTML;
var New_Messages=(Message_Font.match(/<\/a>, (.+?) (is|are) new./i))? RegExp.$1 : '';
var Total_Messages=(Message_Font.match(/>(.+?) message(s)?<\/a>/i))? RegExp.$1 : '';
Lukes_Cell.innerHTML='<div align="center">Hello, '+pb_displayname+',hope you having a good day at yoursitename. You currently have <a href="/index.cgi?action=pm">'+New_Messages+'</a> new messages. You have a total of '+Total_Messages+'.</div>';
}
//-->
</script> <br/>
Copyright Information
Can't be posted anywhere than here and javacodez.proboards.com, proboardpro.proboards.com
Other Notes
This is my first ever PM bar so I hope its good and helpful for users on ProBoards If it doesn't work, please use our great help lounge
Unfortunately this does get pushed around by other codes and does go below the advertisement, In v2 we will have the option to keep it like v1's position or put it above the advertisement and not get pushed around. It will also have your forum name come up automatically.