|
Post by (¯`•DregondRahl•._) on Apr 27, 2007 12:22:34 GMT -5
Simple Mod i filled for a request a couple months ago, even i forgot about it. The online offline message can be words, or HTML, or even images.
GLOBAL FOOTER
<script type="text/javascript"> <!-- // Online/Offline Status Mod - Dregond
var on = "Member <font color='34D100'><b>Online</b></font>"; var off = "Member <font color='FF0000'><b>Offline</b></font>";
var td = document.getElementsByTagName("td"); if(location.href.match(/n=(disp|search2|(user)?rece|pmvi|goto|(calendar)?view|viewpro)/)) { for(i = 0; i< td.length; i++){ if(td.width == "20%" && td.className.match(/windowbg/i) && td.innerHTML.match(/(Joined|Posts):/i)){ td.innerHTML = td.innerHTML.replace(/member\sis\soffline/i, off); td.innerHTML = td.innerHTML.replace(/member\sis\s(<b>)?online(<\/b>)?/i, on); } } } //--> </script>
Enjoy :-)
|
|
|
Post by racinfan88 on Apr 27, 2007 18:04:09 GMT -5
I have been looking for this code! Now I found it! Anyway, great code. I love it.
|
|
|
Post by (¯`•DregondRahl•._) on Apr 30, 2007 6:53:11 GMT -5
thankies ^.^
|
|
|
Post by ghotane on May 18, 2007 12:16:59 GMT -5
even i was wondering for this one.. i got it! thank you friend !
|
|
No, it's Cymbals.
Banned
You're not as clever as you think you are.
rofl
Posts: 2,206
|
Post by No, it's Cymbals. on May 22, 2007 16:33:32 GMT -5
sweet code nice job dreggie
|
|
|
Post by nightmare42132 on Aug 25, 2008 11:20:27 GMT -5
what do you have to do if you want to have images because i wan't to use this
|
|
|
Post by RoGeR on Aug 26, 2008 1:53:20 GMT -5
Yeh there's a code that allows you to put online/offline images! BOARD FOOTERS <script type='text/javascript'> //member is online to image //by crazy_j var on="url for online"; var off=url for offline"; var TD=document.body.getElementsByTagName('td'); for(t=0;t<TD.length;t++){ if(TD[t].width=='20%' && TD[t].innerHTML.match(/Posts/)){ TD[t].innerHTML=TD[t].innerHTML.replace(/member is <b>online<\/b>/i,"<img src='"+on+"'>"); TD[t].innerHTML=TD[t].innerHTML.replace(/member is offline/,"<img src='"+off+"'>"); } } </script>
|
|