Post by ZINC on Jul 11, 2011 12:46:53 GMT 10
Name of code: [CB] PM bar text in nav-bar v2
Cross Browser? Yes
Instructions: You don't have to edit this code, it is already made so all you have to do is add it to your header. This is v2 from the other code called [CB] PM bar text in nav-bar Use well and it looks good!
Whats New? Well the other version didn't have links, now you have links to login or register if your a guest and if your a member, a link to your profile and your messages, outbox, preferences and more The coding is mainly the same but it just has better features etc
Editable? Only edit if you have the slightest clue what you are doing ;D
Preview: lukescodetestsite.proboards.com/index.cgi Go here and look at the nav-bar (the HOME SEARCH etc part.)
Code:
Copyright Information: This is made and copyright to me, Luke. You can not rip, repost or claim as your own! Please do not violate those copyright informations rules
Support: Go here to get support (guests can post in there).
Thanks and enjoy using it, if you need help customizing it etc use the link above
Cross Browser? Yes
Instructions: You don't have to edit this code, it is already made so all you have to do is add it to your header. This is v2 from the other code called [CB] PM bar text in nav-bar Use well and it looks good!
Whats New? Well the other version didn't have links, now you have links to login or register if your a guest and if your a member, a link to your profile and your messages, outbox, preferences and more The coding is mainly the same but it just has better features etc
Editable? Only edit if you have the slightest clue what you are doing ;D
Preview: lukescodetestsite.proboards.com/index.cgi Go here and look at the nav-bar (the HOME SEARCH etc part.)
Code:
<script type="text/javascript">
<!--
//[CB] PM bar text in nav-bar v2
// Made and Copyright Luke - do not repost, claim as own rip etc
// [url]codercommunity.proboards.com [/url]
// No editing Required :)
if(pb_username=="Guest"){
var pmtextl = document.getElementsByTagName('td')[5];
pmtextl.innerHTML += '<BR>Hello Guest, please <a href="/index.cgi?action=login">login</a> or <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 : '';
var pmtext = document.getElementsByTagName('td')[5];
pmtext.innerHTML += '<BR>Hello, <a href="/index.cgi?action=viewprofile">'+pb_username+'.</a> <a href="/index.cgi?action=pm">'+New_Messages+' New messages</a>. '+Total_Messages+' total messages.<BR> <a href="/index.cgi?action=pmsend">Compose a new message</a> | <a href="/index.cgi?action=pm&view=2">Outbox</a> | <a href="/index.cgi?action=pmbackup">Backup Messages</a> | <a href="/index.cgi?action=pmprefs">Personal Messages Preferences</a> ';
}
//-->
</script>
Copyright Information: This is made and copyright to me, Luke. You can not rip, repost or claim as your own! Please do not violate those copyright informations rules
Support: Go here to get support (guests can post in there).
Thanks and enjoy using it, if you need help customizing it etc use the link above