Hi everyone,
I'm somewhat a newbie to drupal and PHP but I've been learning fast!
I've been charged with the task of creating an online daily notices system for our school which staff can add to, and after extensive searching on the web I decided upon Drupal with the event module. I've actually got it to the point where it is functioning, but there are a few wrinkles to iron out.
How it works is that notices are submitted via the drupal site and the output is obtained by pointing an RSS to HTML script at the RSS feed (this one here if you're interested: http://www.feedforall.com/free-php-script.htm). This is important because the notices are printed each morning for staff to read out in class, and it needs to be one notice per line or it doesn't fit on one page.
I've successfully added a piece of code to event.module which truncates the $body tag (in order to get each notice on one line), however the next issue is somewhat more complex. The problem is that the RSS feed only displays notices that are in the future, ie if a notice is set to end at 8am, someone reading the notices at 9am will not see it. One solution would be to instruct staff to make sure they set notices to end late in the day, however I would rather get the module to display all notices from the current day.
The function I've been modifying is event_calendar_rss, and at first I thought I would simply be able to modify the $stamp variable, however that appears to only take into account days anyway, and ignores hours and minutes. Thus I believe the line I need to modify is this one: