|
Post by tunescool on Apr 12, 2010 5:54:34 GMT -8
im trying out the myoic and not sure how to put a code in. last updated board, i put the actual code in the myoic code dont i? the only examples of codes ive seen are affiliate codes in there own tables. how would you do that tunescool3.proboards.com/index.cgi<table id="myoic" border="0" style="display: none;" width="100%" cellspacing="0" cellpadding="0" class="bordercolor"> <tr> <td> <table cellpadding="4" cellspacing="1" border="0" width="100%"> <tr> <td class="titlebg" align="center" colspan="2"> <font class="titletext">Info Center</font> </td> </tr>
<tr> <td class="windowbg" valign="top" width="70%"> <div align=center><font size="1">Last Updated Topic <span id="lastpostname"></span> by <span id="lastpostuser"></span> <span id="lastposttime"></span><br/> </td> </tr> <td> Last Updated Board
<script type='text/javascript'> /* Last Updated board in Info Center Created by CrAzY_J Do not redistribute this code without the creator's permission*/
var Cells = document.body.getElementsByTagName('td'); if( this.location.href.match(/\.com(\/(index\.cgi(#\w+|\?(action=home)?)?)?)?$/) ) { var Pattern = /^Total\sTopics:/; for( var c = Cells.length-1 ; c > 0 ; c -- ) { if( Cells[c].width == '60%' && Pattern.test( Cells[c].firstChild.firstChild.data ) && Cells[c].getElementsByTagName('a')[0] ) { var Board = Cells[c].getElementsByTagName('a')[0].href.split(/board=/)[1].split(/&/)[0]; Cells[c].id = 'starcraft_pwns'; } if( Cells[c].width == '66%' && Cells[c].getElementsByTagName('a')[0].href.match( new RegExp('board='+Board+'$','') ) ) { var BoardLink = Cells[c].getElementsByTagName('a')[0].href var BoardName = document.createTextNode( Cells[c].getElementsByTagName('a')[0].firstChild.firstChild.data ); break; } } var GetS = document.getElementById('starcraft_pwns').firstChild; var Link = document.createElement('a'); Link.href = BoardLink;
Link.appendChild( BoardName ); GetS.appendChild( document.createTextNode('Last Updated Board: ') ); GetS.appendChild( Link ); } </script>
</font> </td> <td class="windowbg" valign="top" width="30%"> <div align="center"><font size="1"> Total Members <span id="totalmem"></span><br/> Please Members <span id="newmem"></span><br/> </td> </tr> <tr> <td class="windowbg" valign="top" width="80%"> <font size="1">There are currently <span id="totalmem"></span> <a href="/index.cgi?action=members"> registered members</a> at Jarly Love.<br/> We would like to welcome <span id="newmem"></span> as the most recent member to the forums.<br/> Upcoming Events: <span id="eventslist"></span></font> </td> <td class="windowbg" valign="top" width="20%"> <font size="1"> You have <a href=/index.cgi?action=pm><span id="yourpms"></span></a> Personal Messages, out of which <a href=/index.cgi?action=pm><span id="yournewpms"></span></a> are new.</font> </td> </tr> </td> </tr> </table> </td> </tr> <tr> <td> <table cellpadding="4" cellspacing="1" border="0" width="100%"> <tr> <td class="catbg" algin="left" colspan="2" width="100%"> <font size="2">Users Online</font> </td> </tr> <table cellpadding="4" cellspacing="1" border="0" width="100%"> <td class="windowbg" valign="middle" width="20%"> <center><font size="1">There are currently <span id="totalonline"></span> member(s) online. Most users online was <span id="mostonline"></span>. </font></center> </td> </tr> <tr> <table cellpadding="4" cellspacing="1" boder="0" width="100%"> <tr> <td class="windowbg" valign="middle" width="20%"> <font size="1"> <span id="guestsonline"></span> Guests <br/> <span id="membersonline"></span> Members<br/> <span id="modsonline"></span> <font color="00FF00">Moderators</font> <br/> <span id="gmodsonline"></span> <font color="0000FF">Global Moderators</font> <br/> <span id="adminsonline"></span> <font color="FF0000">Administrators</font></font> </td> <td class="windowbg" valign="middle" width="60%"> <font size="1"><div align=left"<span id="onlinelist"></span></div></font> </td> <td class="windowbg" valign="middle" width="20%"> <font size="1">Birthdays Today: <span id="totalbdays"></span> <br/> Members Celebrating: <span id="bdayslist"></span> </center></font> </td> </tr> </table> </td> </tr> </table>
|
|
|
Post by Wormopolis on Apr 12, 2010 22:38:29 GMT -8
well the last updated board code looks for an existing cell.. you would have to:
find this line:
GetS.appendChild( Link );
and after it put
document.write(GetS.innerHTML);
|
|
|
Post by tunescool on Apr 12, 2010 23:32:28 GMT -8
this is what happened just some black thing above everything, all i really want is a table around everything, without the myoic. everything with a table but not all the way to the end, like 80% or 18%, todge has been working on it but hasnt doesnt anything for months, just like the ultimate infocenter tunescool3.proboards.com/index.cgi
|
|
|
Post by Wormopolis on Apr 13, 2010 12:50:38 GMT -8
recheck your HTML for the MYOIC. you have some missing <tr> tags
|
|
|
Post by tunescool on Apr 13, 2010 15:15:52 GMT -8
i really have no idea how the tds and trs should be in a table
|
|
|
Post by Wormopolis on Apr 14, 2010 18:21:16 GMT -8
cells go in rows. rows go in tables.
for every cell, you have to have <td></td> surrounding the content. for every row, you have to have <tr></tr> surrounding all of the cells. nothing else can be in the tr tag level. <table></table> surrounds the rows. nothing else can be in the table level.
the browser will automatically put <tbody></tbody> in there for you.
|
|
|
Post by tunescool on Apr 14, 2010 19:42:25 GMT -8
how it look then
|
|
|
Post by Wormopolis on Apr 14, 2010 21:02:55 GMT -8
looking at the source, you lost a td tag and a font tag came outta nowhere...
<td> <script> </script> </td>
is how it should be (with code in between script tags)
|
|
|
Post by tunescool on Apr 14, 2010 23:15:54 GMT -8
can you just write it out for me
|
|
|
Post by Wormopolis on Apr 15, 2010 5:52:16 GMT -8
well.. I dont know what the table you want is supposed to look like so I cant really do the HTML for you. the MYOIC code requires understanding of HTML in order to contsruct a table. Im TRYING to help you understand how tables work so you DONT have to have someone rewrite the table everytime you want to add something new to it (considering your history, that will be in a few days).
Once you get the HTML sorted out, then we can make sure the script is writing to the correct place.
|
|
|
Post by tunescool on Apr 15, 2010 10:33:14 GMT -8
the first table i want to look just like the the infocenter i have now
|
|
|
Post by Wormopolis on Apr 15, 2010 15:29:46 GMT -8
so.. all black with black and blue writing?
|
|
|
Post by tunescool on Apr 15, 2010 18:24:09 GMT -8
i really dont know what youre asking
|
|
|
Post by Wormopolis on Apr 15, 2010 23:30:24 GMT -8
you said like your currently have it. the cell its trying to put stuff in is al black with black writing in it.. but it looks as though the HTML is still messed up.
temporarily remove the script portion and get the HTML tables the way you want them. then we can go back and put in the script part.
|
|
|
Post by Wormopolis on Apr 24, 2010 18:51:51 GMT -8
Did you get the HTML sorted out yet?
|
|