Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-06-22 13:28:46

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

Output a User's email address

Hey folks – I would like to be able to output any user’s email address (if it were obfuscated, awesome, but no necessary) outside of any article context. I’m imagining something like:

<txp:user_email user="userLoginName" />

That way, I could output an email address into a zem_contact form or wherever a site, and still allow a client to update it by updating their User info.

Is there a plugin or some php code that might do the trick? If no plugin exists at the moment, with some guidance maybe I could build one…(she said with trepidation).

Thanks!

-Nora

Offline

#2 2010-06-22 13:34:35

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,942
Website GitHub

Re: Output a User's email address

Could jmd_author help at all?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2010-06-22 13:41:43

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

Re: Output a User's email address

Brilliant! Thanks – I think that will do the trick.

Offline

Board footer

Powered by FluxBB