Changes between Version 5 and Version 6 of BadgeDoc
- Timestamp:
- Aug 18, 2014, 2:13:21 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BadgeDoc
v5 v6 20 20 for which the badge is granted. 21 21 22 Badges are granted (or removed) by a PHP script that you would typically 22 The [HtmlOps administrate web interface] has a page for administering badges, 23 which lets you add and remove badges. 24 25 Badges are typically granted (or removed) by a PHP script that you 23 26 run as a periodic task from your config.xml file. 24 27 … … 72 75 if '''$k''' is negative, remove them all. 73 76 74 Using these utility functions, the script works as follows:77 Using these utility functions, the example script works as follows: 75 78 76 79 * Use '''get_badge()''' to get the gold, silver, and bronze badge objects. … … 86 89 While you're developing your own badge assignment script, 87 90 you can run it manually in your project's '''html/ops''' directory. 88 Use the admin web interface (see below)to clean up badge records as needed.91 Use the admin web interface to clean up badge records as needed. 89 92 When you're done, arrange to run the script periodically 90 93 by adding it as a task in config.xml (see above). 91 94 92 == Managing badges==95 == Another example badge-assignment script == 93 96 94 The [HtmlOps administrate web interface] has a page for administering badges, 95 which lets you add and remove badges. 97 If your project tracks [PerAppCredit per-app credit], 98 you can assign badges based on per-app total credit. 99 A script for doing that is in '''html/ops/badge_assign_custom.php'''.