Admin
Forum Head
The Head Admin[M:0]
Just trying to help people out with coding stuff
Posts: 1,927
|
Post by Admin on Jan 24, 2010 13:11:37 GMT 12
Updated. Code NameLuke's PM bar DescriptionMakes a PM bar which is easy to use. InstructionsPut 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 SupportCB 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.comvar 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 InformationCan't be posted anywhere than here and javacodez.proboards.comOther NotesThis is my first ever PM bar so I hope its good and helpful for users on ProBoards If it doesn't work, please use the code support board. adminnote: Admin Note: [WIAB]
|
|
Lucy
Brand New JGFX Member
[M:0]
Posts: 37
|
Post by Lucy on Jan 24, 2010 14:34:01 GMT 12
Yay you made a JavaScript one! I remember last night you were making that! I wanted to come over and chat but nope you were busy
|
|
|
Post by hbk on Jan 24, 2010 21:41:59 GMT 12
Haha owned. Nice code man.
|
|
|
Post by Chriskarate on Jan 25, 2010 6:45:09 GMT 12
it did not work for me.
|
|
|
Post by hbk on Jan 25, 2010 11:13:25 GMT 12
|
|
Admin
Forum Head
The Head Admin[M:0]
Just trying to help people out with coding stuff
Posts: 1,927
|
Post by Admin on Jan 25, 2010 11:42:24 GMT 12
I'll look into it. It should work though. If you add it onto your site I'll look into the problem but I'm going to make sure the code is indeed still working.
EDIT: Works on the test site I have, make sure it is at the top of your Global Header.
|
|
|
Post by Chriskarate on Jan 26, 2010 11:24:14 GMT 12
ok. it worked.
|
|
Admin
Forum Head
The Head Admin[M:0]
Just trying to help people out with coding stuff
Posts: 1,927
|
Post by Admin on Jan 26, 2010 17:53:52 GMT 12
Good
|
|
Mark
Junior JGFX Member
[M:0]
Posts: 122
|
Post by Mark on Jan 27, 2010 13:19:09 GMT 12
Nice on Luke
|
|
Admin
Forum Head
The Head Admin[M:0]
Just trying to help people out with coding stuff
Posts: 1,927
|
Post by Admin on Jan 28, 2010 9:48:53 GMT 12
Thanks, Updated again, please replace the one you currently have on your forum. v2 should be soon! And it would be good if you could post the site the PM bar is on for updates, then I can tell you that there has been an update
|
|
Admin
Forum Head
The Head Admin[M:0]
Just trying to help people out with coding stuff
Posts: 1,927
|
Post by Admin on Feb 8, 2010 18:49:20 GMT 12
v2 is coming I'm just making an info center which someone requested
|
|