Hi,
I would like to control a little bit the place where the Fivestar widget is printed in my theme. For that reason I call the widget in a custom area in my node template with this code:
print fivestar_widget_form($node);
But the thing is that I have to enable Fivestar in the admin menu for the votes to be saved, otherwise they won´t be counted. Activating the Fivestar duplicates the widget, because it also has been called in a template file.
Once Fivestar is disable but called from the template, is it necessary to call Voting_API as well, with votingapi_set_votes(&$votes, $criteria = NULL)? I can´t manage very well with PHP, so any suggestion about how to proceed will be appreciated.
Furthermore, I´m trying to figure out how to manage the widget with a fine grained control from the template file, such as configuring the display: labels, text, etc... if someone of you has had a similar experience, I´d love to hear it.
Comments
SOLVED
That wasn´t a code thing. Sorry. It was quite silly: just go to the configuration section of Fivestar and hide the widget in the teaser and full view. That prevents the duplicate.