Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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:

Click Here

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

#4 2005-02-17 15:34:51

trailgirl
Member
Registered: 2004-06-04
Posts: 68
Website

Re: mrh_email_article_link

It works great, thank you!

Offline

#5 2005-02-17 15:46:43

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

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

#7 2005-06-01 09:24:24

MisterTinAZ
New Member
From: Arizona
Registered: 2005-06-01
Posts: 7
Website

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

#8 2005-06-06 20:41:45

MisterTinAZ
New Member
From: Arizona
Registered: 2005-06-01
Posts: 7
Website

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

#10 2005-06-07 19:20:39

MisterTinAZ
New Member
From: Arizona
Registered: 2005-06-01
Posts: 7
Website

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

#12 2005-07-11 10:12:11

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: mrh_email_article_link

It works perfectly on txp 1.0rc3. Thanks.

Offline

Board footer

Powered by FluxBB