Topic: An easy way to change the year of your copyright. (Read 3022 times)
Credit Thief
.com pimp
Posts: 1118
0 credits Members referred : 0
« on: Sep 05, 2005, 09:11:23 PM »
So, its new year 2006 and all the web pages on your site say: (C) example.com 2005
An easy way to change all the numbers on the site is to nake "2005" an image, then just upload a new image that says 2006. I saw it on a site. I think it may come in handy.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8272
42619 credits Members referred : 3
« Reply #1 on: Sep 05, 2005, 10:53:23 PM »
If you have php in your host you can do something like this :
Novice Spammer
Posts: 100
103 credits Members referred : 0
« Reply #2 on: Sep 13, 2005, 04:26:51 PM »
Nikolas's method would be easier. I dont know why it would be a hastle it only happens once a year heh.
Forum's official wizad
Where are my glasses?
Posts: 21
136 credits Members referred : 0
« Reply #3 on: Sep 16, 2005, 12:39:32 AM »
how is changing an image different from changing an include file? If you had to change every page it would take forever, but one would assume that you wouls have a php or server side include of some sort for that meaning that you only have to change one file... and yes, the php method is even better because you dont have to do anything.
I wouldn't call it a hassle, but you could still forget
Atari ST fan
Posts: 7
0 credits Members referred : 0
« Reply #4 on: Sep 16, 2005, 11:14:04 PM »
Ya, that could work or you could just go into your header/global file and change it.
He's The Man
Novice Spammer
Gender:
Posts: 100
0 credits Members referred : 0
« Reply #5 on: Sep 18, 2005, 12:23:38 AM »
I really like Nikolas method I've never thought of doing it with php. I guess having to change it once a year isn't much work anyway though lol.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8272
42619 credits Members referred : 3
That is a great way to save some time and effort. I usually forget to change it also, this way it will be done automatically.
yes it will save a lot of time, that is why im going to add it to my latest site.
thanks for that info guys
Spam is yummy.
Gender:
Posts: 212
30 credits Members referred : 0
Nothing Last Forever...
« Reply #10 on: Mar 27, 2006, 01:29:10 AM »
You can also Ctrl + F all "2005" in your code and replace with "2006"...I ve done it in DW and worked just fine.
...Even cold November Rain
Hehe. I made your website....
Posts: 83
178 credits Members referred : 0
PeacefulParadox.com
« Reply #11 on: Apr 11, 2006, 07:16:52 AM »
I just say "2005 and onwards". That way I don't have to change it every year. And it does not invalidate your copyright. Even if you do not put a copyright notice. Your work is still automatically copyrighted by default (at least that is the way it is in the United States).
Community Supporter?
I am a fanatic. So?
Gender:
Posts: 589
5476 credits Members referred : 0
www.dg9.org
« Reply #12 on: Apr 26, 2006, 05:19:58 AM »
php include is the way to go... as simple as making a "copyright.php" file then type a formatted html text in there for the year, then on the main site page use the include for the copyright.php file... every year you just FTP the new copyright.php file... less hassle and no php programming at all...
php include is the way to go... as simple as making a "copyright.php" file then type a formatted html text in there for the year, then on the main site page use the include for the copyright.php file... every year you just FTP the new copyright.php file... less hassle and no php programming at all...
Sure, it won't update every year, but is it that much of a hassle? Unless you have a site (like a forum) with hundreds of pages.
The question was how to update the year automaticly... and why not using this simple code for websites with only a few pages? Look how many websites are not updated at 1st jan. of a new year? (or much later like this website lol) I go further on my sites, I use the file modification date to show the last change date.
Community Supporter?
I am a fanatic. So?
Gender:
Posts: 589
5476 credits Members referred : 0
www.dg9.org
« Reply #16 on: Apr 27, 2006, 06:25:10 AM »
Quote
The question was how to update the year automaticly...
actually no, the question is:
Quote
An easy way to change all the numbers on the site is to nake "2005" an image, then just upload a new image that says 2006. I saw it on a site. I think it may come in handy.
And we can suggest anything that could be a possible solution... Im not saying Nikolas was wrong, In a way my answer is actually agreeing to his suggestions, although I pointed another way too, .. also you can save Nikolas work as a seperate PHP file and then use a php include to all the pages that would require the copyright rule from that PHP script and everything will be a whole lot easier dont you think?
So that means php is the answer, a php include is the way to go, as I had said...
The question was how to update the year automaticly...
actually no, the question is:...
You are repeting again what aother people already said (like in other posts from you), according my opion and the title of this thread its about an automatic update. point
an easy way to change the year of copyright ... is that the title? I was answering to that...
yes, easy = automatic
where are talking here about internet... but if you like to give us some usefull content than post here your client site (javascript) solution. (based on the script above)