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
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

ddouble - March 28, 2009 - 01:35

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

merto87 - April 3, 2009 - 10:46

Thanks for this issue.
Waiting for dev commit.....

#3

dtarc - April 7, 2009 - 14:27

Thanks for the fix.

 
 

Drupal is a registered trademark of Dries Buytaert.