Vote up/down widget can not display on alternative style
ddouble - March 28, 2009 - 01:23
| Project: | Vote Up/Down |
| Version: | 6.x-1.0-beta4 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | ddouble |
| Status: | active |
| Issue tags: | Alternative Style |
Jump to:
Description
Vote up/down widget can not display, no matter how setting it.
I have find the bug resided in vote_up_down_nodeapi function of vote_up_down.module file,
notice this line:
<?php
$style = variable_get('vote_up_down_widget_style_node', 0) == 1 ? <b>'alt'</b> : '';
?>must be corrected to
<?php
$style = variable_get('vote_up_down_widget_style_node', 0) == 1 ? <b>'_alt'</b> : '';
?>'alt' must be '_alt'

#1
vote_up_down_nodeapi function of vote_up_down.module file
Modify code From
<?php$style = variable_get('vote_up_down_widget_style_node', 0) == 1 ? 'alt' : '';
?>
To
<?php$style = variable_get('vote_up_down_widget_style_node', 0) == 1 ? '_alt' : '';
?>
#2
Thanks for this issue.
Waiting for dev commit.....
#3
Thanks for the fix.