Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-08-02 17:16:46

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

User Profiles - pvc_users_info

Found this plugin on TXP resources.
Thought it really needed a mention on the forums somewhere.

Offline

#2 2008-08-03 19:53:33

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: User Profiles - pvc_users_info

Articles are much better suited for profiles ;).

Offline

#3 2008-08-03 22:10:28

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

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.

Ideally:
  • 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

#4 2008-08-04 00:18:24

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

Board footer

Powered by FluxBB