Print Page | Close Window

Tired of Changing Copyright Year?

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=17700
Printed Date: 29 March 2026 at 10:14am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Tired of Changing Copyright Year?
Posted By: dpyers
Subject: Tired of Changing Copyright Year?
Date Posted: 01 January 2006 at 4:31pm
It's that time of year again when I go around changing the copyright year in the includes for html pages. Don't have to do it for asp pages though as they have this include at the end of the page...
<!--#include virtual="/inc/copyright.asp"-->


/inc/copyright.asp contains this code...
<div class="copyright">Copyright &copy; 2000-<%=Year(Date)%>, CompanyName. All Rights Reserved</div>


CSS class looks like this...
.copyright { font-size: 75%; text-align: center; margin-top: 20px; margin-bottom:10px; }



-------------

Lead me not into temptation... I know the short cut, follow me.



Replies:
Posted By: site master
Date Posted: 09 January 2006 at 12:08pm
never thought about this, i chang the year in the bottom include page


Posted By: ctscott
Date Posted: 09 January 2006 at 2:22pm
i just code in © <%=Year(Date)%><%=Year(Date)%>

-------------
______________________
http://www.cfbtrivia.com" rel="nofollow - College Football Trivia


Posted By: site master
Date Posted: 09 January 2006 at 4:16pm
it will show you the same year all the time...


Posted By: ctscott
Date Posted: 09 January 2006 at 6:25pm

it's the same year all year Smile



-------------
______________________
http://www.cfbtrivia.com" rel="nofollow - College Football Trivia


Posted By: site master
Date Posted: 09 January 2006 at 7:15pm
amm it needs to be the first year the software came out and the currect year no?


Posted By: dpyers
Date Posted: 09 January 2006 at 7:32pm
Better to use  &copy; instead of ©. Works better with XML.

Back in the days before I knew better, I made some sites with .htm/.html home pages. Can't change them now to end in a scripting extension like asp, php, or aspx without having to do a lot of redirects for the search engines. For those sites, I have to annually update includes.

Now, for windows sites, I try to use a .asp extension on all pages that just contain html to cover extingencies like this. The asp processor on the server can handle html so there's no signigicant time lost. With the php processor, it flip-flops between itself anf the windows server html processor so pure html pages take a little longer to render with a php extension.


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: ctscott
Date Posted: 09 January 2006 at 9:17pm
i agree dpyers.  sorry about my post.  i didn't see your "copyright.asp" code at first.....i just saw a scroll bar thinking it was an image and wondering what it was doing there.

-------------
______________________
http://www.cfbtrivia.com" rel="nofollow - College Football Trivia


Posted By: Scotty32
Date Posted: 10 January 2006 at 12:34pm
LOL ive been doing this for .... well as long as i can remember

Unhappy though when i first make a site it has to be static or it'll be "copyright 2006-2006"

so i gotta wait a year before i add my dynamic copyright

i dont tend to have a "copyright.asp" file, i tend to use "footer.asp"


-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: ub3rl337ch3ch
Date Posted: 10 January 2006 at 10:28pm
well you could just do:
 
<%
if year = year(date) then
response.write &copy; & " " & year
else
response.write &copy; & " " & year & "-" & year(date)
end if
%>


Posted By: michael
Date Posted: 10 January 2006 at 10:41pm

It is kinda pointless to do this at all. If you created a page say in 2000 and it says &copy 2000 it remains copyrighted for your life + 70 years. So if you make it another 30 it'll be good to the year 2100 even though it still says 2000. Now that is fact when you register it but from what I recall as long as there is no lawsuit there is little difference between registered and non-registered copyrights.



-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: ub3rl337ch3ch
Date Posted: 10 January 2006 at 10:45pm
methinks we won't still be using the same webpage copyright script in 70 years time.... and that assumes we die right............... now! discussing the longterm (decades) validity of a script in a language that'll no longer be supported in 5 (or less) is rather pointless...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net