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
[Solved] User online / offline Status; see whos online and not
Topic Started: Jan 8 2009, 10:27 AM (666 Views)
offroadnortheast
Member
 *  
is there a way of adding a little Green and Red light (example) or user online or offline status in the box next you your posts.

Newbie
STATUS HERE

Group: Members
Posts: 17
Member No.: 316
Joined: 4-January 09

Warn: (0%) ------+
Offline Profile Quote Post Goto Top
 
Tony
Member Avatar
If found, please report missing.

You can try this code, although I'm not sure if it still works.
Online Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
thanks for that but that code doesn't work :(
Offline Profile Quote Post Goto Top
 
LeonardoTZ
Member Avatar
Hakuna Matata
 *   *  
This one works on my test board:
http://if.invisionfree.com/topic/59672/



Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
cheers will test that one.

http://if.invisionfree.com/topic/184680/3/?x=0#post8102422

the above code works for displaying it in the users profile
Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
LeonardoTZ
Jan 9 2009, 06:10 AM
This one works on my test board:
http://if.invisionfree.com/topic/59672/



LOOKS EXACTALY WHAT I WANTED BUT IT DOES NOTHING ON MY FORUM!!!

whoops caps
Offline Profile Quote Post Goto Top
 
LeonardoTZ
Member Avatar
Hakuna Matata
 *   *  
Can you provide a link to your board please? :)
Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
http://z8.invisionfree.com/Off_Road_North_East

you need to log in though.

give me a min and ill turn to login feature off
Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
forced login off
Offline Profile Quote Post Goto Top
 
LeonardoTZ
Member Avatar
Hakuna Matata
 *   *  
From the page source it seems like you removed the breaks from the code making the code all in one line. That might be causing it to not work.
Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
i just copied and pasted stright from the forum
Offline Profile Quote Post Goto Top
 
LeonardoTZ
Member Avatar
Hakuna Matata
 *   *  
That's strange. Can you post your Board Wrappers?
Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
replaced the code to unclude the lines / breaks as bleow

Code:
 

<script>//Online/Offline Legend v2 - By Markup
dir="http://webpost.net/ma/markup/"
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=left>Status: <font color='red'> Online</color></P>"
found=true
}
if(!found)
sPost.innerHTML+="<P align=left>Status: <font color='blue'>offline</color></P>"
}
}
</script>


and still not working
Offline Profile Quote Post Goto Top
 
LeonardoTZ
Member Avatar
Hakuna Matata
 *   *  
I mean all of your codes from your Board Wrappers. From Header & Body and Footers.
Offline Profile Quote Post Goto Top
 
offroadnortheast
Member
 *  
wrappers

Code:
 

delected
Edited by offroadnortheast, Jan 9 2009, 07:10 AM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · zIFBoards Support & Galleries · Next Topic »
Add Reply