Closed (fixed)
Project:
User Badges
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2010 at 04:46 UTC
Updated:
28 Sep 2010 at 11:53 UTC
Could someone please give me some PHP code to grant a badge to a user?
I am using Ubercart to grant users a role when they purchase a product, and would like to grant them a badge as well.
Comments
Comment #1
magnus commentedThis probably could be solved with the Rules module.
Comment #2
1kenthomas commentedWell... if you were to peruse the module code... you should be able to find how it does that :)
Comment #3
Richard Blackborder commentedI believe the module can assign badges when certain roles are assigned just using the user interface. Otherwise, the Rules module is always the way to go.