Page 1 of 1

FAQ: How to do yearly update of copyright information

Posted: Sun Sep 11, 2005 1:08 pm
by HarryB
To do an automatic yearly update of the copyright notice on you site, add the following snippet of code to your template's index.php file:

      Copyright © 2005 - 

Re: FAQ: How to do yearly update of copyright information

Posted: Sun Sep 11, 2005 3:07 pm
by bedlam
Handy code ... thanks for sharing! :)

Re: FAQ: How to do yearly update of copyright information

Posted: Thu Sep 22, 2005 2:50 am
by zoomer
might want to start that with a year before the current one, so you don't get 'copyright 2005 - 2005'...

Re: FAQ: How to do yearly update of copyright information

Posted: Thu Sep 22, 2005 4:02 am
by bluesaze
well for now its got be 2005-2005 cos joomla has just started.........

Re: FAQ: How to do yearly update of copyright information

Posted: Fri Sep 23, 2005 9:50 am
by zoomer
bluesaze wrote:well for now its got be 2005-2005 cos joomla has just started.........


perhaps, but a copyright notice on a web page is for the CONTENT, not the back-end software.. mine dates back to 1994.

Re: FAQ: How to do yearly update of copyright information

Posted: Fri Sep 23, 2005 12:48 pm
by HarryB
zoomer wrote:
bluesaze wrote:well for now its got be 2005-2005 cos joomla has just started.........


perhaps, but a copyright notice on a web page is for the CONTENT, not the back-end software.. mine dates back to 1994.


Sorry if I'm confusing folks with the "2005" start date, but what I published here was meant to be an example.  You can use any year you want.  Maybe even make it part of a Joomla module with a parameter that allows you to set the start date!!  ;)

Re: FAQ: How to do yearly update of copyright information

Posted: Fri Oct 21, 2005 1:50 am
by basic612
Just updated my site template with:

Code: Select all

Copyright © <?php $startdate = "2004"; /* set your start year here */ echo $copyright = ( $startdate == date('Y') ? $startdate : $startdate . " - " . date('Y')) ; ?>


I'm sure there's a more elegant way to code this... but works for me for now!  ;)

Re: FAQ: How to do yearly update of copyright information

Posted: Mon Nov 14, 2005 7:53 am
by WillieManillie
I was content before just going into the version.php and statically entering my (c) format.  However, things have changed.  My sites title is now displaying on the footer.  How can this be removed and repleaced with whatever?

Re: FAQ: How to do yearly update of copyright information

Posted: Mon Feb 06, 2006 2:26 am
by basic612
FYI: the footer for the template is is defined in:

/includes/footer.php

and this is included by the default templates in this line:

Code: Select all

<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>


Edit footer.php or your template file itself to display as you would like.