Closed (fixed)
Project:
Vote Up/Down
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2006 at 20:32 UTC
Updated:
22 Jan 2007 at 16:02 UTC
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
Comment #1
frjo commentedSee 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.
Comment #2
buddaHow 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.phpfile 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.Comment #3
patchak commentedHi 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!
Comment #4
frjo commentedGo 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."
Comment #5
buddaThanks. 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!
Comment #6
frjo commentedComment #7
(not verified) commented