The logic of what I would like to achieve is IF no event found Then print (default para) else show normal schedule data at top of post.
If Alex or Darrell is reading this, I know i asked on the mailing list, but as is it is an additional feature, I'm really asking if any PHP gurus out there can help me acheive something I'm being put under quite a bit of pressure for.
I *think* the section that does this is as below
/** Read the schedule table for the posts, and add an ec3_schedule array
* to each post. */
if('array'!=gettype($posts) || 0==count($posts))
// Can't use foreach, because it gets *copies* (in PHP<5)
for($i=0; $i<count($posts); $i++)
"SELECT post_id,start,end,allday,rpt,IF(end>='$ec3->today',1,0) AS active
WHERE post_id IN (".implode(',',$post_ids).")
ORDER BY start"
// Flip $post_ids so that it maps post ID to position in the $posts array.
if($post_ids && $schedule)
foreach($schedule as $s)
Any ideas how to mod it for what I need?