Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Mar 22nd, 2018, 06:54am

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
Dynamic Drive

The Staff

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

member is offline


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

//Oni PM Bar v1.0
//Code Created By HimuraX
TD = document.getElementsByTagName('TD')
TB = document.getElementsByTagName('Table')[0].insertRow(2)
InCell = TB.insertCell(-1)

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>]"
InCell.innerHTML+="["+CurName+"] - [<a href='index.cgi?action=im'><font color=red>You Have New Messages</font></a>]"

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
| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls