[split from http://drupal.org/node/233062]
Hi,
obviously the "Station Programm: Now playing" views filter is not working...
Background: I want to set up a view (as a block) that displays the current program, as the built-in "Current Program/On Air" box does. Unfortunately, the "Now playing" filter never returns any results, no matter if a programm presently is playing or not.
Would be great if you could fix this.
tia,
Markus
Comments
Comment #1
hurricane_rufo commentedJust want to bring this up again. Could you please look into this? My site is to go live in three days, and this is kind of crucial...
I believe that the error might be somewhere in this function (schedule/views.inc, line 430):
as this results in the database query
SELECT node.nid FROM node node WHERE (EXISTS (SELECT * FROM station_schedule_item WHERE station_schedule_item.program_nid = node.nid AND station_schedule_item.start <= 0 AND station_schedule_item.finish > 0)) LIMIT 0, 2
I don't know enough PHP (and less about the Views API) at the moment to dig deeper; but maybe that bit helps to locate the error and fix it. I would really appreciate any hint.
tia,
Markus
Comment #2
drewish commentedgrab the latest version of HEAD, i'd updated some other views stuff that might have affected it because when i tried creating a view on my machine the now playing filter was working correctly. for reference here's what i was using:
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #4
resin commentedThis problem still exists in 2.1-beta1 (and views.inc rev 1.19). I was able to fix get the desired functionality by stealing some code from the "Now Playing" block in station_schedule.module and adding it into views.inc.
Specifically, change this:
to this:
Step 3: Profit!
Update: It looks like the substitution of '***CURRENT_STATION_MINUTE***' isn't taking place because $minute ends up as zero. Maybe this is a Views bug?
Comment #5
drewish commentedYeah I'd done some work on HEAD that addressed part of this: http://drupal.org/cvs?commit=265332
There's a patch that's in progress on #580806: Next Scheduled Program Block but it's more Views2 centric. station_minute_from_local_ts() could probably be easily back ported for 5.x-2.x.
Comment #6
jethroweb commentedComment #7
tim.plunkettThis isn't relevant for 6.x, see comment #5. Putting back to 5.x, but postponing.
Is this still a valid bug report, or a feature request?
Comment #8
damienmckennaThe Drupal 5 versions are no longer supported, if someone would like to step up to co-maintain it then please do so, otherwise future work will only happen for D6 and D7. Thank you.