Closed (fixed)
Project:
Userpoints Flag [D7]
Version:
7.x-1.0-beta1
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2010 at 23:49 UTC
Updated:
25 May 2012 at 07:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
hadsie commentedJust curious if any work has begun on this yet. I'll probably take a stab at it.
- Scott
Comment #2
BenK commentedNo work has begun on this yet, so your help would be very welcomed! We've been working more recently on the D7 port of Userpoints itself. If you ever need to discuss you can often find Berdir or myself in IRC at #drupal-games.
--Ben
Comment #3
hadsie commentedOk, here's a tarball of my module. I'm also using github (based on a fork from the userpoints_contrib d7 code), so if it's easier I can also just do a pull request there.
Btw, it might make sense to create a D7 branch in CVS just so that tickets can be assigned to D7 instead of these sorts of things needed to be assigned to the 6.x codebase.
Comment #4
berdirUnfortunately, the git mirror of userpoints_contrib is messed up, many files are missing there.
Try to provide a diff against CVS and upload a patch, then I can easier review your changes.
Also, instead of providing a description, you should implement hook_userpoints_info(), see http://drupal.org/node/993376
Comment #5
hadsie commented@Berdir, should I be doing this against HEAD? If you guys are working from CVS now then maybe it would make sense to create a 7.x branch of the code? (We could then tag these issues with version 7.x instead of 6.x).
Comment #6
berdirUse DRUPAL-6--1 for now. I'll create a DRUPAL-7--1 branch soon :)
For creating a patch however, it doesn't matter if there is a branch yet or not :) you need to patch against the current Drupal 6 version anyway.
Comment #7
BenK commented@hadsie: Any update on this? Can you post a patch as requested by Berdir? We're getting closer to creating an official branch, but the plan is to initially only include those sub-modules that are functioning pretty well already. The rest will come later. So if you can get us a patch to look at soon, we can get userpoints_flag in the first wave of commits.
--Ben
Comment #8
gilgabar commentedHere is a patch that implements the userpoints_flag changes from #935504: Userpoints_flag - specify which flags earn points for 7.x.
Comment #9
berdirThanks for the patch, feedback below.
I think the other modules are missing this too, but I guess it would be helpful to add a configure=admin/config/people/userpoints/settings line to all modules that have settings, to make it easier to find them and know that they do have settings.
Because then we can drop this thing here, not necessary anymore then.
Can you add an empty new line after this?
Please update this to use a machine-readable name and then provide a nicer description using hook_userpoints_info(), see http://drupal.org/node/993376.
For the description, I'd say we can at least use entity_label($entity_type, $entity_id), maybe we can even integrate which flag you were using?
Edit: Because "Flag" might be confusing to the user, he probably hasn't "flagged" it, but "bookmarked" or something like that.
Same here.
Powered by Dreditor.
Comment #10
gilgabar commentedMade the requested updates. It depends on a patch to userpoints in #1082088: Add 'description arguments' to hook_userpoints_info. It adds arguments to hook_userpoints_info description callbacks. It was necessary to pass along the flag title.
Comment #11
BenK commentedComment #13
taecelle commentedHey to all and happy new year!
I've got the problem with flag and userpoints, but only if flag ISN'T global. Then i cannot grant points when some user flags comment. I applied patch and it works good, but doesn't solve my problem.
Any idea or help?
Comment #14
LCG commentedHello there.
Is there something new about the port of Userpoints Flag for Drupal 7?
I tried the .tar.gz in #3. I can change options in Userpoint configuration but the points are not earned when a node is flagged.
Thank you
Comment #15
LCG commentedNevermind, it works. I didn't understand well explanations of the options. . .
Comment #16
kreynen commentedAfter discussing this with @Berdir, I've moved userpoints_flag to http://drupal.org/project/userpoints_flag
Comment #17
kreynen commentedSince several people have enabled the module and we were able to quickly fix a few issues with their configurations, I rolled beta1 of the D7 version of userpoints_flag today. Considering this issue fixed.
Comment #19
berdirOk, removed the module from the 7.x-1.x branch, do you intend to add the 6.x-1.x version as well?