Closed (won't fix)
Project:
Voting
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
13 Jul 2006 at 06:24 UTC
Updated:
3 Feb 2013 at 15:45 UTC
Jump to comment: Most recent file
I tried the new voting module and tried to set "show voting in teaser" but it doesn't work..
the check box always set to "no", no matter what I do. I have vote api installed
| Comment | File | Size | Author |
|---|---|---|---|
| #22 | voting_0.patch | 44.78 KB | dgtlmoon |
| #6 | voting_0.module | 22.08 KB | oleykin |
| #5 | voting.module | 21.42 KB | oleykin |
Comments
Comment #1
radiofranky2006 commentedi have resolved it.
the problem was in the DB.. all i did was re-load tables.
cheers,
oh.. teaser thing is still not workning. :)
Comment #2
geeloo commentedAt line 59, change :
in
It will fix the behaviour of the form control.
But when applied the voting still doesn't appear in teaser...
Comment #3
hickory commentedAt line 303, change
if (($node->voting) && ($page)) {to
if ($node->voting) {Comment #4
radiofranky2006 commentedboth solutions are not working.. still not showing in teaser..
thanks for the help though
Comment #5
oleykin commentedIn addition to the bugs mentioned above the module had a number of other critical issues:
(1) In line 409, quering an unknown variable $node->voting = variable_get('voting_' . $node->type, 0);
should be voting_nodeapi_
(2) Throughout function voting_nodeapi(&$node, $op, $teaser, $page)
$node->voting which is a tiny int
is assigned variable_get("voting_nodeapi_{$node->type}", 'never'), which is a text
Attached is my re-write:
I tested:
- votes in teaser on /off >> check
- voting on different content types (project issue/story) set to always/never >> check
Did not play with 'usually' and 'sometimes' settings
Would be glad to hear any comments!
Yeah, this is all for 4.7
Comment #6
oleykin commentedOops, attached the unchanged one, here is the working version!
Alex
Comment #7
radiofranky2006 commentedi tried ur updated module, and still it is not working..
Comment #8
radiofranky2006 commentedsomething is wrong with me..because i'm using UTC-8 characters..
i think there is something wrong wit voting database
Comment #9
oleykin commentedDid you try the second one that I sent? What exactly doesn't work?
If there is something wrong with the db, you should get a message in red, like table missing or something. Otherwise, it's fine.
Alex
Comment #10
radiofranky2006 commentedHi,
I tried your patch on "english" based site and it works like a charm.
but when I tried on a "non-englisH" site, not just teaser, and whole node voting insertion didn't work.
not sure why, the encoding is UTF-8 :(
Comment #11
oleykin commentedOh, i can see why... the code checks things like 'never' and 'always'
I assume you have modified those in non-english version, but the code still uses them.
There must be some generic way to replace those words with variable values... i 'll take a look.
Alex
Comment #12
radiofranky2006 commentedNo, I haven't modify them.
it's very strange..
Comment #13
KeithA commentedoleykin, I used your patch to no avail. The settings work (I can now choose to Show voting in teaser), but actual voting doesn't show up anywhere now.
Comment #14
oleykin commentedworks for me (check 43vents.com)
are you using english locale? there is apparently a problem with international websites.
Comment #15
garg commentedAfter the patch it saves "yes" setting for the "show in teaser mode" but it does not show in teaser mode.
Comment #16
Colin Brumelle commentedThis patch worked for me, with the only caveat being that it only seemed to show the voting on newly created nodes.
Comment #17
jorre commentedStill does not work, even with patched file... settings seem to be saved correctly, but not voting is shown on teaser...
Comment #18
green monkey commentedusing Oct 4 cvs version
Seeing same thing - check raido button "yes" then "save"
radio button comes back "no"
Comment #19
jim_at_miramontes commentedI was having the same teaser-related problem as before, but got it working with two changes to the Oct 3 CVS release:
(1) As discussed earlier, in voting_control_node, change:
to:
(2) In voting_nodeapi, change:
to:
The ratings code wasn't getting written into $node->teaser for display when the node is rendered (as a teaser).
Thoughts? I'm worried that I'm brute-forcing something...
Jim
Comment #20
frog commentedI've implemented all of these suggestions. I can't get any voting dialogue to show up anywhere. I've created new nodes, looked at the nodes and the teasers. Ultimately, I am trying to make the voting work on my custom nodes, but since it won't work on any page or anything, it seems the module is pretty much not working, though I see absolutely no errors anywhere.
Comment #21
coltraneThe solution provided by jim_at_miramontes worked for me to fix this problem. For those of you who haven't gotten this to work have you tried using other themes? I'm using custom themes and it works but perhaps it's a problem with your current theme?
Comment #22
dgtlmoon commentedheres the patch generated from the previous voting.module code submit that works for me, this should be added to the latest CVS
Comment #23
stevecrozz commentedthanks, you made that easier than I could have ever hoped.
Comment #24
coltranerestoring title
Comment #25
duaelfrThis version of Voting is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.