snowrabbit Posted November 5, 2009 Posted November 5, 2009 (edited) I was trying to add a post office logo at the bottom of my site above the copyright symbol. I don't know much about php, I added html coding at the bottom of:Includes/footer.php <div align="center"> <a href="#" onclick="javascript:window.open('http://www.canadapost.ca/cpo/mc/default.jsf?LOCALE=en','','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img src="URL/Canada_Post_logo.jpg" border="0" alt="Track your shipment!" style="text-align: center; margin-right: 13px; border: 0px"> </div> But the logo was showed below the copyright symbol! I added the same coding at includes/languages/english.php, ahead of copyright define: define('FOOTER_TEXT_BODY', 'Copyright © '………. It did not work. Can anyone tell me where the coding should be added and what the php code is? Thanks. Edited November 5, 2009 by snowrabbit Quote
multimixer Posted November 5, 2009 Posted November 5, 2009 Can you post a larger section of footer.php including the copyright section and your addition? Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel
snowrabbit Posted November 5, 2009 Author Posted November 5, 2009 (edited) Can you post a larger section of footer.php including the copyright section and your addition? Copyright section is in includes/languages/english.php NOT in the includes/footer.php I added the html code in includes/languages/english.php, just before: define('FOOTER_TEXT_BODY', 'Copyright © '………. It did not work! I added the html code in includes/footer.php at the bottom of the original footer.php, the logo went to below the copyrigh symbol. I want it goes to above the copyright! Edited November 5, 2009 by snowrabbit Quote
multimixer Posted November 5, 2009 Posted November 5, 2009 (edited) Copyright section is in includes/languages/english.php NOT in the includes/footer.php I added the html code in includes/languages/english.php, just before: define('FOOTER_TEXT_BODY', 'Copyright © '………. It did not work! I added the html code in includes/footer.php at the bottom of the original footer.php, the logo went to below the copyrigh symbol. I want it goes to above the copyright! I think you are a little confused about how things work. Go to file footer.php and find this line <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td> Exactly THIS is the copyright section that I mean. It is just calling the text from the language file (english.php) it could be any hardcoded text The position of a define in a laguage file (upper or lower) does not matter for the positioning in the actual php file. Your footer.php has a html structure inside, you need to find the place where you want your addition to have in this structure, not in the language file. If you want to have it above the footer, then you need to place it earlier in the html of footer.php, before the "copyright section" So, ok, post your complete footer.php INCLUDING the addition you made Edited November 5, 2009 by multimixer Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel
snowrabbit Posted November 5, 2009 Author Posted November 5, 2009 I think you are a little confused about how things work. Go to file footer.php and find this line <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td> Exactly THIS is the copyright section that I mean. It is just calling the text from the language file (english.php) it could be any hardcoded text The position of a define in a laguage file (upper or lower) does not matter for the positioning in the actual php file. Your footer.php has a html structure inside, you need to find the place where you want your addition to have in this structure, not in the language file. If you want to have it above the footer, then you need to place it earlier in the html of footer.php, before the "copyright section" So, ok, post your complete footer.php INCLUDING the addition you made Thank you very much for your help, you are so patient! I am quite new in OS, and don't know about php. I did what you told and it worked! Thanks again! Quote
topdisplayusa Posted November 13, 2009 Posted November 13, 2009 correct me if i'm wrong. you can do it in the english.php define(FOOTER_TEXT_BODY', 'your copyright stuffs' <p> your shipping logo); vice versa. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.