|
Viewing Single Post From: [CODE] Online/Offline Legend
|
|
Brod
|
Feb 17 2008, 03:47 PM
|
- Posts:
- 8
- Group:
- Members
- Member
- #165,570
- Joined:
- February 15, 2008
|
It still doesn't... It only works for regular members, not for Admins/mods
This is the script I use...
- Code:
-
<script>//Online/Offline Legend v2 - By Markup dir="http://z15.invisionfree.com/Goomba_Online_Boards/index.php" home=location.href.lastIndexOf("/")>26?location.href.substr(0,location.href.lastIndexOf("/")):location.href names=[] if(top.location==location) document.write("<IFRAME id=index name=index src="+home+" width=0 height=0 border=0 frameBorder=0></IFRAME>") else { div=document.body.getElementsByTagName("DIV") for(i=0;i<div.length;i++) if(div[i].className=="thin") break a=div[i].getElementsByTagName("A") for(i=0;i<a.length;i++) names[i]=a[i].innerHTML.replace(/<[^>]+>/g,"") parent.updateStatus() } function updateStatus() { td=document.body.getElementsByTagName("TD") for(i=0;i<td.length;i++) if((td[i].className=="post1"||td[i].className=="post2")&&td[i].innerHTML.match("Posts: ")&&td[i].width!="100%") { found=false sPost=td[i].getElementsByTagName("SPAN")[0] names=parent.frames['index'].names for(a=0;a<names.length;a++) if(td[i-2].innerHTML.replace(/<[^>]+>/g,"")==names[a]) { sPost.innerHTML+="<P>Status: <b><font color=green>Online</font></b></P>" found=true } if(!found) sPost.innerHTML+="<P>Status: <b><font color=red>Offline</font></b></P>" } } </script>
Yes, http://z15.invisionfree.com/Goomba_Online_Boards/index.php is the forum I'm applying this code to.
|
|
|