Post by [dmsuperman] on Nov 1, 2004 17:10:08 GMT
Description: This splits the
Hey X, you have X messages, X are new
Nov31....
up and moves it under the menu.
Cross browser compatability: Doesn't work in FireFox
Preview: Click here (Login as test :: test)
Load time: Fast
Code:
All headers
Customizing
Find
and change it to the url of your admin button.
Find
and change it to whatever quick admin links you want.
To remove the large "New PM's" text, just remove:
Hey X, you have X messages, X are new
Nov31....
up and moves it under the menu.
Cross browser compatability: Doesn't work in FireFox
Preview: Click here (Login as test :: test)
Load time: Fast
Code:
<script type="text/javascript">
/*
Code created by [dmsuperman]
You may repost it, but not edit it, without express permission by me
*/
var TD = document.getElementsByTagName("TD");
var total = TD[2].innerHTML.split(" message")[0].split("<A href=\"index.cgi?action=im\">")[1];
var pms = TD[2].innerHTML.split("</A>, ");
if(TD[2].innerHTML.match(" are new")){
var pms = pms[1].split(" are new")[0];
}else if(TD[2].innerHTML.match(" is new")){
var pms = pms[1].split(" is new")[0];
}
var date = TD[2].innerHTML.split("<BR"+">")[1];
if(TD[2].innerHTML.match("Hey, ")){
var name = TD[2].innerHTML.split("Hey, ")[1].split(", you have ")[0];
}
if(TD[2].innerHTML.match("Hey, ")){
var the_center = "Welcome, "+name+"<br /><u>PM Center</u><br />New: <a href=index.cgi?action=im>"+pms+"</a> Total: <a href=index.cgi?action=im>"+total+"</a><br />"+date+" ";
}else{
var the_center = "<center>Welcome, guest<br /><u>PM Center</u><br />Please <a href=index.cgi?action=login>login</a> to check PM's<br />"+date+"</center>";
}
TD[5].innerHTML+="<center>"+the_center+"</center>";
TD[2].style.display="none";
if(TD[2].innerHTML.match("Hey, ")){
if(pms=="0"){
}else{
TD[5].innerHTML+="<br /><a href=index.cgi?action=im><font size=+2>New PM's</font></a>";
}}
if(TD[5].innerHTML.match("admin.gif")){
TD[5].innerHTML+="<center><a href=index.cgi?action=headersfooters>Headers/Footers</a></center>";
}
</script>
All headers
Customizing
Find
admin.gif
and change it to the url of your admin button.
Find
<center><a href=index.cgi?action=headersfooters>Headers/Footers</a></center>
and change it to whatever quick admin links you want.
To remove the large "New PM's" text, just remove:
if(TD[2].innerHTML.match("Hey, ")){
if(pms=="0"){
}else{
TD[5].innerHTML+="<br /><a href=index.cgi?action=im><font size=+2>New PM's</font></a>";
}}