Setting "Widget and votes display" to Full DIsplay only has no effect: the widget is still displayed in both teaser and full mode.

Comments

marvil07’s picture

Category: bug » support

I can not reproduce it, when I set Full DIsplay only it works like expected, maybe you changed vote count option instead of the widget one?

BioALIEN’s picture

Category: support » bug

I can confirm this is a bug. Tested with latest 2.0-dev branch. Here is how to reproduce.

Only tested with Vote Up/Down for Nodes.

Widget selection: Choose any option.
Widget and votes display:
- When will the vote widget be displayed? Full Display Only
- When will the total vote count be displayed? Both Full and Teaser

When you visit the homepage the affected nodes (teasers) still show the voting widget even though the options above indicate the voting widget should be visible on Nodes View only. The vote counts are working correctly but the voting widget seems to have a flaw.

Setting category back to bug report.

marvil07’s picture

Title: Can't remove widget from teasers » Handling widget on teasers visibility
Assigned: Unassigned » marvil07
Status: Active » Needs review
Issue tags: +typo
StatusFileSize
new879 bytes

You was right. I did not notice the bug since I was on a patched version :-p, so I test aginst the HEAD and:

That is a bug caused by the $teaser variable not defined in hook_nodeapi().

I posted another issue because I saw a not defined variable php warning: #673806: notice: Undefined variable: teaser in /pathtodrupal/sites/all/modules/vote_up_down/vud_node/vud_node.module on line 106.

It's solved after aplying it :-)

So, as that issue is more recent than this, I'm attaching the same patch here and marking the other as a duplicate.

marvil07’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

marvil07’s picture

Version: 6.x-2.x-dev » 6.x-1.x-dev
Assigned: marvil07 » Unassigned
Status: Closed (fixed) » Patch (to be ported)

first try of 6.x-1.x :-p

marvil07’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Assigned: Unassigned » marvil07
Status: Patch (to be ported) » Closed (fixed)

ok, make this rip, making another issue