This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > January 2005 > Copyright Date Script or Snippet





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Copyright Date Script or Snippet
Chip off the O'l Proc

2005-01-21, 12:16 pm

I had a snippet or extension that automatically corrected the year for
copyright statements. I can't find it now.
Anyone got an idea where I can find it?
Thanks,
Chip
Chip off the O'l Proc

2005-01-21, 12:16 pm

Never mind- read the earlier post about snippets here:
http://www.dwfaq.com/Snippets/
and found what I was looking for.
Sorry to have a bother...
ttfn

Chip off the O'l Proc wrote:
> I had a snippet or extension that automatically corrected the year for
> copyright statements. I can't find it now.
> Anyone got an idea where I can find it?
> Thanks,
> Chip

Dan Vendel *GOF*

2005-01-21, 12:16 pm

Chip off the O'l Proc wrote:

> I had a snippet or extension that automatically corrected the year for
> copyright statements. I can't find it now.
> Anyone got an idea where I can find it?
> Thanks,
> Chip


Use SSI:
http://www.htmlgoodies.com/beyond/s...mes.html#config

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml or call/chat me via
Skype ID: danvendel, but DON'T ask questions that you can ask here! (get
Skype at http://skype.com)
Formmail tutorial: http://www.proformica.com/formmail-tutorial.shtml
Nested table demo: http://www.proformica.com/nested-table-demo.shtml
Basic HTML bulk mail tutorial: http://www.proformica.com/bulkmail.shtml
Search engine optimization: http://www.proformica.com/seo.shtml
Chip off the O'l Proc

2005-01-21, 12:16 pm

Chip off the O'l Proc wrote:
> Never mind- read the earlier post about snippets here:
> http://www.dwfaq.com/Snippets/
> and found what I was looking for.
> Sorry to have a bother...

Meant to say, Sorry to be a bother.

I have plenty of bothers already but can't seem to find a way to get rid
of most of them...
Chip
Dan Vendel *GOF*

2005-01-21, 12:16 pm

Chip off the O'l Proc wrote:

> Sorry to have a bother...


...or a siser?
--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml or call/chat me via
Skype ID: danvendel, but DON'T ask questions that you can ask here! (get
Skype at http://skype.com)
Formmail tutorial: http://www.proformica.com/formmail-tutorial.shtml
Nested table demo: http://www.proformica.com/nested-table-demo.shtml
Basic HTML bulk mail tutorial: http://www.proformica.com/bulkmail.shtml
Search engine optimization: http://www.proformica.com/seo.shtml
Chip off the O'l Proc

2005-01-21, 12:16 pm

Dan,
Now that you mention it, isn't asp a better cleaner solution?
I liked this snippet:
http://www.dwfaq.com/Snippets/snipp....asp?SnipID=261

The code in it's entirety:
© <%= Year(Now()) %>

Is there a problem of servers or browsers not supporting that?

Dan Vendel *GOF* wrote:
> Chip off the O'l Proc wrote:
>
>
>
> Use SSI:
> http://www.htmlgoodies.com/beyond/s...mes.html#config
>

Dan Vendel *GOF*

2005-01-21, 12:16 pm

Chip off the O'l Proc wrote:

> Now that you mention it, isn't asp a better cleaner solution?


No idea. Asp is either a fish or a tree in Swedish. That's about as much
I know about it.
Flattered you asked, though.

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml or call/chat me via
Skype ID: danvendel, but DON'T ask questions that you can ask here! (get
Skype at http://skype.com)
Formmail tutorial: http://www.proformica.com/formmail-tutorial.shtml
Nested table demo: http://www.proformica.com/nested-table-demo.shtml
Basic HTML bulk mail tutorial: http://www.proformica.com/bulkmail.shtml
Search engine optimization: http://www.proformica.com/seo.shtml
Chip off the O'l Proc

2005-01-21, 7:15 pm

Actually, I don't know anything about asp either.
I'm just trying to make clean code.
Seems you can't just paste an asp command into an html document and
expect it to work.
I guess I'm back to Javascript or the SSI.
Thanks,
chip

Dan Vendel *GOF* wrote:
> Chip off the O'l Proc wrote:
>
>
>
> No idea. Asp is either a fish or a tree in Swedish. That's about as much
> I know about it.
> Flattered you asked, though.
>

P@tty

2005-01-21, 7:15 pm


>
> ..or a siser?


Getting pretty witty with the English jokes there, GOF. :-D


--
Patty Ayers | www.WebDevBiz.com
Free Articles on the Business of Web Development
Web Design Contract, Estimate Request Form, Estimate Worksheet
--


Dan Vendel *GOF*

2005-01-21, 7:15 pm

Chip off the O'l Proc wrote:

> Actually, I don't know anything about asp either.
> I'm just trying to make clean code.
> Seems you can't just paste an asp command into an html document and
> expect it to work.
> I guess I'm back to Javascript or the SSI.


Look here: http://proformica.com/time.shtml

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml or call/chat me via
Skype ID: danvendel, but DON'T ask questions that you can ask here! (get
Skype at http://skype.com)
Formmail tutorial: http://www.proformica.com/formmail-tutorial.shtml
Nested table demo: http://www.proformica.com/nested-table-demo.shtml
Basic HTML bulk mail tutorial: http://www.proformica.com/bulkmail.shtml
Search engine optimization: http://www.proformica.com/seo.shtml
Chip off the O'l Proc

2005-01-21, 7:15 pm

So if I just change the page type to .shtml and stick that code in it
will probably work on most servers?
I've used alot of SSI just never with this particular client. Never
made it work and abandoned it for DW Libraries.

And BTW no sisers either...

Dan Vendel *GOF* wrote:
> Chip off the O'l Proc wrote:
>
>
>
> Look here: http://proformica.com/time.shtml
>

Dan Vendel *GOF*

2005-01-21, 7:16 pm

Chip off the O'l Proc wrote:

> So if I just change the page type to .shtml and stick that code in it
> will probably work on most servers?


I suppose, at least a normal *nix server, but perhaps on Win boxes, too.
Make a test.

> And BTW no sisers either...


Good to hear. Sibings could be a PITA.


--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml or call/chat me via
Skype ID: danvendel, but DON'T ask questions that you can ask here! (get
Skype at http://skype.com)
Formmail tutorial: http://www.proformica.com/formmail-tutorial.shtml
Nested table demo: http://www.proformica.com/nested-table-demo.shtml
Basic HTML bulk mail tutorial: http://www.proformica.com/bulkmail.shtml
Search engine optimization: http://www.proformica.com/seo.shtml
Mick White

2005-01-21, 7:16 pm

Chip off the O'l Proc wrote:

> So if I just change the page type to .shtml and stick that code in it
> will probably work on most servers?
> I've used alot of SSI just never with this particular client. Never
> made it work and abandoned it for DW Libraries.


<script type="text/javascript">
document.write(new Date().getFullYear());
</script>

No need for shtml, php, asp, cf suffices, or for libraries, ssi's,
templates; works with plain old .html (or .htm)

Mick
Dan Vendel *GOF*

2005-01-21, 7:16 pm

Mick White wrote:

> No need for shtml, php, asp, cf suffices, or for libraries, ssi's,
> templates; works with plain old .html (or .htm)


....but enabled javascript....
BTW: Are you really supposed to have a year beside the ©? I don't think
so, and I think the reason people have it is because ...people have it.

--
Dan Vendel - *GOF*
"Eagles may soar, free and proud, but weasels never get sucked into jet
engines."
Contact: http://www.proformica.com/contact.shtml or call/chat me via
Skype ID: danvendel, but DON'T ask questions that you can ask here! (get
Skype at http://skype.com)
Formmail tutorial: http://www.proformica.com/formmail-tutorial.shtml
Nested table demo: http://www.proformica.com/nested-table-demo.shtml
Basic HTML bulk mail tutorial: http://www.proformica.com/bulkmail.shtml
Search engine optimization: http://www.proformica.com/seo.shtml
Chip off the O'l Proc

2005-01-21, 7:17 pm

Mick & Dan,
I like Mick's solution because it's nice and tiny, and easy to work with.

I usually end up with Javascript on a page for something. I hate the
new SP2 "ACTIVE SCRIPTS" alert. Are there any good solutions people
have suggested? SSI seems obvious but it must be enabled.
I've tried SSI on a couple of client's sites hosted at GoDaddy and
couldn't make it work. GoDaddy Tech Support couldn't spell SSI so I
gave up.




Dan Vendel *GOF* wrote:
> Mick White wrote:
>
>
>
> ...but enabled javascript....
> BTW: Are you really supposed to have a year beside the ©? I don't think
> so, and I think the reason people have it is because ...people have it.
>

Joe Makowiec

2005-01-21, 7:17 pm

On 21 Jan 2005 in macromedia.dreamweaver, Chip off the O'l Proc wrote:

> I had a snippet or extension that automatically corrected the year for
> copyright statements. I can't find it now.
> Anyone got an idea where I can find it?


Colm Gallagher did an extension which had several different serverside
languages and formats you could do this in:

http://www.colmgallagher.com/new/dreamweaver.cfm

Look for 'Auto Copyright'.

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php
Michael Fesser

2005-01-21, 7:17 pm

.oO(Chip off the O'l Proc)

>Mick & Dan,
>I like Mick's solution because it's nice and tiny, and easy to work with.
>
>I usually end up with Javascript on a page for something. I hate the
>new SP2 "ACTIVE SCRIPTS" alert. Are there any good solutions people
>have suggested?


If something has to be reliable you have to do it server-side. If you
can live with the fact that it will not work always then you can go with
a JS solution.

Micha
Murray *TMM*

2005-01-21, 7:17 pm

I use this -

<p>Copyright ©
<script language="JavaScript" type="text/javascript">
document.write("- "+new Date().getFullYear());
</script>
- Great Web Sights. All Rights Reserved.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Dan Vendel *GOF*" <see_my_signature_@_the_bottom_of_the_po.st> wrote in
message news:csr8te$c6$10@forums.macromedia.com...
> Chip off the O'l Proc wrote:
>
>
> No idea. Asp is either a fish or a tree in Swedish. That's about as much I
> know about it.
> Flattered you asked, though.
>
> --
> Dan Vendel - *GOF*
> "Eagles may soar, free and proud, but weasels never get sucked into jet
> engines."
> Contact: http://www.proformica.com/contact.shtml or call/chat me via Skype
> ID: danvendel, but DON'T ask questions that you can ask here! (get Skype
> at http://skype.com)
> Formmail tutorial: http://www.proformica.com/formmail-tutorial.shtml
> Nested table demo: http://www.proformica.com/nested-table-demo.shtml
> Basic HTML bulk mail tutorial: http://www.proformica.com/bulkmail.shtml
> Search engine optimization: http://www.proformica.com/seo.shtml



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews