|
Post by Wormopolis on May 16, 2011 3:45:37 GMT -8
replace this line
if (tds[t].width=='20%' && tds[t].className.match(/windowbg/) && tds[t].vAlign=='top' && tds[t].innerHTML.match(/posts: (.*?)<\/font>/i)) {
with
if (tds[t].width=='20%' && tds[t].className.match(/mptable/) && tds[t].innerHTML.match(/posts: (.*?)<\/font>/i)) {
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 16, 2011 13:34:18 GMT -8
Done that
|
|
|
Post by Wormopolis on May 16, 2011 21:47:51 GMT -8
this is why remodels make things so difficult...
ok next find these lines
for (br=tds[t].getElementsByTagName('br'), b=0; b<br.length; b++) { if (br.nextSibling && br.nextSibling.nodeName.match(/text/) && br.nextSibling.nodeValue.match(/posts:/i)) { spot=br.nextSibling.nextSibling; break; } }
change to
for (fnt=tds[t].getElementsByTagName('font'), ff=0; ff<fnt.length; ff++) { if (fnt[ff].innerHTML.match(/posts:/i)) { spot=fnt[ff].nextSibling; break; } }
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 17, 2011 0:43:38 GMT -8
Thats done
|
|
|
Post by Wormopolis on May 17, 2011 1:21:40 GMT -8
you changed it in the longevity code not the activity meter code. Im just working with one at a time.
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 17, 2011 1:55:18 GMT -8
ok il do the activity meter code Thanks that has worked
|
|
|
Post by Wormopolis on May 17, 2011 1:59:25 GMT -8
ok I see the activity one working.. but longevity looks to be in the wrong place...
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 17, 2011 2:05:22 GMT -8
Ok how would i fix that
|
|
|
Post by Wormopolis on May 17, 2011 2:25:12 GMT -8
in the longevity code, replace this chunk
for (tds=document.getElementsByTagName('td'), t=0; t<tds.length; t++) { if (tds[t].width=='20%' && tds[t].className.match(/windowbg/) && tds[t].vAlign=='top' && tds[t].innerHTML.match(/joined: (.*?) (\d+)<br>/i)) { datechkM=RegExp.$1; datechkY=RegExp.$2; for (m=0; m<tstArray.length; m++) { if (datechkM.toLowerCase()==tstArray[m]) break; } jDate=new Date(); jDate.setDate(1); jDate.setYear(datechkY); jDate.setMonth(m); cDate=new Date(); timeSpan=Math.round((cDate-jDate)/(1000*60*60*24*30.5)); //timeSpan=(timeSpan<1 ? 1 : timeSpan); longet=parseInt(100*(timeSpan/(monthsAlive*1.0))); notch=(longet>100 ? 100 : longet); for (fnt=tds[t].getElementsByTagName('font'), ff=0; ff<fnt.length; ff++) { if (fnt[ff].innerHTML.match(/posts:/i)) { spot=fnt[ff].nextSibling; break; } }
with this
for (tds=document.getElementsByTagName('td'), t=0; t<tds.length; t++) { if (tds[t].width=='20%' && tds[t].className.match(/mptable/) && tds[t].innerHTML.match(/joined: (.*?) (\d+)<br>/i)) { datechkM=RegExp.$1; datechkY=RegExp.$2; for (m=0; m<tstArray.length; m++) { if (datechkM.toLowerCase()==tstArray[m]) break; } jDate=new Date(); jDate.setDate(1); jDate.setYear(datechkY); jDate.setMonth(m); cDate=new Date(); timeSpan=Math.round((cDate-jDate)/(1000*60*60*24*30.5)); //timeSpan=(timeSpan<1 ? 1 : timeSpan); longet=parseInt(100*(timeSpan/(monthsAlive*1.0))); notch=(longet>100 ? 100 : longet); for (fnt=tds[t].getElementsByTagName('font'), ff=0; ff<fnt.length; ff++) { if (fnt[ff].innerHTML.match(/joined:/i)) { spot=fnt[ff].nextSibling; break; } }
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 17, 2011 2:27:34 GMT -8
Done that its gone again
|
|
|
Post by Wormopolis on May 17, 2011 2:43:30 GMT -8
crap.. now its totally gone.. hold on
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 17, 2011 2:46:20 GMT -8
Ok mate
|
|
|
Post by Wormopolis on May 17, 2011 3:09:12 GMT -8
if (tds[t].width=='20%' && tds[t].className.match(/mptable/) && tds[t].innerHTML.match(/joined: (.*?) (\d+)<br>/i)) {
change to
if (tds[t].width=='20%' && tds[t].className.match(/mptable/) && tds[t].innerHTML.match(/joined: (.*?) (\d+)<\/font>/i)) {
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on May 17, 2011 3:16:24 GMT -8
Done Its back again
|
|
Deleted
Posts: 0
Deleted said great things
|
Post by Deleted on Oct 10, 2011 12:12:33 GMT -8
Hey Wormo Id like another change to this code please Could we make it so that the Warning meter is just under the avatar where it currently says "Warning Level - 25%" and also the Custom Title appears just underneath the Warning Meter in the same area but also can we make it so the "Warning Level - 25%" doesnt show The preview of how it currently looks is here Thanks
|
|