inherit
99107
0
May 22, 2008 12:55:23 GMT -8
garymac
9
February 2007
garymac
|
Post by garymac on Feb 25, 2007 22:57:48 GMT -8
I see that it is possible to put the start date of a thread under the Thread Starter's name, in the "Started by" cell.
I searched repeatedly, but can't find this code anywhere on here.
Can you please direct me to that?
Thanks in advance.
|
|
inherit
99107
0
May 22, 2008 12:55:23 GMT -8
garymac
9
February 2007
garymac
|
Post by garymac on Mar 1, 2007 21:47:37 GMT -8
This code exists... I've seen it used.
Your help finding it is appreciated.
|
|
inherit
Beware the ever changing head
33588
0
Nov 18, 2023 0:32:44 GMT -8
Ross
19,039
November 2004
elindir
|
Post by Ross on Mar 2, 2007 3:04:10 GMT -8
Heh, took me a while but I found it on one of my test boards - I knew I had seen it somewhere <script type="text/javascript"> <!--
/* show date started in thread listing - ross */
function makeDate(time) { time = time.toString()+'000'; var date = new Date() date.setTime(time); str = '<br />'+date.getDate()+'/'+(date.getMonth() + 1)+'/'+date.getUTCFullYear(); str += ' at '+((date.getHours() > 12)? (date.getHours() - 12) : date.getHours())+':'+((date.getMinutes() < 10)? '0' : '')+date.getMinutes()+((date.getHours() > 12)? 'pm' : 'am'); return str; } if(location.href.match(/\?board=\w+(&page=\d+)?(&moderationmode=\d)?$/)) { var td = document.getElementsByTagName('td'); for(i=0; i<td.length; i++) { if(td.item(i).width.match(/^4(3|8)%$/) && td.item(i).className == 'windowbg' && td.item(i+1).width == '14%') { var tNum = td.item(i).getElementsByTagName('a').item(0).href.split(/&thread=/)[1]; td.item(i+1).firstChild.innerHTML += makeDate(tNum); } } } //--> </script>Goes in the Global Footer
|
|
inherit
99107
0
May 22, 2008 12:55:23 GMT -8
garymac
9
February 2007
garymac
|
Post by garymac on Mar 2, 2007 13:30:32 GMT -8
THANK YOU!!!! I anoint you, "Chairman of the Boards".
|
|