Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi Shabana,
In the previous buggy version of User Badges we have some patches that allowed for Rules to give and remove badges to users.
https://drupal.org/node/1499414
Can we still apply these patches?
Do you intend to implement them?
Thank you
Comments
Comment #1
shabana.navas CreditAttribution: shabana.navas commentedActually, I have just added Rules integration to the 6.x version of user_badges (https://drupal.org/node/782430). I am hoping to give it a couple of weeks and if no errors are reported, I will go ahead and try and port it to the 7.x version. So hold off on applying the patches mentioned in (https://drupal.org/node/1499414) as some errors have already been reported.
The 7.x production version of user_badges will be released shortly and I will add the Rules integration to the 7.x development version, initially. If all goes well, it should make it to the production version as well.
Comment #2
mermemladeK CreditAttribution: mermemladeK commentedVery exciting to see this module suddenly moving so fast!
Comment #3
shabana.navas CreditAttribution: shabana.navas commented:-) Happy to help! I think this module hasn't received the necessary attention that it should have received. Hope to give it its proper due.
Comment #4
oystercrackher CreditAttribution: oystercrackher commentedHi, Any update on the timeframe for rules integration into the dev version of User Badges?
Thanks in advance!
Comment #5
shabana.navas CreditAttribution: shabana.navas commentedI should start working on it this week. Hope to get it done asap.
Comment #6
mermemladeK CreditAttribution: mermemladeK commentedHi Shabana,
Any news on this issue? :)
Comment #7
shabana.navas CreditAttribution: shabana.navas commentedHey mermemladek, almost there. Had some personal issues to take care of, that's the reason for the delay. But, it's almost ready. I am hoping by the beginning of next week, I should be able to add the integration to the dev version and if all works out, a new stable release of it after that.
Comment #8
shabana.navas CreditAttribution: shabana.navas commentedOkay, here goes...Finally committed the Rules integration for User Badges to 7.x-3.x-dev version. Please test it out.
Comment #9
mermemladeK CreditAttribution: mermemladeK commentedHi Shabana,
I am so excited with your work. After a very long time I see this nicely implemented.
I have a simple request I'd like to know if you can add it. Would it be possible that for the badge actions and conditionals, instead of choosing one single badge, we can choose several of them? So instead of choosing one element from the list, that we can add multiple badges at once, compare if user has multiple badges at once or assign multiple badges.
Thank you
Comment #10
mermemladeK CreditAttribution: mermemladeK commentedI am just thinking that even better would be that we could fetch the list of badges. That way we could loop through it and do what I asked for too.
Comment #11
shabana.navas CreditAttribution: shabana.navas commented@mermemladek, I initially was thinking along the same lines. I toyed around with the idea, but I was so pressed for time and wanted to get this out asap, so went ahead and did the basic implementation for the actions and conditions.
We are already fetching the list of badges and displaying it in a list, but the set of Rules data types currently only support a 'single-select' list and not multi-select.
In order for the
to work, we would need to implement our own 'badge' data type in Rules.
I don't want to put a timeline on it, but I am hoping to add this feature whenever I get some extra time. Right now, I am working on a time-consuming project. Hopefully, once it is over, I will take a look and implement the feature.
Comment #12
mermemladeK CreditAttribution: mermemladeK commentedHi Shabana,
No pressure, you already provided us with this so-long-waited functionality and I am very thankful for that. Please just do it whenever you have time. :)
Comment #13
shabana.navas CreditAttribution: shabana.navas commentedThanks, sure will :-)...
Comment #14
shabana.navas CreditAttribution: shabana.navas commentedHave officially added Rules Integration to 7.x-2.0. @mermemladek, I haven't implemented #9 yet, hoping to work on it sometime soon.
Comment #15
shabana.navas CreditAttribution: shabana.navas commentedChanging status in light of #9.