Post by Cam on Sept 9, 2010 2:30:15 GMT
Code Name
Luke's PM bar With staff PM links
Description
Makes a PM bar which is easy to use and has a place where you can put links to staff user profiles.
Instructions
Put this at the TOP of your Global Header. Where its Purple but your site name. Orange needs to be changed to what you want the text to say for the user and pink is the link to the users PM send a message part. The rest doesn't really need to be changed
Ohh and paste this: <a href="link to staff member profile">Name</a> for every new user you add
I option will come soon where it looks better
Browser Support
CB
Code
<br />
<table id="lukejcpmbar" class="bordercolor" 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, eyeon.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+'<p align="right"><b>Need to PM a staff member?</b><a href="link to staff member profile">Name</a></div>';
}
//-->
</script> <br/>
Copyright Information
Can't be posted anywhere than here
Other Notes
This is a kinda v2 of Luke's PM Bar v1.
Luke's PM bar With staff PM links
Description
Makes a PM bar which is easy to use and has a place where you can put links to staff user profiles.
Instructions
Put this at the TOP of your Global Header. Where its Purple but your site name. Orange needs to be changed to what you want the text to say for the user and pink is the link to the users PM send a message part. The rest doesn't really need to be changed
Ohh and paste this: <a href="link to staff member profile">Name</a> for every new user you add
I option will come soon where it looks better
Browser Support
CB
Code
<br />
<table id="lukejcpmbar" class="bordercolor" 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, eyeon.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+'<p align="right"><b>Need to PM a staff member?</b><a href="link to staff member profile">Name</a></div>';
}
//-->
</script> <br/>
Copyright Information
Can't be posted anywhere than here
Other Notes
This is a kinda v2 of Luke's PM Bar v1.