Hello,

This isn't exactly a bug report, but more like an unexpected bump into a permissions issue.

BACKGROUND: I've created a view that pulls one of several date CCK fields from a customized event node type. The event happens in phases -- a voting phase, an announcement phase, a showtime phase -- and each phase has a start/end date field. This makes it easy for people who schedule the events to but in all the dates at once instead of having to create lots of separate events for each phase.

ISSUE: As I develop[ed a view to show a countdown for the current phase, I discovered that the countdown worked while I was logged in as admin, but failed with the "span with class datetime not found" error if I was looking at the page anonymously.

I chased down all the solutions I could find online, including removing breaks between elements in the JSTimer markup and turning off all other modules that might use AJAX. No joy.

RESOLUTION: I realized that as admin, I had permissions to view all the CCK fields of an event node, but that anonymous visitors did not. Drupal was stripping the date information out before delivering the page to anonymous viewers.

The error went away when I granted permissions to anonymous to see those fields. TA DA!

I'm providing this info so that other people who use customer CCK date fields with JS Timer will remember to grant permissions to date fields. :) I *love* the way this module works, so I want to help smooth its adoption.

A line might also be added to the error message that visitors must have permissions to see the date of the event.

Comments

jvandervort’s picture

Component: Miscellaneous » Documentation
Category: bug » support

Just to make sure it doesn't keep catching my eye as a bug:)

muddie’s picture

Can you elaborate on how you created the view or point me to a page that does please?
I want to use this module to count down to a warranty expiry date that needs to be pulled out of a CCK date field.
The date will be different depending on which user is logged in so it needs to be dynamic. A view seems to be the way to do it but I'm not sure where to start.
Thanks

jvandervort’s picture

Also check out the new date field integration in jstimer 7.x that was just added to the dev snapshot version.
You add a date field to a content type.
Then go to the admin/structure/types page's -> manage display link and choose the "Countdown Timer" display formatter. It's pretty cool. It doesn't have any options, but does work using the jstimer global output format.

jvandervort’s picture

Status: Active » Closed (works as designed)