Good day,
I'm trying to create a simple book review content type that includes the Fivestar rating widget. I have followed the documentation section steps 1 and 2 located here, Configuration as a CCK field / Advanced Rating, which worked out fine but I'm totally clueless as to what I need to include in step 3 as far as php code or other. I imagine I would want the node ID (or other?) to be the new book review page I am actually creating is my guess, but do not know enough php yet to have it do this dynamically.
When I do a preview it almost works the way I want, with the rating widget showing up above the text and all, and 'locked'. But when trying to save I get the following error, (I must not have something defined correctly in step 3 is my guess):
Fatal error: Call to undefined function fivestar_content_is_empty() in C:\wamp\www\drupal-6.4\sites\all\modules\cck\content.module on line 760
Thanks in advance for your help! I'll be happy to document this for others to use if we can figure this out. My mid to long-term goal is to eventually have a book rating system similar to what amazon.com uses, but for now a simple book review rating completed by the review author would I think be very useful. Could be used for anything; videos, pictures, etc.
Comments
Comment #1
Dominion commentedI am getting the same issue
Comment #2
quicksketchThe fivestar_content_is _empty() error is caused (and then corrected) in #282221: CCK rc4 breaks fivestar module.. I'd suggest using the 1.13 version of the module, where the PHP code is now optional, because you can use nodereference fields to cast votes.
Comment #3
Varenne commentedDone and working well, thanks!