|
Post by Wormopolis on Sept 15, 2010 19:46:51 GMT -8
wormo can you please look at my thread on pbs about this, i put it on my real site and some stuff doesnt work and you worked on those codes I see the info center relocate stuff working.. what is it that isnt working?
|
|
|
Post by tunescool on Sept 15, 2010 19:52:15 GMT -8
i just copied it from pbs 1. the code doesnt work with this code in Code: <script type="text/javascript"> <!-- /* Remove Most Recent Posts */ var td=document.getElementsByTagName("td"); for(e=0;e<td.length;e++) if(td[e].width=="60%" && td[e].vAlign=="top" && td[e].innerHTML.match(/View(.+?)forum./)){ td[e].innerHTML=td[e].innerHTML.replace('View'+RegExp.$1+'forum.',''); } //--> </script> 2. and it multiplies 1000 people by the number of users to the online in the last 24 hours. not the last code, now that ive put on my real site celebnook.proboards.com/index.cgi?4. why is the newest member showing up [deleted] 5. total topics and total posts wont work in the MYOIC with this code in Code: <script type="text/javascript"> <!-- // Delete Total Topics/Posts var test=document.getElementsByTagName("td"); for (i=0; i<test.length;i++) { if (test .innerHTML.match("Info Center")&& !test.innerHTML.match(/TABLE/i) && test.colSpan==2) { chkrw=test.parentNode.nextSibling.nextSibling; chkcl=chkrw.firstChild.nextSibling.getElementsByTagName('font')[0]; chkcl.firstChild.nodeValue=''; chkcl.firstChild.nextSibling.style.display="none"; } } //--> </script>
i use that code still because it deletes it from wormos infocenter relocation too
6. and i still cant get the admins online for last 24 hours
|
|
|
Post by Wormopolis on Sept 16, 2010 10:27:35 GMT -8
1. dont use the code then. if you dont want that to show in the new info center, then dont put a place for it.
2. it looks like its concatenating the members with the guests.. like its trying to add the two numbers together, but its adding them like text not integers. that looks like the author will have to fix that.
3.
4. again, another author contact because its apparently not seeing that in the normal info center. you can try to remove any code above the MYOIC that has to do with the info center but I doubt it will make a difference.
5. dont use that code. if you dont want total topics/posts in the MYOIC, then just dont put a place for it.
|
|
|
Post by tunescool on Sept 16, 2010 11:17:01 GMT -8
1. there isnt a place for it in the myoic, i dont want most recent topics in your relocation
2. i copied my main footers from my test site which it was working on and its still doing the multiplying
4. i just realized it worked on my test site with almost the same codes, ill move stuff around
5 i have the topics and posts in the myoic because i want it there, i dont want it in your relocation
|
|
|
Post by Wormopolis on Sept 16, 2010 13:34:32 GMT -8
1 & 6: see I didnt understand you were talking about MY code there. I thought you were talking about the MYOIC. If you dont want anything to show up in Box1Div, then remove that Div from the headers. the IC relocation wont put anything there if it cant find it.
as for the total users online bug, I actually looked in the hosted source and the script isnt adding them like numbers, but rather text: 5 members 562 guests total online=5562
instead of 567
Chris might have to go in and put in a parseInt() in there to ensure them being integers before adding.
|
|
|
Post by tunescool on Sept 16, 2010 15:52:26 GMT -8
well good news for me, i looked thru the info relocation and found out how to remove *most recent posts* and *pms*. can you remove topics and posts please in your code for me. and now that i added that stuff to your code my users online in the last 24 hours works fine without the multiplying
|
|
|
Post by tunescool on Sept 17, 2010 12:50:39 GMT -8
but current users isnt working now, since your code had something to do with the 24 hour thing maybe this one too?
|
|
|
Post by Wormopolis on Sept 19, 2010 15:32:57 GMT -8
user online in 24 hours still isnt correct. I dont know if Chirs has gotten around to fixing it yet, but he IS aware of it. Total Topics: 3,749 - Total Posts: 4,455 Last Updated Topic - A few signatures I did by tunescool ♫ (Today at 4:20pm) |
so you dont want ANY of that to show up right?
|
|
|
Post by tunescool on Sept 19, 2010 15:54:20 GMT -8
just this Total Topics: 3,749 - Total Posts: 4,455 taken out
|
|
|
Post by Wormopolis on Sept 19, 2010 18:04:29 GMT -8
extract1=tds[n].parentNode.nextSibling.firstChild.nextSibling.getElementsByTagName('td')[0].innerHTML; tmp=extract1.split('<br>'); tmp[2]=""; tmp[0]=tmp[0].replace(/\,/g,'').replace(/Total Topics: (\d+)(\s+)-(\s+)Total Posts: (\d+)/i,''); extract1=tmp.join('<br>');
add in the red line
|
|
|
Post by tunescool on Sept 19, 2010 18:23:35 GMT -8
its still there. and ill need the events bolded
|
|
|
Post by Wormopolis on Sept 19, 2010 21:19:19 GMT -8
dangit.. didnt make the comma removal global. recopy that line again.
|
|
|
Post by tunescool on Sept 19, 2010 22:04:06 GMT -8
still there
|
|
|
Post by Wormopolis on Sept 20, 2010 11:12:42 GMT -8
grr...
make it look like:
extract1=tds[n].parentNode.nextSibling.firstChild.nextSibling.getElementsByTagName('td')[0].innerHTML; tmp=extract1.split(/<br>/i); tmp[2]=""; tmp[0]=tmp[0].replace(/\,/g,'').replace(new RegExp('&nb'+'sp;','g'),'').replace(/Total Topics: (\d+)(\s+?)-(\s+?)Total Posts: (\d+)<br>/i,''); extract1=tmp.join('<br>');
|
|
|
Post by tunescool on Sept 20, 2010 11:29:58 GMT -8
its gone now but theres just a space and then the last updated topic, the space needs to be removed. i didnt realize i didnt have bold tags around the events so thats not a problem anymore
|
|