Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
User Profiles - pvc_users_info
Found this plugin on TXP resources.
Thought it really needed a mention on the forums somewhere.
Offline
Re: User Profiles - pvc_users_info
Articles are much better suited for profiles ;).
Offline
Re: User Profiles - pvc_users_info
jm,
I’m trying to create short bios at the end of each article.
So when an author posts – the bio is added automatically.
- Author image or Avator
- Real Name
- Bio
- Email link
- Website link
Can your plugin do that?
If so, then [Insert some digital dancing here].
- )
—
T
Offline
Re: User Profiles - pvc_users_info
jmd_author can modify an author’s name (output), but it doesn’t do any profile work. However, you can do something like this in your article form:
<txp:php>
$name = get_author_name($GLOBALS['thisarticle']['authorid']);
$bioId = safe_field("id", "textpattern", "title='$name'");
if ($bioId)
{
echo article_custom(array(
'form' => 'profile',
'id' => $bioId,
));
}
</txp:php>
In your “profile” form, add custom fields and other TXP tags for the profile output.
(If there was a title attribute for article_custom, you could do <txp:article_custom form="profile" title='<txp:author/>'/>
.)
Offline
Pages: 1