Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Oct 21st, 2017, 12:54pm


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: PM Bar  (Read 4725 times)
Richard
Executive Member


member is offline

Avatar




Homepage PM


Posts: 11512
xx PM Bar
« Thread started on: Mar 28th, 2005, 6:59pm »

This code creates a bar underneath the menu bar. This bar will tell you your personal message status.

To see a preview of this code's effects Click Here

Quote:
<script>
//Oni PM Bar v1.0
//Code Created By HimuraX
//[http://animeuni.net]
TD = document.getElementsByTagName('TD')
TD[2].style.display="none"
TB = document.getElementsByTagName('Table')[0].insertRow(2)
InCell = TB.insertCell(-1)
InCell.align='center'
InCell.className='catbg'


if(TD[2].innerHTML.match(/Hey, (.+?), you /i)){
CurName = RegExp.$1
}
if(TD[2].innerHTML.match(/0 are new/i)){
InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'>No New Messages</a>]"
}else if(TD[2].innerHTML.match(/1 is new/i)){
InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'><font color=red>1 New Message</font></a>]"
}else if(TD[2].innerHTML.match(/Guest/i)){
InCell.innerHTML+="[Guest] - [<a href='index.cgi?action=login'>Login</a>] [<a href='index.cgi?action=register'>Register</a>]"
}else{
InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'><font color=red>You Have New Messages</font></a>]"
}
</script>

Submitted by Himura

Edit by Garet - Take out whats in red if you dont want the pm bar text to change to that color when you've recieved a new message. You can also modify whats in blue with a different hex color code so when you get a new message it will highlight that color.
« Last Edit: Jul 26th, 2006, 11:11am by Garet » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls