Post by Nick on Aug 26, 2008 7:41:41 GMT -8
As you may be wondering, why I am making the v2 instead of Mr. Boeing. Well, we know each other, we are good friends. He gave me permission. If you want to email him and ask, email him at boeing114@gmail.com
So, this is the Top Pm Bar V2. This version I have all the bugs worked out from the previous version. It works faster as well. Then a few editing variables like font size and guest name. Other than that nothing else.
In Top Pm Bar V3, I am planning to have time in it, and some more options like where to place it. Above it all, above menu bar, below it ect. So stay tuned for V3 coming out this September of 08.
Now here is the good part!
Preview: Click Here
GLOBAL HEADERS!
<script>
/*
Top Pm Bar V2
Created by Nick
This code is copyrighted 2008 by
Fastheart's Coding Corperation
and toppmbarv2.proboards105.com/
*/
var fontSize = "2"
var gname = "Guest"
var get = document.getElementsByTagName("TD")
get[2].style.display= "none"
var guestMessage = '<font size='+fontSize+'><center>Welcome '+gname+', Please <a href=index.cgi?action=login>Login</a> or <a href=index.cgi?action=register>Register</a></center></font>'
var pmNew = get[2].innerHTML.split(' are new')[0].split(',')[3]
var memberMessage = '<font size='+fontSize+'><center>Welcome <a href="/index.cgi?action=viewprofile">'+pb_displayname+'</a>, You Have <a href="/index.cgi?action=pm">'+pmNew+' New Message(s)</a>.</center></font>'
var pmBar = document.getElementsByTagName("table")[0].insertRow(0)
var pmCell = pmBar.insertCell(0)
pmCell.className="catbg"
pmCell.innerHTML = memberMessage
if(get[3].innerHTML.match(/Guest/i)){
pmCell.innerHTML = '<center>'+guestMessage+'</center>'
}
</script>
The variable in green, is your font size. That will control the font size for both the guest message and the member message. The recommended amount is 2.
The variable in red, is what the guest will be called. Like this:
Welcome 'guest name', please login or register.
It is set to default, Guest.
So remember to stay tuned for Top Pm Bar V3 coming out this September of 2008!
So, this is the Top Pm Bar V2. This version I have all the bugs worked out from the previous version. It works faster as well. Then a few editing variables like font size and guest name. Other than that nothing else.
In Top Pm Bar V3, I am planning to have time in it, and some more options like where to place it. Above it all, above menu bar, below it ect. So stay tuned for V3 coming out this September of 08.
Now here is the good part!
Preview: Click Here
GLOBAL HEADERS!
<script>
/*
Top Pm Bar V2
Created by Nick
This code is copyrighted 2008 by
Fastheart's Coding Corperation
and toppmbarv2.proboards105.com/
*/
var fontSize = "2"
var gname = "Guest"
var get = document.getElementsByTagName("TD")
get[2].style.display= "none"
var guestMessage = '<font size='+fontSize+'><center>Welcome '+gname+', Please <a href=index.cgi?action=login>Login</a> or <a href=index.cgi?action=register>Register</a></center></font>'
var pmNew = get[2].innerHTML.split(' are new')[0].split(',')[3]
var memberMessage = '<font size='+fontSize+'><center>Welcome <a href="/index.cgi?action=viewprofile">'+pb_displayname+'</a>, You Have <a href="/index.cgi?action=pm">'+pmNew+' New Message(s)</a>.</center></font>'
var pmBar = document.getElementsByTagName("table")[0].insertRow(0)
var pmCell = pmBar.insertCell(0)
pmCell.className="catbg"
pmCell.innerHTML = memberMessage
if(get[3].innerHTML.match(/Guest/i)){
pmCell.innerHTML = '<center>'+guestMessage+'</center>'
}
</script>
The variable in green, is your font size. That will control the font size for both the guest message and the member message. The recommended amount is 2.
The variable in red, is what the guest will be called. Like this:
Welcome 'guest name', please login or register.
It is set to default, Guest.
So remember to stay tuned for Top Pm Bar V3 coming out this September of 2008!