Title: Online/Offline
openhimer - May 16, 2006 04:39 AM (GMT)
Why isn't the Online/Offline button in our post's, or under our names? I think that would look better and it would be more handy.
Candor0 - May 16, 2006 11:19 AM (GMT)
because thats not an IPB option, we will be working on one for where your profile buttons are like in an IPB though.
gamecubechamp12 - May 17, 2006 07:47 PM (GMT)
Actually, it is in IPB. Please check again.
The code can be found here.
http://support.invisionfree.com/index.php?showtopic=51700
gamecubechamp12 - May 17, 2006 07:50 PM (GMT)
I have edited the code so it looks like IPB buttons.
| CODE |
<iframe id='lookup' src='http://sx.invisionfree.com/myBoard/index.php' width='0' height='0' frameBorder='0'></iframe> <script>//Online/Offline Legend - By Markup names=[] if(top.location!=location.href) { 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 parent.updateStatus() } function updateStatus() { td=document.body.getElementsByTagName("TD") for(i=0;i<td.length;i++)if(td[i].firstChild.className=="postdetails"&&td[i].innerHTML.match("Posts: ")) { found=false sPost=td[i].firstChild names=parent.frames['lookup'].names for(a=0;a<names.length;a++) { if(td[i-2].innerHTML.match(names[a])) { sPost.innerHTML+="<img src='http://forums.warppipe.com/style_images/1/p_online.gif'>" found=true } } if(!found)sPost.innerHTML+="<img src='http://forums.invisionboard.com/style_images/1/p_offline.gif'>" } } </script>
|
These are the images used:

B0B - May 18, 2006 01:09 AM (GMT)
Do you put that in footers?
Candor0 - May 18, 2006 01:14 AM (GMT)
It should work in your footers I believe.
gamecubechamp12 - May 18, 2006 01:18 AM (GMT)
Sorry forgot to add footers :lol:
B0B - May 18, 2006 01:43 AM (GMT)
When I put it in there, it doesn't work.
Pulse - May 18, 2006 10:21 PM (GMT)
Now before you go on and reply, think about this.
"Should there be a support question on IF Board Discussions?"
Answer: No,
I suggest you go straight to the Code Support for this question.