Board Logo

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

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: Invision Style Pm Bar  (Read 5436 times)
Conforums Elite
Senior Member

member is offline


Homepage PM

Gender: Male
Posts: 2070
xx Invision Style Pm Bar
« Thread started on: Jul 31st, 2006, 12:30am »

Code submitted by: Zando

Will create a pm bar similar to that used at Invision Styled Boards.
Guest Preview
Member Preview

All Headers
Cross Browser: IE & FF & Opera

<script type="text/javascript">

/*Invision Style PM Bar, By Zando*/

var tbl=document.getElementsByTagName("table")
var tdz=document.getElementsByTagName("td")
var row=tbl[0].insertRow(2);var cell=row.insertCell(0);cell.className="windowbg";cell.height="22px";
if(tbl[0].innerHTML.match(/Welcome Guest/)){
cell.innerHTML="<table border='0' width='100%'><tr><td align='left' width='50%'><font size='1'>Welcome Guest ( <a href='/index.cgi?action=login'>Login</a> | <a href='/index.cgi?action=register'>Register</a> )</font></td><td align='right' width='50%'><font size='1'><a href='/index.cgi?action=reminder'>Forgotten your password?</a></font></td></tr></table>";
if(tdz[2].innerHTML.match(/(\d+) (are|is) new/)){
var pm=RegExp.$1;
cell.innerHTML="<table border='0' width='100%'><tr><td align='left' width='50%'><font size='1'><b>Logged in as: "+cfdisplayname+"</b> ( <a href='/index.cgi?action=logout'>Logout</a> )</font></td><td align='right' width='50%'><font size='1'><a href='/index.cgi?action=profile&username="+cfusername+"'><b>My Controls</b></a> <a href='/index.cgi?action=im'>Inbox ("+pm+")</a> <a href='/index.cgi?action=recent'>View New Posts</a> <a href='/index.cgi?action=mlall'>My Assistance</a></font></td></tr></table>";


Slight error in code --- Fixed by Zando
« Last Edit: Jul 31st, 2006, 3:25pm by Richard » 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