Smackdown votes...
Dodge - April 3, 2009 - 12:31
| Project: | Smackdown |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
Hi,
I think this is a bug -
I have just installed and set up smackdown succesfully (great module, so thanks to the maintainers and developers). The problem is that there is no voting shown on the smackdown page. Its not part of $content and I can't find any evidence of it in $node - from the documentation it seems like this should be automatically present without me having to do or set anything.
Please advise...

#1
Smackdown provides a results tab on the particular smackdown node.
So if you smackdown path is /node/18, yo should be able to see any results for that smackdown on /node/18/voting-results
#2
When I click on the results tab, all I get is 2 percentage meters registering 0% (0 votes)
I have voted for each of my contestents multiple times. One has 5 reads and the other has 8 reads.
I would expect the Meters to show right after I vote for one or the other contestent. Does anyone now how to fix this?
Or does anyone know of a different way to create a photo battle using 5 star?
#3
Using fivestar? Smackdown provides its own voting by clicking on the photo.
#4
I have been struggling with this module for a couple of months now. I keep updating the module to the latest in hopes it will be fixed.
I just updated to 6.x-1.x-dev dated JUN 03 2009.
I am using Drupal 6.12
After updating the DB tables I received the following errors.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in /Applications/MAMP/htdocs/sitename/update.php on line 174.
* warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/sitename/update.php on line 338.
Being that I am relatively new to Drupal, I have "no idea" what this means.
I am not sure if I can use fivestar or not? Post #3 above would make me think not. (troubling because there is mention of fivestar in the readme.txt file included with the module.)
Anyway, I also noticed there is a view names faceoff_photo_chooser which somehow seems to be linked with smackdown. I found reference to it in the smackdown.views_default.inc file. The view itself has broken references to group.nid. (do I need another module for this to work?)
I am willing to help debug this program. I think it can be great!
Has anyone had any luck with this module?
#5
I think the original question was about the ability to vote, not about the results.
I have a similar problem. I installed this module on two separate drupal installation, one is a completly fresh install, only with the modules required by this module, but i still cannot vote on the nodes shown.
First, the documentation says, the module creates a content type automatically. Actually it doesn't. When I set up a content type with two node reference fields, and two titles, doing exactly, what the tutorial says, the contents will be created, a smackdown node with two nodes included, but i can't get any javascript on my page to vote. The photos are linked to the nodes, but no voting happens when i click on them. When entering manually /smackdown/vote?cid=2&sid=9, the vote itself will be registered, as it appears on the result page. Do i have to use special field names when creating a smackdown node? Does the module have any extra requirements (I have voteAPI, ImageAPI, Imagecache, CCK components installed only). What happens, if the node isn't an image, but only a node link, can I use smackdown this way?
Thank you for your answer in advance!
Edit: On line 72
Drupal.theme.('notice', $element);should beDrupal.theme('notice', $element);i think.Still can't find out, why can't I vote on my nodes, links will be in class smackdown-processed with correct rel value, but clicking on them still don't vote, but opens node. I can't debug js, because of the js packer:S
#6
Yes this was changed recently to not create it's own node because you can now choose which content types are smackdown content types on the /admin/content/node-type/[type] page and the documentation has not yet been updated.
As for the voting, it should register which fields you have for the content types and throw them into a js variable so that the behavior is attached appropriately, making it not matter, but look at the smackdown.js and check what it is looking for against that your field names are or if they're images, as long as there are links. There's probably a better way to go about this.
There are no other requirements other than what is listed. If you want to debug the js on your site, simply turn off the 'js packer'.
I'll be spending some more time getting this module into order soon, but deadlines loom at the moment.
#7
I'm experiencing the same issue as well. The js is not doing anything on the page, and votes aren't recorded when a node is voted on. It's a shame because this module is awesome otherwise.
#8
i think this has been fixed: #612696: Voting totally broken, uses bad selector