Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-10-02 21:36:40

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

How to get user information?

I have seen several plugins to enhance and output author data, but they operate in an article context. I would like to output the email and real name associated with a given username, outside of any article.

I was hoping (fingers crossed!) that such a plugin exists, or that perhaps someone could point me in the right direction, php/txp-code wise, and I could make this into a plugin.

Any advice much appreciated!

Offline

#2 2010-10-03 04:09:54

aslsw66
Member
From: Canberra, Australia
Registered: 2004-08-04
Posts: 342
Website

Re: How to get user information?

The easiest way of getting data out of a database table is using smd_query. I find that if you mix it with adi_gps, then you can pass query strings to a page and extract data on the basis of the strings used.

Offline

#3 2010-10-03 07:56:46

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,752
Website

Re: How to get user information?

Would smd_bio be of help here? I’ve not tested it but it seems that <txp_smd_bio_info> can also output the standard user information and you can specify a particular author name or a particular privs-level rather than the current article author.


TXP Builders – finely-crafted code, design and txp

Offline

#4 2010-10-07 17:09:17

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: How to get user information?

Excellent. Thanks to both of you.

I thought smd_bio was overkill for what I wanted to do, but then realized it really may come in handy for creating properly formatted vcards, but allow my clients to edit their contact information if necessary.

Thanks a lot!

Offline

Board footer

Powered by FluxBB