Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding Information bythe footer


Guest

Recommended Posts

Posted

Basically I want to add the following disclaimer in the footer, so I created this DEFINE in english.php

 

define('FOOTER_APPLE_DISCLAIMER', 'ipodnerds.com is in no way associated with Apple Computer, Inc. 'Apple' is a trademark of Apple Computer, Inc., registered in the U.S. and other countries. 'iPod' is a registered trademark of Apple Computer, Inc. Any reference to a trademark, trade name or service mark of another company is used either with permission or as a method of fully describing and/or comparing a commercially available product or service.');

 

Then from footer.php I added:

 

echo FOOTER_APPLE_DISCLAIMER

 

The site goes blank after this. Whats the right way for me to do this?

 

Thanks,

Eric

Posted
consider the ' wrapped around Apple and iPod

 

Thanks... Still havent figured this out. I implemented what I needed in a really crappy way. Take a look at this footer.php:

 

Works, but I know it could be done better.

 

<?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 (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"></td>
 </tr>
</table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>		
<td align="center" class="smallText">
The iPod Techs, Inc - (ipodnerds.com) is in no way associated with Apple Computer, Inc.<br>Apple is a trademark of Apple Computer, Inc., registered in the U.S. and other countries.<br>iPod is a registered trademark of Apple Computer, Inc.
<P>

<?php
/*
 The following copyright announcement can only be
 appropriately modified or removed if the layout of
 the site theme has been modified to distinguish
 itself from the default osCommerce-copyrighted
 theme.

 For more information please read the following
 Frequently Asked Questions entry on the osCommerce
 support site:

 http://www.oscommerce.com/community.php/faq,26/q,50

 Please leave this comment intact together with the
 following copyright announcement.
*/

 echo FOOTER_TEXT_BODY
?>
</td>
 </tr>
</table>
</div>

Posted

Your english.php code from first post was OK, worked a treat when 'Apple' and 'iPod' was replaced with Apple and iPod.

 

in footer.php replace [echo FOOTER_TEXT_BODY] with [echo FOOTER_APPLE_DISCLAIMER]

one-click installation..

Dave's info

Posted
Your english.php code from first post was OK, worked a treat when 'Apple' and 'iPod' was replaced with Apple and iPod.

 

in footer.php replace [echo FOOTER_TEXT_BODY] with [echo FOOTER_APPLE_DISCLAIMER]

 

Thanks. I went back to the clean code. Here's the def:

define('FOOTER_APPLE_DISCLAIMER', 'The iPod Techs, Inc - (ipodnerds.com) is in no way associated with Apple Computer, Inc.<br>Apple is a trademark of Apple Computer, Inc., registered in the U.S. and other countries.<br>iPod is a registered trademark of Apple Computer, Inc.');

 

Works great. I can't believe I missed the original 'Apple' and 'iPod'

 

Here's the last bit necessary to clean up the code... I'm using a <P> to insert a space between the text footer and the bottom of the page so that my disclaimer text isn't directly sitting on the page edge. Take a look:

<?php
 echo FOOTER_APPLE_DISCLAIMER  
?>
</td>
 </tr>
</table>
<P>
</div>

 

What is the right way to do this?

 

Regards,

Eric

Posted

did a <br><br> in the INCLUDE.... There has to be a better linefeed method.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...