Guest Posted June 12, 2004 Share Posted June 12, 2004 Anyone able to write the code? Would like to put it in place of counter and time. Thanks Rolf Link to comment Share on other sites More sharing options...
♥ecartz Posted June 12, 2004 Share Posted June 12, 2004 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 More sharing options...
Guest Posted June 12, 2004 Share Posted June 12, 2004 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 More sharing options...
burt Posted June 12, 2004 Share Posted June 12, 2004 http://uk.php.net/manual/en/function.gregoriantojd.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.