Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8240 Posts in 1905 Topics- by 2172 Members - Latest Member: JeffHLB
Pages: [1]   Go Down
Print
Author Topic: "Calendar Last Updated" Script  (Read 1206 times)
0 Members and 1 Guest are viewing this topic.
wbumc
Guest
« on: October 11, 2005, 07:12:00 AM »

How can I specify on the Calendar page, when the calendar was last updated?  We have people who don't trust its accuracy fully because it doesn't say how up to date the events on it actually are.

I know this code is available in javascript form, and I've pasted it into the footer, but since the footer input box only allows one line of continuous text to be pasted in at a time, the javascript won't work.

Logged
DanO
Moderator
Sr. Member
*****

Karma: 13
Offline Offline

Posts: 273

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: October 11, 2005, 12:45:00 PM »

** since the footer input box only allows one line of continuous text to be pasted in at a time **

That can be modified. See the previous forum message as the following link:

LINK > How to make fields longer

BTW. Most simple JavaScript programs could be rewritten to be on a single line.


** We have people who don't trust its accuracy fully because it doesn't say how up to date the events on it actually are. I know this code is available in javascript **

The JavaScript would at most only display when the page being viewed *was created* which with a CGI script (like CalendarScript is) would be at the instant it was seen. So such a display would be meaningless.

The only way to get a true last updated date would be to use Perl to check the file creation date of the events.txt and/or schedule.txt files and post that information. I'm afraid that would more complicated to do than just modifying the header or footer fields. The template itself would need to be modified.

If you just want to give people a false sense of security like the JavaScript would produce, you could easily modify the template to just print the current date.

JFYI

Dan O.

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

Logged
Pages: [1]   Go Up
Print
Jump to: