Author Contribution
Description
This recipe automatically keeps a list of the pages each author has edited. The "Author Contributions" page is kept in Profiles.<author's name>-Contrib. Contributions by authors without profile pages are placed in a single Profiles.Other-Contrib page.
For example if Bob's profile page is Profiles.Bob, the a Profiles.Bob-Contrib RecentChanges-type page will be kept that lists the pages Bob has edited.
Installation
Download authorcontrib.phpΔ and place it to your cookbook/ directory, then insert the following line in your local/config.php file:
if ($action == 'edit' || $action == 'comment') { include_once("$FarmD/cookbook/authorcontrib.php"); }
You can use the "$FarmD
/" part even if your wiki is not in a WikiFarm.
Notes
If want to enable $EnablePostAuthorRequired
, this recipe must be included after the line that sets $EnablePostAuthorRequired
to 1.
Release Notes
- 2007-07-14
- Added version information; markup for lines is now configurable; fixed lowercase-username issue (patch by Lordmundi)
- 2007-09-16
- Minor update. Added s note about searching for -Contrib pages; the script now just exits for actions other than edit and comment.
See Also
- The old version of this recipe, which saved contributions in a separate group.
- An older script, authorcontribution.phpΔ. Use it at your own risk.
- WikiSh gives the capability to handle this in a different way, simply selecting appropriate lines from AllRecentChanges. See WikiShExamples#ListAuthChanges for the 3 (or more by now?) ways that people have solved this problem.
Contributors
- Pm (Original version)
- Hagan Fox
Comments
See discussion at AuthorContribution-Talk
User notes +5: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.