It is currently Tue Jan 06, 2009 6:51 pm (All times are UTC )

 


Forum rules

Please submit all new Tips and Tricks to: http://docs.joomla.org/Category:Tips_and_tricks

This forum section will be closed and removed eventually.



Post new topic Reply to topic  [ 9 posts ] 
Author Message
Posted: Sun Sep 11, 2005 1:08 pm 
User avatar
Joomla! Guru
Joomla! Guru
Online

Joined: Wed Aug 17, 2005 10:30 pm
Posts: 764
Location: Vienna, VA US
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


Top
   
 
Posted: Sun Sep 11, 2005 3:07 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Aug 23, 2005 2:19 pm
Posts: 93
Handy code ... thanks for sharing! :)

_________________
Joomla! - theultraelectromagnetic CMS!


Top
  E-mail  
 
Posted: Thu Sep 22, 2005 2:50 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Sep 22, 2005 1:17 am
Posts: 23
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.


Top
  E-mail  
 
Posted: Thu Sep 22, 2005 4:02 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Mon Sep 05, 2005 6:18 am
Posts: 725
Location: India
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


Top
   
 
Posted: Fri Sep 23, 2005 9:50 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Sep 22, 2005 1:17 am
Posts: 23
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.


Top
  E-mail  
 
Posted: Fri Sep 23, 2005 12:48 pm 
User avatar
Joomla! Guru
Joomla! Guru
Online

Joined: Wed Aug 17, 2005 10:30 pm
Posts: 764
Location: Vienna, VA US
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


Top
   
 
Posted: Fri Oct 21, 2005 1:50 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Sep 02, 2005 3:41 am
Posts: 174
Just updated my site template with:

Code:
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


Top
  E-mail  
 
Posted: Mon Nov 14, 2005 7:53 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Aug 23, 2005 8:23 am
Posts: 87
Location: O'Fallon, MO
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


Top
  E-mail  
 
Posted: Mon Feb 06, 2006 2:26 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Sep 02, 2005 3:41 am
Posts: 174
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:
<?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


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

Quick reply

 



Who is online

Users browsing this forum: oc666 and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group