Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Jan 23, 2006 16:12:45 GMT
Main Footer<script type="text/javascript"> <!-- /* change most users online - ross support.proboards.com */ var newOnline = 20;
if(location.href.match(/\.com\/?(index.cgi)?\??(&action=home)?(#\w+)?$/)) { var td = document.getElementsByTagName('td'); for(i=td.length; i>0; i--) { if(td.item(i-3).className == 'catbg' && td.item(i-3).innerHTML.match(/>Users Online</)) { td.item(i).innerHTML = td.item(i).innerHTML.replace(/(Most users online was )(\d+), /gi,'$1'+ newOnline +', '); break; } } } //--> </script>
|
|
Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Jan 17, 2007 1:07:06 GMT
How about the date of the most users online Ross? How to change it? <script type="text/javascript"> <!-- /* change most users online - ross support.proboards.com */ var newOnline = 20; var newDate = 'Jan 17, 2007, 12:29pm';
if(location.href.match(/\.com\/?(index.cgi)?\??(&action=home)?(#\w+)?$/)) { var td = document.getElementsByTagName('td'); for(i=td.length; i>0; i--) { if(td.item(i-3).className == 'catbg' && td.item(i-3).innerHTML.match(/>Users Online</)) { td.item(i).innerHTML = td.item(i).innerHTML.replace(/(Most users online was )(\d+), (.+?)</gi,'$1'+ newOnline +', '+newDate + '<'); break; } } } //--> </script> That should do it
|
|
Ross
eCreations Staff
Posts: 1,768
|
Post by Ross on Jan 19, 2007 10:36:09 GMT
No problem
|
|
|
Post by lurker on Feb 28, 2008 8:10:47 GMT
How about the date of the most users online Ross? How to change it? <script type="text/javascript"> <!-- /* change most users online - ross support.proboards.com */ var newOnline = 20; var newDate = 'Jan 17, 2007, 12:29pm';
if(location.href.match(/\.com\/?(index.cgi)?\??(&action=home)?(#\w+)?$/)) { var td = document.getElementsByTagName('td'); for(i=td.length; i>0; i--) { if(td.item(i-3).className == 'catbg' && td.item(i-3).innerHTML.match(/>Users Online</)) { td.item(i).innerHTML = td.item(i).innerHTML.replace(/(Most users online was )(\d+), (.+?)</gi,'$1'+ newOnline +', '+newDate + '<'); break; } } } //--> </script> That should do it Please update this to work on version 4.5.
|
|