I have a suggestion, to change user-badges into field-able entities. This would alter the core of how User Badges work, but could open the the possibilities on how badges can be used. The one that made me create this issue is is the ability of having different display modes, allowing one size of badge on the main profile, and another on the teaser. You could also have a page built for each badge, with a custom display-- -allowing for more information to be stored about badges in the system. And since it is field-able, it could literally make the possibilities endless. You could also allow for translation for each badge, thus granting the use on multi-lingual sites.

Clearly, this is no small undertaking, although I think the benefits are well worth it. I am open to trying to help y'all doing some of the work, although I am not sure the amount of free time I will have for the moment. I would recommend looking at Profile2 for some ways of getting the display of user badges on the main user profile.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

iamcarrico’s picture

Issue summary: View changes
shabana.navas’s picture

Yeah, that is one of the options we're looking into. This would mean changing user badges into an entity, which requires redoing basically everything. But the advantages, as you suggested, are manyfold. Also, since, everything in Drupal is now being turned into an entity, this would be the norm. I want to do this and am hoping I will finally get some time to do it, but not sure when. Thanks for offering your help, will definitely need it when it comes time for testing and stuff.

kporras07’s picture

Hi;

I had to work with this module; and as I had to integrate it with views and search_api I definitely needed this as an entity; so I worked on this.

Here is my patch.

iamcarrico’s picture

Status: Active » Needs review

Shabana, kporras07 gave me this patch a little while back. We have been using it on a production site, and thus far it is really awesome. I defiantly think we should start a 7.x-4.x branch with this in there. Will need some more work, especially with migration, but definitely worth it.

shabana.navas’s picture

@kporras07, wow this is great! Thanks for posting the patch. @iamcarrico, thanks for testing this. You are right, will review it and hopefully, we can start with this in the 7.x-4.x branch.

shabana.navas’s picture

Status: Needs review » Fixed

Patch submitted to new 7.x-4.x branch. Thanks guys for all your help.

Status: Fixed » Closed (fixed)

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

shabana.navas’s picture

Status: Closed (fixed) » Active

Re-opening this issue as it seems to be causing some problems. Related to issue #2385159: user_badges.admin.inc missing.

shabana.navas’s picture

kporras07’s picture

Status: Active » Needs review

It was my terrible error creating patch; already submitted a new patch on 4.x branch and uploaded to https://www.drupal.org/node/2385159

shabana.navas’s picture

Status: Needs review » Fixed

Fixed and committed. Thanks.

Status: Fixed » Closed (fixed)

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

jay.lee.bio’s picture

Thanks a bunch for releasing 7.x-4.x-dev. I just tested it out and I'm happy that it takes care of text badges that I really wanted via fields. For newbies, remember that you'll need to enable Entity Reference before using it. There are also a couple of bugs that I'll be reporting separately. Thanks again.

John_B’s picture

Thanks to all contributors.

I am planning to try this version of the module to construct a view to output json so as to create a badge which is compliant with the Mozilla Open Badge standard. It would be interesting to hear from anyone who has looked into this.

quotesBro’s picture

is there an upgrade path from 7.x-3.x to 7.x-4.x?

loudpixels’s picture

would love an upgrade path from .x-3.x to 7.x-4.x as well. Thanks!

Triumphent’s picture

Error message on install. But fixed after uninstalling and re-installing Entity Reference a couple of times.

I still haven't found where one puts the images for the badges. I guess the UI is not complete yet.

But this thread is stale and it looks like the 7.x-4.x branch project may have been abandoned.

rubyji’s picture

I hope this will be incorporated in the D8 version. FYI my workaround for now is to put the code in a Display Suite custom code field instead of directly on the template.

mattbk’s picture

I have installed 7.x-4.x-dev and I don't see any new Views fields. Did I interpret this functionality correctly?

EDIT: I was wrong. Using 7.x-3.x-dev now and it seems to work.