FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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')?>
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

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