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
Latest News: (loading..)
Edit Footer
Started by autoxtreme, Feb 02 2008 05:43 PM
7 replies to this topic
#1
Posted 02 February 2008 - 05:43 PM
#2
Posted 02 February 2008 - 05:49 PM
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 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 >
"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 >
#3
Posted 02 February 2008 - 06:02 PM
Hi,
Thank you for the quick reply!
The URL is www.autoextreme.co.uk/shop
The code of my footer file is below....
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
Thank you for the quick reply!
The URL is www.autoextreme.co.uk/shop
The code of my footer file is below....
Quote
<?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>
/*
$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
#4
Posted 02 February 2008 - 06:51 PM
MAKE A BACKUP BEFORE MAKING ANY EDITS!!!!
This code:
You do realize that posting an email address on an web page will eventually lead to that address receiving tons of SPAM?

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.
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: me@mysite.com</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?
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 >
"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 >
#5
Posted 02 February 2008 - 08:14 PM
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
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
#6
Posted 02 February 2008 - 08:24 PM
You can change the font like this:
If you wait till you start getting SPAM to take off the email addy, it will to too late.. IMHO
<td align="left"><font face="sans-serif"><b>Phone: 0845 009 5641</b></font></td> <td align="right"><font face="sans-serif"><b>Email: sales@autoextreme.co.uk</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
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 >
"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 >
#7
Posted 02 February 2008 - 08:26 PM
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!
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!
#8
Posted 02 February 2008 - 08:34 PM
You are lucky.
There are SPAMBOTS all over the Internet whose sole purpose is to harvest email addresses for SPAMMERS...
There are SPAMBOTS all over the Internet whose sole purpose is to harvest email addresses for SPAMMERS...
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 >
"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 >









