Textpattern Plugin | rss_author_info
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. The plugin provides the ability to also define a URL, nickname, bio, email and image for each author. You can also display the total number of live posts for the author and the last posted date. This plugin is ideal for sites with multiple authors.
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. Here is an example to guide you through the setup:
- 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 below.
Tag and Parameter Descriptions
<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.
Comments
26. January 2005
Hi, I discovered your site through the Textpattern forums. I was wondering: would it possible, using this plugin, to generate a list of all the authors on a multi-author blog, and have each name link to an archive page containing posts by that author? (I am a Textpattern newbie, so my apologies in advance if this is a dumb question.)
Aaron
Add a comment
You may use textile in your comment. Gravatars are enabled. Your email will not be displayed and will remain private. I reserve the right to edit or delete comments.
