Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

195 Days Untill Christmas


Guest

Recommended Posts

You could try replacing (in includes/footer.php)

    <td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

with

    <td class="footer">  <?php echo (GregorianToJD(12, 25, (int)date('Y')) - unixtojd(time())) . DAYS_TILL_CHRISTMAS; ?>  </td>

and adding

define('DAYS_TILL_CHRISTMAS', ' Days Until Christmas');

in includes/languages/english.php (or whatever language).

 

Note: this will give a negative number 12/26 through 12/31 if it is working properly. I haven't tested it.

 

Hth,

Matt

Always back up before making changes.

Link to comment
Share on other sites

This is what I got:

Fatal error: Call to undefined function: gregoriantojd() in /mnt/web_h/d33/s07/b01ddc67/www/post/nfoscomm/catalog/includes/footer.php on line 16

 

Is there some where else it needs to be defined?

 

Thanks

Rolf

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...