Weasel's Authorshare
A plugin that allows you to display a percentage share of the published database per author, with many display options.
- Upload
wz_authorshare.php or it's containing directory to the /wp-content/plugins/ directory
- Activate the plugin through the 'Plugins' menu in WordPress
- View the plugin view the admin menu under the "Users" tab, subheading "Author Share"
(optional) Place a single-user template tag. This displays the specified user's share of the database:
<?php wz_authorshare(USER_ID,PREFACE,POSTFACE); ?>
Where:
- USER_ID is the numerical user ID of the person you wish to show the percentage for
- PREFACE (optional) is any HTML or text you would like inserted before the percentage, and
- POSTFACE (optional) is HTML or text you would like to be inserted after the percentage.
Example:
','%
'); ?>
would output
(optional) Place a top-ten style list that displays a nice ranking display:
<?php wz_authorshare_top10(PRE, POST, DECIMALS, SHOWALL, PUBLICUSERS); ?>
Where:
- PRE is text/HTML to precede the line of generated text. EG: '
- '
- POST is text/HTML to follow each line of generated text. EG: '
'
- DECIMALS is number of decimal places to find a percentage to. EG: 2
- SHOWALL is set to 0 to utilize below. otherwise, this figure denotes the top-X list size. EG: 10
- PUBLICUSERS is a list of comma seperated user IDs to display - if this is to be used, SHOWALL must be
zero. EG: '2,4,6,7,14'
Requires: 2.0.2 or higher
Compatible up to: 2.3.1
Last Updated: 2007-12-27
Downloads: 312
Average Rating
(1 ratings)
Support
Got something to say? Need help?