Closed (fixed)
Project:
Vote Up/Down
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
13 Apr 2009 at 18:37 UTC
Updated:
9 Sep 2009 at 20:00 UTC
Jump to comment: Most recent file
I've done some development on this module to allow it to interface with the views system so that you can display a widget in views and to create a new widget style ("combined") which combines the up/down widget and the points display into a single widget.
I'm new to the patch process, so let me know if I've done something wrong. I've attached a .tar.gz file which contains a patch and three new theme files.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | vote_up_down.patch | 6.87 KB | omni_kh |
| #1 | vote_up_down-patch-combined-views.tar_.gz | 2.78 KB | scottmartinnet |
Comments
Comment #1
scottmartinnet commentedComment #2
sean_a commentedYou included the file as a .diff file, I think it might need to be a .patch file
Comment #3
pontus_nilssonThis is exactly what I´m missing. Should I learn how to patch or will this be added to an update soon?
Comment #4
scottmartinnet commentedI might, or I do? I followed the instructions here, which are about using the cvs diff command: http://drupal.org/patch/create
Comment #5
salimai commentedAfter a bit of a headache, I now have this patch working. It does not need to be a .patch file to use with Eclipse, but I am not sure about other IDEs or what the Drupal etiquette is here for which file type to use. For those - like me up until a few minutes ago - who don't know how to apply this patch in Eclipse, just create a project that includes the module, right click and on that menu go to Team>Apply Patch..., choose the .diff file and click next, choose the correct folder and hit finish.
Note that you will have to manually create vote_up_down_widget_combined.tpl.php and vote_up_down_points_combined.tpl.php files, but the correct code is near the end of the .diff file.
Overall, great patch once you jump through the hoops needed to get it working. Thank you, scottmartinnet; you just saved my day. :)
Comment #6
Flying Drupalist commentedOh yay, just what I was looking for! :D I'm looking forward to testing this.
Comment #7
skizzo commentedcould someone provide this as a .patch, so that also users
with no programming skills can give it a try? Thank you
Comment #8
socialnicheguru commentedIs there a screenshot of what the widget looks like?
Comment #9
jnpWebDeveloper-1 commentedCan someone please supply the patch for this? It would be really appreciated.
Comment #10
omni_kh commenteda patch file.
I created this from diff in my local directory. To apply:
1. download it to your vote_up_down module directory
2. patch -p1 -i vote_up_down.patch
3. Download the original .zip file and copy files in themes to your module's theme directory.
Comment #11
socialnicheguru commentedis there a picture of what the new widget looks like? Does it look like Drupalit widget?
Comment #12
skizzo commentedI have a problem with patch in # 10, thank you nevertheless
Comment #13
TapSkill commentedThis is an interesting idea. I second putting this feature into the actual module.
Comment #14
ingo86 commentedAfter committing other patches the old patch is broken. I will work on it to make it working again on 1.x-dev.
Comment #15
ingo86 commentedViews and vote up down are already compatible together using:
This is a bit limitative, I will work to provide an integration with fields too.
Comment #16
ingo86 commentedViews support now added to vote up down 6.x-1.0-beta6.