Hey there, I'm not sure why this is happening, but it's incredible the amount of themes that will not display the widget correctly!! I found mollio and of course bluemarine/sands/holygrail to work fine, and probably a couple other, but most of the other themes on drupal won't display the widget correctly?

Any tips to make it work? I would love for example to use the new delicious_zen theme with this module but the widget does not show at the right place!

Thansk for the advice
patchak

Comments

frjo’s picture

Category: bug » support

See the README and the exemple files template.php and node-storylink.tpl.php how to insert the voting widget in a theme.

That the automatic inclusion of the voting widget fails is not surprising. Themes in Drupal can present nodes etc. more or less as they like so it's impossible to anticipate all possible variations.

I think Drupal 5 will make it easier to control how the widget is added. For full control it will most likely be necessary to include it directly in the theme anyway.

budda’s picture

How can I prevent the widget from being injected in to the $node->body and $node->teaser in a pre-set place?

vote_up_down_nodeapi() is doing all the evil, and I want to have the node_up_down functionality for a given content-type but be able to place the widget in my own place within the node-mycontentype.tpl.php file.

In the node-storylink.tpl.php file you use the variable $vote_up_down_widget to display thye widget. I used that too, but now I get two widgets per post because its also getting embedded in $content.

patchak’s picture

Hi Budda,

You have to set the widget to disabled in the vote up down settings if you,re going to place it in your content type directly in the time. That's why it's showing twice!

frjo’s picture

Go to admin/settings/vote_up_down and take a look at the following setting and its description.

Vote widget settings for nodes:
"For more control over the voting widget placement it can be inserted directly in the theme, see the included template.php and node-storylink.tpl.php for an example. When this method is used turn off the widget display here."

budda’s picture

Thanks. Yeah i found the setting just after posting the question last week but didn't post a follow up here to say so.

Thanks for the responses though!

frjo’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)