Changes between Version 2 and Version 3 of BadgeDoc
- Timestamp:
- Dec 24, 2013, 7:47:07 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BadgeDoc
v2 v3 2 2 3 3 '''Badges''' are symbols of accomplishment by volunteers or teams - 4 for example, how much computing they' re contributed.4 for example, how much computing they've contributed. 5 5 Badges are shown as icons on project web sites. 6 6 In the future, they may also be shown in client GUIs and statistics sites. … … 12 12 13 13 The data associated with a badge includes: 14 * A name (used to identify the badge internally; not shownto users)14 * A name (used to identify the badge internally; not visible to users) 15 15 * The URL of an image file. 16 The image will be sized on display (currently 48 pixels high).17 Make itsomewhat larger than this, e.g. 300x300 pixels.16 Images are sized on display (currently 48 pixels high). 17 Make them somewhat larger than this, e.g. 300x300 pixels. 18 18 For flexibility, use a PNG with transparent background. 19 * A title - a shortphrase that explains the accomplishment19 * A title - a phrase that explains the accomplishment 20 20 for which the badge is granted. 21 21 … … 25 25 == The default badges == 26 26 27 By default (for new projects) there arebadges27 The BOINC server code supports badges 28 28 for the top 1%, 5%, and 25% of recent average credit (RAC). 29 29 They are represented by gold, silver, and bronze medal images, respectively, 30 30 and are assigned to both users and teams. 31 31 32 The script that assigns these badges is here: 33 http://boinc.berkeley.edu/gitweb/?p=boinc-v2.git;a=blob;f=html/ops/badge_assign.php 34 35 To enable these badges on your project's site, 36 add the following to your config.xml file: 37 {{{ 38 <task> 39 <cmd>run_in_ops ./badge_assign.php</cmd> 40 <period>24 hours</period> 41 <output>badge_assign.out</output> 42 </task> 43 }}} 44 32 45 == Writing a badge-assignment script == 33 46 34 The script that assigns the default badges is here: 35 http://boinc.berkeley.edu/gitweb/?p=boinc-v2.git;a=blob;f=html/ops/badge_assign.php 36 37 You can use this script as a template for writing your own. 38 47 You can use the default badge-assignment script as a template for writing your own. 39 48 The script uses the following utility functions, defined in '''html/inc/util_ops.inc''': 40 49 {{{ … … 75 84 Use the admin web interface (see below) to clean up badge records as needed. 76 85 When you're done, arrange to run the script periodically 77 by adding something like this to your project config file: 78 {{{ 79 <task> 80 <cmd>run_in_ops ./badge_assign.php</cmd> 81 <period>24 hours</period> 82 <output>badge_assign.out</output> 83 </task> 84 }}} 86 by adding it as a task in config.xml (see above). 85 87 86 88 == Managing badges ==