5, December 2008

An easy way to change the year of your copyright. - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Design and Layout  >  Web Page Design (Moderator: Meth0d)
Topic: An easy way to change the year of your copyright.
« previous next »
Pages: [1] 2 Print

Author 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: Male
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 :

Code:
<?php
$year_start 
2004;//The year when you first created the site
if ( date("Y") == $year_start )
{
    echo 
"Copyright &copy; $year_start MyCompany Inc.";
}
else
{
    echo 
"Copyright &copy; $year_start - " date("Y") . " MyCompany Inc.";
}
?>


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
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: Male
Posts: 100
0 credits
Members referred : 0



« Reply #5 on: Sep 18, 2005, 12:23:38 AM »

I really like Nikolas method Smiley 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: Male
Posts: 8272
42619 credits
Members referred : 3



« Reply #6 on: Sep 18, 2005, 12:33:45 AM »

I really like Nikolas method Smiley 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.

That's true it is not much work, but computing is about not working at all Smiley

I mean if you can automate a proccess then you should do it.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
He's The Man
Novice Spammer
***
Gender: Male
Posts: 100
0 credits
Members referred : 0



« Reply #7 on: Sep 18, 2005, 12:34:48 AM »

Yeah I guess that is true lol. I don't really know much php though so I'm more of a person who would just copy and paste your code Cheesy
Novice Spammer
***
Gender: Male
Posts: 100
346 credits
Members referred : 0



« Reply #8 on: Sep 19, 2005, 11:54:18 PM »

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.
Metal slug addict
*
Posts: 19
114 credits
Members referred : 0


« Reply #9 on: Nov 02, 2005, 09:57:04 PM »

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: Female
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: Male
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...

http://www.dg9.org Visit through proxy , Just Visit...
Partners:
http://www.resume-fix.com Visit through proxy , Free Resumes

Last blog : Archos: Where are you?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6487
39754 credits
Members referred : 374


It's time to use PHP5!


« Reply #13 on: Apr 26, 2006, 12:22:14 PM »

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...
No, the right answer is done by Nikolas:
Code:
<?php
$year_start 
2004;//The year when you first created the site
if ( date("Y") == $year_start )
{
    echo 
"Copyright &copy; $year_start MyCompany Inc.";
}
else
{
    echo 
"Copyright &copy; $year_start - " date("Y") . " MyCompany Inc.";
}
?>

this will update the year without modifications (of course this code should be inside an included file)


Last blog : Just a better Internet portal provided by Google
I wish I was an Oscar winner
**
Posts: 90
560 credits
Members referred : 0


« Reply #14 on: Apr 27, 2006, 12:47:51 AM »

Why not just say
Code:
&copy 2006

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.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6487
39754 credits
Members referred : 374


It's time to use PHP5!


« Reply #15 on: Apr 27, 2006, 01:06:42 AM »

Why not just say
Code:
&copy 2006

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.



Last blog : Just a better Internet portal provided by Google
Community Supporter ?
I am a fanatic. So?
*****
Gender: Male
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...

http://www.dg9.org Visit through proxy , Just Visit...
Partners:
http://www.resume-fix.com Visit through proxy , Free Resumes

Last blog : Archos: Where are you?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6487
39754 credits
Members referred : 374


It's time to use PHP5!


« Reply #17 on: Apr 27, 2006, 07:51:32 AM »

Quote
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


Last blog : Just a better Internet portal provided by Google
Community Supporter ?
I am a fanatic. So?
*****
Gender: Male
Posts: 589
5476 credits
Members referred : 0


www.dg9.org


« Reply #18 on: Apr 27, 2006, 09:25:55 AM »

an easy way to change the year of copyright ... is that the title? I was answering to that...

http://www.dg9.org Visit through proxy , Just Visit...
Partners:
http://www.resume-fix.com Visit through proxy , Free Resumes

Last blog : Archos: Where are you?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6487
39754 credits
Members referred : 374


It's time to use PHP5!


« Reply #19 on: Apr 27, 2006, 09:36:08 AM »

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)


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=96
Tags : php javascript html ftp programming Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] 2 Print 
Webdigity Webmaster Forums  >  Design and Layout  >  Web Page Design (Moderator: Meth0d)
Topic: An easy way to change the year of your copyright.
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 05, 2008, 07:10:13 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 38.003
Total Topics: 7.685
Total Members: 4.472
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: xeroxss

39 Guests, 4 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.