Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[CODE] Online/Offline Legend
Topic Started: May 15 2004, 07:03 PM (92,140 Views)
Brod
Member
 *  
Yeah, can someone help?
Offline Profile Quote Post Goto Top
 
Brod
Member
 *  
...help... please? :(
Offline Profile Quote Post Goto Top
 
ralahinn1
Member Avatar
~~Holy Navy Gun~~
 *   *   *   *   *   *   *  
This is the one I use, it's mainly the one thats been posted before, I have it in my board wrappers, at the top of my footer:
Code:
 
<script>//Online/Offline Legend v2 - By Markup
dir="http://s12.invisionfree.com/Final_Fantasy_Ap/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 align=center><b><font color=green>[ONLINE]</font></b></P>"
found=true
}
if(!found)
sPost.innerHTML+="<P align=center><b><font color=red>[OFFLINE]</font></b></P>"
}
}
</script>

I hope it works for you ^_^
Offline Profile Quote Post Goto Top
 
Brod
Member
 *  
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.
Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
cant get this to work at all,

copied and pasted the code into my IFPB and nothing happens at all.

tried pasting into the footer section, java section and below the <board> section

NOTHING
Offline Profile Quote Post Goto Top
 
reaper the hedeghog
Member
 *   *  
i'm guessing you have to change the "http://z15.invisionfree.com/Goomba_Online_Boards/index.php: at the top to your own forum url.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code Snippets · Next Topic »
Add Reply