Added views support and a new widget style (patch attached)

scottmartinnet - April 13, 2009 - 18:37
Project:Vote Up/Down
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:ingo86
Status:closed
Description

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.

#1

scottmartinnet - April 13, 2009 - 18:38

#2

kambing-gila - April 15, 2009 - 14:38

You included the file as a .diff file, I think it might need to be a .patch file

#3

pontus_nilsson - April 15, 2009 - 15:26

This is exactly what I´m missing. Should I learn how to patch or will this be added to an update soon?

#4

scottmartinnet - April 15, 2009 - 21:10

I might, or I do? I followed the instructions here, which are about using the cvs diff command: http://drupal.org/patch/create

#5

salimai - April 20, 2009 - 18:21

After 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. :)

#6

Flying Drupalist - April 23, 2009 - 03:03
Status:active» needs review

Oh yay, just what I was looking for! :D I'm looking forward to testing this.

#7

skizzo - May 20, 2009 - 07:27

could someone provide this as a .patch, so that also users
with no programming skills can give it a try? Thank you

#8

SocialNicheGuru - May 22, 2009 - 13:37

Is there a screenshot of what the widget looks like?

#9

jnpWebDeveloper - May 26, 2009 - 02:27

Can someone please supply the patch for this? It would be really appreciated.

#10

omni_kh - July 11, 2009 - 21:20

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

AttachmentSize
vote_up_down.patch 6.87 KB

#11

SocialNicheGuru - July 11, 2009 - 22:19

is there a picture of what the new widget looks like? Does it look like Drupalit widget?

#12

skizzo - July 12, 2009 - 10:08

I have a problem with patch in # 10, thank you nevertheless


patching file vote_up_down.css
patching file vote_up_down.module
Hunk #4 FAILED at 219.
Hunk #6 succeeded at 308 with fuzz 2 (offset 1 line).
Hunk #7 succeeded at 577 (offset 1 line).
Hunk #8 succeeded at 657 (offset 1 line).
Hunk #9 succeeded at 805 (offset 1 line).
Hunk #10 succeeded at 823 (offset 1 line).
1 out of 10 hunks FAILED -- saving rejects to file vote_up_down.module.rej
patching file vote_up_down_views.inc

#13

GetLives - July 16, 2009 - 02:42

This is an interesting idea. I second putting this feature into the actual module.

#14

ingo86 - August 7, 2009 - 07:47
Assigned to:Anonymous» ingo86

After committing other patches the old patch is broken. I will work on it to make it working again on 1.x-dev.

#15

ingo86 - August 7, 2009 - 09:34

Views and vote up down are already compatible together using:

Row style: Node

This is a bit limitative, I will work to provide an integration with fields too.

#16

ingo86 - August 26, 2009 - 19:56
Status:needs review» fixed

Views support now added to vote up down 6.x-1.0-beta6.

#17

System Message - September 9, 2009 - 20:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.