Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-02-17 01:18:15
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
mrh_email_article_link
NOTE:
UPDATE: Seems to work fine under 4.0.4
New parameters: mymessage for including your own text in the email body—(x)html should work fine, and prepend (when set to ‘yes’ will prepend mymessage to the article URL).
Download:
Summary:
<b>mrh_email_article_link</b> generates a simple “mailto:” link using either a button image and/or text link that provides the URL for the current article (thus this should be used inside a single article form) and the title in the subject line. It’s like one of those “email a friend” features you see on sites like http://www.oreilly.com.
Parameters:
subject: the TXP global variable $thisarticle[‘title’] is the default, but you can set this manually.
textlink: the string “Email article link” is the default, but you can set your own with this parameter. Note: this is required, because it is used for the “alt” parameter even if you are using an image link.
imagepath: default is empty, but if you have an image you would like to use as a button, you can set it here like imagepath=”./images/my_button.gif” and it will override the textlink. Width and height params are automatically set.
classname: default is empty, but this allows you to style your textlink or image link with a div defined with your own class.
toemail: email address if you wish to use this as a to email link. Email address is obfuscated (hidden from spambots).
imagetext: Option to set if you want the textlink to accompany a link image button. Default is ‘no’. Set to ‘yes’ if you would like to present the image button with the link text to the side.
Thanks to Trailgirl for catching validation errors (fixed).
Last edited by aesop1 (2006-11-07 09:11:25)
Offline
#2 2005-02-17 03:24:59
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: mrh_email_article_link
all the foot-fetishists, just settle… that parameter’s “[to]email”
nice work aesop, handy
Offline
#3 2005-02-17 03:40:16
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: mrh_email_article_link
You have no idea how many times I seriously considered changing the variable name for just that reason.
Last edited by aesop1 (2005-02-17 15:16:45)
Offline
Re: mrh_email_article_link
It works great, thank you!
Offline
Re: mrh_email_article_link
Thanks! I have a clients site I am working on and was just thinking about this:)
JAmie
Offline
#6 2005-05-16 05:04:41
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: mrh_email_article_link
Don’t use this with RC3 until further notice. RC3 has changed several variables so this plugin will wreak havoc if used. I should get it updated this week.
Offline
Re: mrh_email_article_link
This looks really great. Can’t wait until the RC3 version is up, this is one of those plugings I have been wanting for some time!
Offline
Re: mrh_email_article_link
Has the rc3 version of this plugin been posted elsewhere? Does anyone have an updated or fixed version?
Thanks,
T
Offline
#9 2005-06-07 02:54:53
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: mrh_email_article_link
Sorry, I have a temporary issue with my web site that I store this plugin on (long story), but I sent this to you in an email. Let me know if it doesn’t come through. But yes, it should be fixed.
Matt
Offline
Re: mrh_email_article_link
I wrote you back … it came through but when I tried to install it I was told it was bad format for a plugin etc. Maybe try resending it to me as an attachment?
If I can figure this out, I probably will temporarily host it for you – or get a friend to.
Thanks!
Offline
#11 2005-07-11 06:28:33
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: mrh_email_article_link
Download is available again, sorry for the long wait. See sticky at top for link.
Offline
Re: mrh_email_article_link
It works perfectly on txp 1.0rc3. Thanks.
Offline