Changes between Version 5 and Version 6 of BadgeDoc


Ignore:
Timestamp:
Aug 18, 2014, 2:13:21 PM (10 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BadgeDoc

    v5 v6  
    2020   for which the badge is granted.
    2121
    22 Badges are granted (or removed) by a PHP script that you would typically
     22The [HtmlOps administrate web interface] has a page for administering badges,
     23which lets you add and remove badges.
     24
     25Badges are typically granted (or removed) by a PHP script that you
    2326run as a periodic task from your config.xml file.
    2427
     
    7275if '''$k''' is negative, remove them all.
    7376
    74 Using these utility functions, the script works as follows:
     77Using these utility functions, the example script works as follows:
    7578
    7679 * Use '''get_badge()''' to get the gold, silver, and bronze badge objects.
     
    8689While you're developing your own badge assignment script,
    8790you 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.
     91Use the admin web interface to clean up badge records as needed.
    8992When you're done, arrange to run the script periodically
    9093by adding it as a task in config.xml (see above).
    9194
    92 == Managing badges ==
     95== Another example badge-assignment script ==
    9396
    94 The [HtmlOps administrate web interface] has a page for administering badges,
    95 which lets you add and remove badges.
     97If your project tracks [PerAppCredit per-app credit],
     98you can assign badges based on per-app total credit.
     99A script for doing that is in '''html/ops/badge_assign_custom.php'''.