FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


footer.php date wrong





Hammy
Hey.. Im using joomla, and i wanted to change the footer.. In the file it says:

Code:
// NOTE - You may change this file to suit your site needs
?>
<div align="center">
   &copy; <?php echo mosCurrentDate( '%Y' ) . ' ' . $GLOBALS['mosConfig_sitename'];?>
</div>

<div align="center">
   <?php echo $_VERSION->URL; ?>
</div>


And on my site it says:

Quote:
Content 2004 Encaged

Powered By: Mambo Design By: Mambozilla.com


Why does it say that the 'Current Date' is 2004 ? Is this the server date?
mathiaus
I just checked and the its not the server time. The function mosCurrentDate must be doing something strange with the date. Either find and paste the function or just change it to the below (the latter being the easier option).
Code:
echo date("Y");

(chnage double quotes to single, When I type single quotes it brings up the page search for some reason? Confused )
Hammy
Hmm.. i edited footer.php but nothing seems to of changed.

It now says

Code:
// NOTE - You may change this file to suit your site needs
?>
<div align="center">
   &copy; <?php echo date( 'Y' ) . ' ' . $GLOBALS['mosConfig_sitename'];?>
</div>


How do i edit the footer of my website in joomla?
devroom
Check your config file.
Did you give the gmt the right setting?
I use joomla too and mine date is working fine. I use the same code <?php echo date('y')?>
Related topics
PHP Tutorials
PHP date() format for atom in php 4
Date wrong on pc
Can frames be a good choice? What then?
phpNuke Register new users Problem Problem
What is the best way to save a date/timestamp in mysql
How To: Easily Save Your Bandwidth Using GZIP
Problems with the PHP date() function
Get week number from date
Whats the problem of my code? Help please
PHP has stopped displaying my nav
Windows Vienna / Windows 7
PHP as site template?
Header problems
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.