rss_author_info
Plugin Details
- Download:
- rss_author_info v0.2
- Textpattern Forum:
- View discussion
- Plugin Type:
- Regular
- Current Version:
- 0.2
- Status on this site:
- Disabled
First off, to give credit where credit is due, this plugin was modeled after Stanton Champion’s spc_section_alias plugin.
This plugin provides the ability to display more than just an author’s name including a URL, nickname, bio, email, image, total number of live posts and the last posted date for each author. This plugin is ideal multi-author sites.
Overview
In order to use the plugin, the <txp:rss_author_info /> tag must first be defined for each author on your site. The definition must somehow be included in your article page. This can be by creating a separate form that will be included in any page that displays an article or by adding the appropriate code to an existing form that you include on your pages.
Plugin Tags and Attributes
<txp:rss_author_info />
This is the main tag for the plugin. All TXP authors should be defined on a form that is included in all article forms.
- username – REQUIRED – must match the TXP username
- nickname – specifies a nickname for the author
- url – a link associated with the author
- bio – biographical information or any sort of description associated with the author
- imageid – the TXP given id for an uploaded image file to be associated with the author
- email – overrides the email address entered for the author in the admin interface
<txp:rss_author_info_nickname />
Displays the author nickname.
<txp:rss_author_info_bio />
Displays the author’s biographical info.
<txp:rss_author_info_url />
Displays a link to the author’s website.
- title – used for the link text and title. defaults to ‘Website’.
<txp:rss_author_info_postcount />
Displays the total number of live posts for the author.
<txp:rss_author_info_lastpostdate />
Displays the date of the author’s last post.
- dateformat – accepts any php date format. defaults to ‘F j, Y’.
<txp:rss_author_info_image />
Displays the image file associated with the author.
<txp:rss_author_info_email />
Displays the author’s email address.
Example
- Create a new article form called rss_author_info
- Add the author definition where the username corresponds to the TXP username. All fields except username are optional:
<txp:rss_author_info username="your-username" nickname="your-nickname" bio="your-bio" url="your-url" imageid="your-imageid" email="your-email" /> - Include the form on your article page:
<txp:output_form form="rss_author_info"/> - Make calls to the tag on your article form. For example:
<txp:rss_author_info_nickname />or any of the other tags above.
