lindsayanng Posted September 4, 2008 Posted September 4, 2008 LUCKILY, one of the things that kinda took me a long time to figure out 3 days ago required me to ask for help. I was basically moving the links from the infomation box into the footer and was having issues with a random > Thats good for me because i lost ALL of my work from that night when my husband overwrote it when uploading the html part of the site So this is the code that was working just fine that night: <tr><td align="center" class="smallText" colspan="3"><?php echo ( '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a> |' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a> |' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a> >|' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); ?> </td> </tr> the weird thing is that i just added that code back into my site in the correct place, but its not showing now!!! here is the ENTIRE code for the footer <?php /* $Id: footer.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td align="center" class="smallText" colspan="3"><?php echo ( '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a> |' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a> |' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a> |' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); ?> </td> </tr> <tr> <td height="17" colspan="3" style="border-style: none; border-width: medium"> <p align="center" class="style1"><a href="../index.html"><img src="../home.png" width="233" height="48" border="0"></a><a href="../bio.html"><img src="../bio.png" width="235" height="48" border="0"></a><a href="../contact.htm"><img src="../contact.png" width="239" height="48" border="0"></a></tr></td> <p align="center" style="margin-top: 3; margin-bottom: 3; font-size: 14px; font-family: "Courier New", Courier, mono;"><b> <span class="style18">Copyright 2008 bscphoto.com. All Rights Reserved.</span></b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>All photographs on this website are sole property of Matthew Branscombe and BSCPhoto.com Branscombe Supply Company.</b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>Use of this work for personal or professional applications is unlawful and will result in subsequent penalty. </b> </td> <tr><td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?> </td> </tr> </tr> </table> <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <!-- <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> --> </tr> </table> <?php } ?> </div> any help is appreciated. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
Guest Posted September 4, 2008 Posted September 4, 2008 Well this part is all wrong. <td height="17" colspan="3" style="border-style: none; border-width: medium"> <p align="center" class="style1"><a href="../index.html"><img src="../home.png" width="233" height="48" border="0"></a><a href="../bio.html"><img src="../bio.png" width="235" height="48" border="0"></a><a href="../contact.htm"><img src="../contact.png" width="239" height="48" border="0"></a></tr></td> <p align="center" style="margin-top: 3; margin-bottom: 3; font-size: 14px; font-family: "Courier New", Courier, mono;"><b> <span class="style18">Copyright 2008 bscphoto.com. All Rights Reserved.</span></b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>All photographs on this website are sole property of Matthew Branscombe and BSCPhoto.com Branscombe Supply Company.</b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>Use of this work for personal or professional applications is unlawful and will result in subsequent penalty. </b> </td> <tr><td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?> </td> What are you trying to do? You have colspan="3" but only 1 col. This part is not even in a <td></td> <p align="center" style="margin-top: 3; margin-bottom: 3; font-size: 14px; font-family: "Courier New", Courier, mono;"><b> <span class="style18">Copyright 2008 bscphoto.com. All Rights Reserved.</span></b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>All photographs on this website are sole property of Matthew Branscombe and BSCPhoto.com Branscombe Supply Company.</b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>Use of this work for personal or professional applications is unlawful and will result in subsequent penalty. </b> </td> <tr><td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?> And this part here you closed a </tr> before the </td> <td height="17" colspan="3" style="border-style: none; border-width: medium"> <p align="center" class="style1"><a href="../index.html"><img src="../home.png" width="233" height="48" border="0"></a><a href="../bio.html"><img src="../bio.png" width="235" height="48" border="0"></a><a href="../contact.htm"><img src="../contact.png" width="239" height="48" border="0"></a></tr></td>
lindsayanng Posted September 4, 2008 Author Posted September 4, 2008 ya know what.. i dont know WHAT i am trying to do.. I am NOT trying to have 3 columns.. i used some pre generated code in dreamweaver and stole other parts fromelsewhere. Ok.. i am going to TRY and clean it up a tad. you know that i call you my table guru A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
lindsayanng Posted September 4, 2008 Author Posted September 4, 2008 ok i THINK i got it.. tell me if anything looks messy to you <?php /* $Id: footer.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td height="17" align="center"> <a href="../index.html"><img src="../home.png" width="233" height="48" border="0"></a><a href="../bio.html"><img src="../bio.png" width="235" height="48" border="0"></a><a href="../contact.htm"><img src="../contact.png" width="239" height="48" border="0"></a></tr></td> <tr><td align="center" class="smallText" colspan="3"><?php echo ( '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a> |' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a> |' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a> |' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); ?> </td> </tr> <tr> <td align="center"> <p align="center" style="margin-top: 3; margin-bottom: 3; font-size: 14px; font-family: "Courier New", Courier, mono;"><b> <span class="style18">Copyright 2008 bscphoto.com. All Rights Reserved.</span></b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>All photographs on this website are sole property of Matthew Branscombe and BSCPhoto.com Branscombe Supply Company.</b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>Use of this work for personal or professional applications is unlawful and will result in subsequent penalty. </b> </tr></td> <tr><td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?> </tr> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> <br> <?php if ($banner = tep_banner_exists('dynamic', '468x50')) { ?> <br> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <!-- <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> --> </tr> </table> <?php } ?> </div> A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
Guest Posted September 4, 2008 Posted September 4, 2008 I think you need to take the comments out of around the <td></td> and just put them around the php code. Also, it looks to me like you are still closing a <tr> tag before a td tag here: <tr><td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?> </tr> </td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1">
Guest Posted September 4, 2008 Posted September 4, 2008 You're closing a tr before a td here: <td height="17" align="center"> <a href="../index.html"><img src="../home.png" width="233" height="48" border="0"></a><a href="../bio.html"><img src="../bio.png" width="235" height="48" border="0"></a><a href="../contact.htm"><img src="../contact.png" width="239" height="48" border="0"></a></tr></td>
lindsayanng Posted September 4, 2008 Author Posted September 4, 2008 ok.. i'm on it.. the <td> <tr> rule is one that NEVER sticks in my head, for some reason - bktrain must have said it to me a THOUSAND times and i still can never rememer.. all i can remember is that there IS a rule.. just not WHAT it is. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
sLaV- Posted September 4, 2008 Posted September 4, 2008 ok.. i'm on it.. the <td> <tr> rule is one that NEVER sticks in my head, for some reason - bktrain must have said it to me a THOUSAND times and i still can never rememer.. all i can remember is that there IS a rule.. just not WHAT it is. Anything you open a tag it must be closed in the same way with the last opened tag closed first and first opened tag closed last e.g: <table> <tr> <td> </td> </tr> </table> IS CORRECT <table> <tr> <td> </tr> </td> </table> IS INCORRECT Same goes with text and everything else: <p><b><u>This is some text that is in a paragraph and is bolded and underlined</u></b></p> IS CORRECT <p><b><u>This is some text that is in a paragraph and is bolded and underlined</b></u></p> IS INCORRECT XHTML rocks :D :D
lindsayanng Posted September 4, 2008 Author Posted September 4, 2008 i do understand the theory. My issue is that lots of times, i get caught up and copying and pasting snippets from one site of the site to another, or from dreamweaver to my oscommerce files, which is how all that mess happens. My eyes just arent good enough (yet) to catch those types of errors.. and unfortunately, right now i am at thie point in my "skill" that if it looks ok on the site, and it functions, then i am VERY happy. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
sLaV- Posted September 4, 2008 Posted September 4, 2008 i do understand the theory. My issue is that lots of times, i get caught up and copying and pasting snippets from one site of the site to another, or from dreamweaver to my oscommerce files, which is how all that mess happens. My eyes just arent good enough (yet) to catch those types of errors.. and unfortunately, right now i am at thie point in my "skill" that if it looks ok on the site, and it functions, then i am VERY happy. :lol: lol nice :D :D
Guest Posted September 4, 2008 Posted September 4, 2008 A couple of issues here <p align="center" style="margin-top: 3; margin-bottom: 3; font-size: 14px; font-family: "Courier New", Courier, mono;"><b> <span class="style18">Copyright 2008 bscphoto.com. All Rights Reserved.</span></b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>All photographs on this website are sole property of Matthew Branscombe and BSCPhoto.com Branscombe Supply Company.</b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>Use of this work for personal or professional applications is unlawful and will result in subsequent penalty. </b> You have 4 <p> tags and failed to close any of them. Keep in mind closing them means each one will start its own paragraph or new line. Also this <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>All photographs on this website are sole property of Matthew Branscombe and BSCPhoto.com Branscombe Supply Company.</b> <p align="center" style="margin-top: 3; margin-bottom: 3; color: #000000; font-size: 10px; font-family:; font-family: "Courier New", Courier, mono;"Courier New", Courier, mono;"><b>Use of this work for personal or professional applications is unlawful and will result in subsequent penalty. </b> Note the font-family: font-family. Remove one of them.
Guest Posted September 4, 2008 Posted September 4, 2008 :lol: lol nice :D :D I can tell till I'm blue in the face and it does no good!!!!! :lol: :lol: :lol: :lol: :lol:
lindsayanng Posted September 4, 2008 Author Posted September 4, 2008 that is why you are my tables guru :) anyways.. all that crap was from dreamweaver. I took my husbands code that dreamweaver created in design mode and just copied and pasted so it looked the same throughout the site.. HOWEVER, i started going through his html pages and cleaning up all that. He hated that dreamweaver was throwing browser check errors, and i told him that is INEVITABLE if you do it in design mode. I told him if you want it perfect (which i know i do) that he should let me sit down and clean up everything. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
Guest Posted September 4, 2008 Posted September 4, 2008 When using dreamweaver in code mode by default the auto complete tag is enabled. That can ba annoying at times. You can disable that by clicking edit then preferences. Select code hints and auto complete is in there. You can change what browsers and which versions are checked for browser support by clicking the down arrow on the icon with <> and a check mark. Then click settings and set what you want.
lindsayanng Posted September 4, 2008 Author Posted September 4, 2008 Ahh i didnt know the autocomplete was something i coudl turn off.. THAT is going away ASAP.. As for the browser checks, i dont even use it. i have my webmasters tools on my actual browsers and like to use that.. I just get sooo annoyed with dreamweaver. I USED to be a huge fan.. not so much anymore. A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
Guest Posted September 4, 2008 Posted September 4, 2008 You can shut off the highlighting of html errors by clicking down arrow on the last icon to the right. Its the one on the same row as code, split and design. It looks like a page. Just uncheck highlight incalid html. To change the font size click edit then preferences. Select fonts and change the one for code view.
lindsayanng Posted September 4, 2008 Author Posted September 4, 2008 oh, i KNOW you can shut them off. my husband is just obsessed with his website possibly not working right for someone, so he takes them seriously.. if i wanted to shut them off, and shut him up, i would have to sneak over to his computer and do it when hes not looking :) he doesnt quite get all of the website stuff.. i said matty, an error on IE 2 is NOT a big deal! A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
Guest Posted September 4, 2008 Posted September 4, 2008 Just tell him that worrying about being complaint for ALL browsers is going to give him more of headache than having you on his ass for eating your last peanut butter cup or overwritting all of your files! LOL I just saw that other thread of yours.
burt Posted September 4, 2008 Posted September 4, 2008 You really need to be reducing the number of tables, not adding more...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.