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.
Comment | File | Size | Author |
---|---|---|---|
#3 | user_badges-fieldable_entity-2301303-3-D7.patch | 159.23 KB | kporras07 |
Comments
Comment #1
iamcarrico CreditAttribution: iamcarrico commentedComment #2
shabana.navas CreditAttribution: shabana.navas commentedYeah, 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.
Comment #3
kporras07 CreditAttribution: kporras07 commentedHi;
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.
Comment #4
iamcarrico CreditAttribution: iamcarrico commentedShabana, 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.
Comment #5
shabana.navas CreditAttribution: shabana.navas commented@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.
Comment #7
shabana.navas CreditAttribution: shabana.navas commentedPatch submitted to new 7.x-4.x branch. Thanks guys for all your help.
Comment #9
shabana.navas CreditAttribution: shabana.navas commentedRe-opening this issue as it seems to be causing some problems. Related to issue #2385159: user_badges.admin.inc missing.
Comment #10
shabana.navas CreditAttribution: shabana.navas commentedComment #11
kporras07 CreditAttribution: kporras07 commentedIt was my terrible error creating patch; already submitted a new patch on 4.x branch and uploaded to https://www.drupal.org/node/2385159
Comment #12
shabana.navas CreditAttribution: shabana.navas commentedFixed and committed. Thanks.
Comment #14
jay.lee.bio CreditAttribution: jay.lee.bio commentedThanks 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.
Comment #15
John_B CreditAttribution: John_B commentedThanks 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.
Comment #16
quotesBro CreditAttribution: quotesBro commentedis there an upgrade path from 7.x-3.x to 7.x-4.x?
Comment #17
loudpixels CreditAttribution: loudpixels as a volunteer commentedwould love an upgrade path from .x-3.x to 7.x-4.x as well. Thanks!
Comment #18
Triumphent CreditAttribution: Triumphent commentedError 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.
Comment #19
rubyjiI 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.
Comment #20
mattbk CreditAttribution: mattbk as a volunteer commentedI 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.