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

shabana.navas’s picture

Actually, 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.

mermemladeK’s picture

Very exciting to see this module suddenly moving so fast!

shabana.navas’s picture

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

oystercrackher’s picture

Hi, Any update on the timeframe for rules integration into the dev version of User Badges?

Thanks in advance!

shabana.navas’s picture

I should start working on it this week. Hope to get it done asap.

mermemladeK’s picture

Hi Shabana,
Any news on this issue? :)

shabana.navas’s picture

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

shabana.navas’s picture

Status: Active » Needs review

Okay, here goes...Finally committed the Rules integration for User Badges to 7.x-3.x-dev version. Please test it out.

mermemladeK’s picture

Hi 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

mermemladeK’s picture

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

shabana.navas’s picture

@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 could fetch the list of badges

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

selection of multiple badges at once

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.

mermemladeK’s picture

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

shabana.navas’s picture

Thanks, sure will :-)...

shabana.navas’s picture

Have officially added Rules Integration to 7.x-2.0. @mermemladek, I haven't implemented #9 yet, hoping to work on it sometime soon.

shabana.navas’s picture

Issue summary: View changes
Status: Needs review » Needs work

Changing status in light of #9.