autoxtreme Posted February 2, 2008 Share Posted February 2, 2008 Hi, How do I change the text in the bottom section of the page? I need to add a phone number and some other information. What code do I need to enter to add the information I need? Thank you Link to comment Share on other sites More sharing options...
germ Posted February 2, 2008 Share Posted February 2, 2008 In a "normal" osC install, it would go in your /catalog/includes/footer.php file. If you post your URL, the contents of the aforementioned file (BETWEEN "CODE" TAGS TO PRESERVE FORMATTING!!!), and tell me where you want the info located at, I'll try to help. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
autoxtreme Posted February 2, 2008 Author Share Posted February 2, 2008 Hi, Thank you for the quick reply! The URL is www.autoextreme.co.uk/shop The code of my footer file is below.... <?php/* $Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 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"><?php echo FOOTER_TEXT_BODY; ?></td> </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> Someone else has previously changed the copyright at bottom part of the site. What I would like to do now is add contact details. Phone number on the left/right and email on the oposite side to the phone number. I would like this in the footer so it can be seen from whatever page a customer is viewing on the site. As for the size of text, I would like a quite big but not TOO big. I would like to do this myself, I just dont have enough knowledge when it comes to adding new code. Thank you :) Link to comment Share on other sites More sharing options...
germ Posted February 2, 2008 Share Posted February 2, 2008 MAKE A BACKUP BEFORE MAKING ANY EDITS!!!! This code: <tr> <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td> </tr> Change to: <tr> <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td> </tr> <!-- new code added 02/02/08 --> <br> <table border="0" cellpadding="0" cellspacing="0" width="50%" align="center"> <tr> <td align="left"><b>Phone: +123.345.7890</b></td> <td align="right"><b>Email: [email protected]</b></td> </tr> </table> <!-- end of added code --> Altering the text to suit your needs, of course. You do realize that posting an email address on an web page will eventually lead to that address receiving tons of SPAM? :unsure: I'm currently working on a contribution that will "hide" email addresses from SPAMBOTS, but I'm not finished with it just yet. I had it on several sites over a 3 or four year period, and never got SPAMMED. It's a Javascript routine that uses a rotating cipher method of obfuscation. I thought I'd mentions it in case you were interested. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
autoxtreme Posted February 2, 2008 Author Share Posted February 2, 2008 Thats great! Thanks a lot! I did not realise having the email on the page would leave me open to spam. I will probably leave it for now and if things start getting bad I will remove the email. How do I edit the style of font used? Is it in the style sheet or do I change it some other way? Sorry about all the basic questions but I am still learning :) Thanks again Link to comment Share on other sites More sharing options...
germ Posted February 2, 2008 Share Posted February 2, 2008 You can change the font like this: <td align="left"><font face="sans-serif"><b>Phone: 0845 009 5641</b></font></td> <td align="right"><font face="sans-serif"><b>Email: [email protected]</b></font></td> You don't have to use a stylesheet definition. If you wait till you start getting SPAM to take off the email addy, it will to too late.. IMHO :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
autoxtreme Posted February 2, 2008 Author Share Posted February 2, 2008 Oh. Maybe i`ll take the email off then! lol I have already added the email address to the "contact us" page and not had any spam come through from that..... Thanks for the help! :) Link to comment Share on other sites More sharing options...
germ Posted February 2, 2008 Share Posted February 2, 2008 You are lucky. There are SPAMBOTS all over the Internet whose sole purpose is to harvest email addresses for SPAMMERS... :lol: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.