Help - Search - Members - Calendar
Full Version: auto e-email as instead of <MTEntryauthor>
Movable Type Community Forum > Additional Resources > Tips and Tricks
beholder
I am trying to get MT to make my name (as the post's author) a mailto: link. I know there is a way to tell MT to do this automatically, so every e-mail gets the post's name as the subject. How do I do that? (see example at www.dailee.com)
girlie
CODE
<a href="mailto:<$MTEntryAuthorEmail spam_protect="1"$>?subject=<MTEntryTitle>"><MTEntryAuthor></a>
beholder
Thanks girle, I am just done playing with it myself and here is what I did:

CODE
Posted by <a href ="mailto:shay@cheezcake.net?subject=<$MTEntryTitle$>"><$MTEntryAuthor$></a> at...


and it seem to work fine.. what's the spam_protect thing? why should it be set to 1?
girlie
QUOTE
If the spam_protect attribute is provided, the email address will be modified so as to prevent spambots from harvesting it. The web browser, however, will still display the email address properly. For example, if the email address is foo@bar.com, and you use

<$MTEntryAuthorEmail spam_protect="1"$>

the email address will be displayed as foo@bar.com.
beholder
Ok, adding it up.. thanks.. wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.