Digg WordPress Widget Readme
Requirements
Installation
- Download digg.zip (gz)
- Extract and upload digg.php to the plugins/ directory
- Enable Digg Widget in the Plugin admin panel
- In widget admin panel, place digg in the sidebar, and edit it to enter your username
Features
- Displays your latest shared items from Google Reader
- Completely customizable display
- Caching for large traffic sites
Formatting
There are 3 parts needed to format the output.
The first part, called items start in the admin panel, is the first part of the widget after the title. For the default formatting, this is just <ul>
.
The second part, called items end, is the ending of the widget. By default, this is:
</ul>
<a href="%profilelink%" style="float:right;">%username%</a>
The third part is what is called for each item. By default, this is:
<li style="list-style-type: none;"><a href="http://digg.com/users/%user%/"><img src="%userimage%" alt="%user%" /></a> <a href="%link%">%title% (%diggs%)</a></li>
The premise of calling each value is this:
- start
- item
- item
- ...
- item
- end
The formatting for items is:
- %title% - Title of the item
- %link% - Link to the item
- %desc% - Description of the item
- %date% - Date the item was submitted (in GMT)
- %category% - Category of the item
- %diggs% - Number of diggs the item has
- %comments% - Number of comments the item has
- %user% - User name of the submitter
- %userimage% - Link to the submitter's icon
- %number% - The number of the current item
The formatting for start and end is:
- %username% - Your username
- %profile% - Link to your profile
- %rss% - Link to your profile's RSS feed
- %count% - Number of items shown