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


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Any Idea How to...  (Read 395 times)
0 Members and 1 Guest are viewing this topic.
troycoverdale
Guest
« on: April 13, 2005, 02:26:00 PM »

What I am attempting to do is set up an ssi format to call upon the event that is currently underway, i.e. a "What is happening right now" set up.

I haven't been able to crack a code to do this with the script...Any ideas?

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #1 on: April 13, 2005, 06:56:00 PM »

Won't setting the regular SSI template to display only 1 day's worth of events just display current day's events??

Dan O.

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

Logged
troycoverdale
Guest
« Reply #2 on: April 14, 2005, 10:42:00 AM »

Correct, which does what I need in one aspect, but I would like to filter it down to the current timeframe, like the current hour.

I've tried the duration=1h, etc., but all it presents is the first event from a day's list.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: April 14, 2005, 02:29:00 PM »

** I would like to filter it down to the current timeframe, like the current hour. **

A conditional dependant on the event's schedule start and end time might be able to be added to the ssi.html template file.

The event times are available with the $EVENT->{'schedule'}->{'start_time'} and $EVENT->{'schedule'}->{'end_time'} variable but I don't know the exact code you'd use to compare them to. It would likely need to use the Perl "time" or "gmtime" functions.

You might also be able to use the $EVENT->{'schedule'}->{'start'} and $EVENT->{'schedule'}->{'end'} variables and compare them to time and time+360 (ie. time + 1 hour) respectively to narrow the results. I'm afraid I do not know the exact code you'd use for that either.  

JMO

Dan O.

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

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