FAQ: How to do yearly update of copyright information

Moderator: mcsmom

Post Reply
User avatar
HarryB
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Wed Aug 17, 2005 10:30 pm
Location: Vienna, VA US

FAQ: How to do yearly update of copyright information

Post by HarryB » Sun Sep 11, 2005 1:08 pm

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 - 
If you need a helping hand, use the one at the end of your own arm.
www.hrpr.com

User avatar
bedlam
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Tue Aug 23, 2005 2:19 pm
Contact:

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

Post by bedlam » Sun Sep 11, 2005 3:07 pm

Handy code ... thanks for sharing! :)
Joomla! - theultraelectromagnetic CMS!

User avatar
zoomer
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Sep 22, 2005 1:17 am

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

Post by zoomer » Thu Sep 22, 2005 2:50 am

might want to start that with a year before the current one, so you don't get 'copyright 2005 - 2005'...
i am who i am, but most times i don't even know who that is.

User avatar
bluesaze
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 138
Joined: Mon Sep 05, 2005 6:18 am
Location: India
Contact:

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

Post by bluesaze » Thu Sep 22, 2005 4:02 am

well for now its got be 2005-2005 cos joomla has just started.........
A. N. Jacob-New
The Tech & Design Blog http://www.Clazh.com

User avatar
zoomer
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Sep 22, 2005 1:17 am

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

Post by zoomer » Fri Sep 23, 2005 9:50 am

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.
i am who i am, but most times i don't even know who that is.

User avatar
HarryB
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Wed Aug 17, 2005 10:30 pm
Location: Vienna, VA US

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

Post by HarryB » Fri Sep 23, 2005 12:48 pm

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!!  ;)
If you need a helping hand, use the one at the end of your own arm.
www.hrpr.com

User avatar
basic612
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Sep 02, 2005 3:41 am

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

Post by basic612 » Fri Oct 21, 2005 1:50 am

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!  ;)
"A lie can travel halfway around the world while the truth is putting on its shoes”, said Mark Twain. Modern communications help the lie travel even further, although Velcro having replaced lace-ups, the truth is not all that slow anymore in getting ready – mainly thanks to the internet.
Dr S Bleher

User avatar
WillieManillie
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Tue Aug 23, 2005 8:23 am
Location: O'Fallon, MO
Contact:

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

Post by WillieManillie » Mon Nov 14, 2005 7:53 am

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?
Steve Douglas
Net-Net Tech, LLC
http://www.netnettech.com

User avatar
basic612
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Sep 02, 2005 3:41 am

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

Post by basic612 » Mon Feb 06, 2006 2:26 am

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.
"A lie can travel halfway around the world while the truth is putting on its shoes”, said Mark Twain. Modern communications help the lie travel even further, although Velcro having replaced lace-ups, the truth is not all that slow anymore in getting ready – mainly thanks to the internet.
Dr S Bleher


Post Reply