Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Useful Tag!

Quote Reply
Useful Tag!
I have just created a very useful global that I thought I'd share because it is very simple.

With this tag you can put a very detailed date and time on which ever page you want (dynamic recommended ie. add/modify/search).

The output looks like :

Mon Jan 1 15:24:38 2001

You could also put it in add_email.txt and other emails if you want.

Anyway....add the following code to the bottom of SiteHTML.pm

sub local {
my $output = scalar(localtime);
return $output;
}


Then go to your admin area and then go to globals....

Create a global called local and add the code....

&Links::SiteHTML::local();

Just add <%local%> where you want the Date and Time to appear!

Thanks.

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Subject Author Views Date
Thread Useful Tag! Paul 2262 Jan 1, 2001, 12:28 PM
Thread Re: Useful Tag!
Alex 2159 Jan 2, 2001, 2:38 PM
Post Re: Useful Tag!
Paul 2169 Jan 2, 2001, 2:44 PM