Permalink
Switch branches/tags
Nothing to show
Commits on Mar 20, 2012
  1. Adding uncommitted files

    kwcoffman committed Mar 20, 2012
Commits on Jan 31, 2012
  1. Do a redirect rather than specifying form_state['rebuild']

    Update the userweight_form after selections have been made.
    Change to do the redirect!!
    kwcoffman committed Jan 31, 2012
Commits on Jan 30, 2012
  1. Make requested changes to user profile display

    - Change the tab name from "Open Badges" to "Manage Badges"
    - Add a link to the connect/badges page (SHOULD BE CONFIGURABLE)
    - Add a link to the Mozilla OBI login page (should be configurable)
    - Add a link to the Mozilla OBI Wiki page (should be configurable)
    kwcoffman committed Jan 30, 2012
Commits on Dec 8, 2011
  1. Add another parameter to specify when to wrap badges

    New parameter specifies how many badges to display in
    each row for a user.  Default is 5.
    kwcoffman committed Dec 8, 2011
Commits on Dec 2, 2011
Commits on Nov 21, 2011
  1. Create views of current recipients

    Either recipients of a certain badge, or all badges.
    
    Also limit what is displayed to non-badge admin users to what
    has been marked as allowed to display.
    
    To include the display on an exisiting page, include the following:
    
    <?php
      print open_badges_show_recipients(<bid>);
    ?>
    
    Where <bid> is the badge id number of the particular badge,
    or 'all' if all badges should be shown.
    kwcoffman committed Nov 21, 2011
Commits on Nov 4, 2011
  1. Fix recipients form to include users with only revoked badges

    Since we skip all the entries of revoked badges, if a user had
    only revoked badges, they weren't included in the list of users.
    Fix that.
    
    Cosmetic: add space before uid in the list.
    
    The db_rewrite_sql() is causing issues in the open_badges_notify_new_recipients()
    function.  Don't use it for now...
    kwcoffman committed Nov 4, 2011
Commits on Nov 1, 2011
  1. Re-bake badges to send to backpack when user changes sharing option

    Badges in the baked but not shared state should be re-baked when/if a
    user changes their sharing option from "undecided" or "no" to "yes".
    
    Add a function to do this, call it from the cron routine.
    
    Change the baking routine to take a new parameter to indicate whether
    the entry should be deleted upon a baking failure.  (Do not delete
    when re-baking fails!)
    kwcoffman committed Nov 1, 2011
Commits on Oct 31, 2011
  1. Replace single quotes so they aren't escaped

    drupal_to_js() escapes single quotes with "\".  However, the JSON
    spec does not require single quotes to be escaped.  Apparently,
    some JSON parsers are not happy when they are "improperly" escaped.
    
    To get around the issue, manually replace single quotes with their
    unicode escape sequence!
    kwcoffman committed Oct 31, 2011
Commits on Oct 24, 2011
Commits on Oct 23, 2011
  1. Basic award/expire/revoke is working

    Change user preferences processing.  We are now sending badges off
    OBI and expiring them upon removal.
    
    More cleanup and testing needed!
    kwcoffman committed Oct 23, 2011
Commits on Oct 21, 2011
  1. Rename permissions table to user_preferences, and much more

    - Rename the open_badges_permissions table to open_badges_user_preferences
    - Rename badgeallowsharing field to allowdisplay
    - Add an additional field to the primary key for open_badges_user
    - Badge removal/revocation code
    kwcoffman committed Oct 21, 2011
Commits on Oct 17, 2011
  1. Email substitutions and option to opt out of emails

    - Change schema to add user preference to opt out
      of emails and add processing of new option
    - Change function to send separate emails for each
      badge rather than batching them for each user
    - Add code to do a pre-set number of substitutions
      in the email templates
    - Allow for Markdown-style link substitutions in
      email templates
    kwcoffman committed Oct 17, 2011
Commits on Oct 7, 2011
  1. Standardize on dpm() and make all the commented meesages consistent

    - other misc. changes like testing telling mozilla to send
      to the backpack
    kwcoffman committed Oct 7, 2011
  2. Send notification emails (still needs substitutions)

    - Rename "bulkedit" to "recipients"
    - Add text to indicate images must be PNG and no larger than 256KB
    - Add validation to enforce the size limit
    - Add dependency on mimemail
    - Disable issuing by roles right now
    - Get rid of extra user_load just to print name in watchdog messages
    - Restructure the bake_badge function a little bit
    - Use the mimemail module to send emails with baked image(s) as attachment(s)
      (Todo: Still need code to do the substitutions in the body templates.)
      (Todo: Need to update the DB to mark notification is complete.)
    
    Note:
     Need to add "admin/user/open_badges/settings.edit-notifications-body*"
     to the CKEditor list of approved places to use the WYSIWYG editor for
     the template email bodies.
    kwcoffman committed Oct 7, 2011
Commits on Oct 5, 2011
  1. Update roles forms and processing -- this still needs work!

    Added the ability to specify issuedate, expirationdate, and evidenceURL
    in the roles form.  Added necessary associated theme and processing changes.
    
    Renamed 'evidence' to 'evidenceurl' everywhere
    Renamed 'privateurl' to 'assertionurl' everywhere
    kwcoffman committed Oct 5, 2011
Commits on Sep 30, 2011
  1. Baking now works!

    - Fix the issue that caused baking not to work
    - Change code to bake badges when they are issued rather than
      from cron.  Leave the possibility of doing it from cron.
    - Change schema so bakedimage is stored in filesystem rather
      than in the database
    - Add code to save the baked image in the filesystem
    - Change the location where the raw badge images are stored
      so we don't conflict with user_badges module
    - Limit raw badge images to only PNG
    kwcoffman committed Sep 30, 2011
Commits on Sep 29, 2011
  1. Misc. changes -- Baking almost works

    - Fix bulkedit form processing to check for array before doing foreach.
    - Change schema to store baked image in the open_badges_user table.  (May rethink this!)
    - Add code to generate assertion url component.
    - Get the user's decision on sharing before baking so we can request (or not)
      adding the badge to the backpack.
    - Filled in some of the email-sending code.  Needs more work.
    - Update the assertion request routine.  Baking a badge now works when
      driven from netcat.  Need to understand what is going wrong with cron request.
    kwcoffman committed Sep 29, 2011
Commits on Sep 26, 2011
  1. Various updates

    Added issuedate, expirationdate, and evidence fields to the bulkedit form
    Added validation function for bulkedit form
    Added processing of above new fields when adding badges
    
    Added new admin settings
     - issuer origin (required)
     - made default issuer name required
     - URL settings for baking and sending to the OBI backpack
     - Email notification values
    
    Changed privateurl (assertion) to be indexed in the DB
    
    Function to process requests for assertions and menu entry to route
    the requests to new function.
    
    Stub functions for baking a badge and notifying recipients.
    kwcoffman committed Sep 26, 2011
Commits on Sep 25, 2011
  1. Honor user's choice to share or not, set initial badge state

    Move user's choice of sharing with OBI in the form.  Clean up some
    debugging.  Add some debugging.  Add more info to messages.
    kwcoffman committed Sep 25, 2011
Commits on Sep 23, 2011
  1. Schema changes, form changes, more "badge" -> "open badge" changes

    There is also a bunch of debugging that needs to be cleaned up
    eventually.
    kwcoffman committed Sep 23, 2011
Commits on Sep 12, 2011
  1. Add tab to add/remove multiple users at a time

    Also misc. other fixes
    kwcoffman committed Sep 12, 2011
Commits on Aug 26, 2011
  1. Update admin badge list form

    kwcoffman committed Aug 26, 2011
  2. Save open_badges_user DB entry, plus misc. other stuff

    Change 'issueddate' to 'issuedate' to match DB column.
    Change the user_add_badge function to take/accept more values.
    Some whitespace cleanup.
    kwcoffman committed Aug 26, 2011
  3. Initial commit of the open_badges version

    This code began as a copy of the user_badges module
    http://git.drupal.org/project/user_badges.git
    kwcoffman committed Aug 26, 2011