Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
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
Pages: 1