Page 1 of 1

findmore plug in help

Posted: Fri May 04, 2007 2:55 am
by rj
I am almost finished getting this darn thing ready for prime time.

I need some help regarding putting in a EMAIL THIS ARTICLE link into the findmore plugin.

All it has to do is when clicked, bring up the users email program with the link to the article in the body. My confusion is how to write the code so it prints the url to each individual article.

Thanx...

RJ

Re: findmore plug in help

Posted: Fri May 04, 2007 1:08 pm
by garvinhicking
Hi!

Code: Select all

<a href="mailto:blabla@bloblbub.com?subject={$entry.title|@escape:url}&body={$entry.link|@escape:url}">
or something like that? :)

Regards,
Garvin

Posted: Fri May 04, 2007 4:40 pm
by rj
Email program comes up and I want everything blank other than in the body the URL of the article.

This is what I am trying, and failing at :)

<a href="mailto:?subject={$entry.title|@escape:url}&body={$entry.link|@escape:url}"> <img src="{$entrydata.path}email.gif" width="14" height="14" border="0"/> Email Article</a>

It looks good though!

It brings up the mail program but doesn't put the link to the article in the body.

Posted: Fri May 04, 2007 5:59 pm
by judebert
Hmmm... could be that the entry link is empty, or that there's a problem with the formatting. (I thought the recipient address was required.) Try this, and tell me what it does:

Code: Select all

<a href="mailto:?body={$entry.link|@escape:url|default:'A Blog Entry'}&subject={$entry.title|@escape:url}"> <img src="{$entrydata.path}email.gif" width="14" height="14" border="0"/> Email Article</a> 

Posted: Fri May 04, 2007 9:39 pm
by rj
it writes:

A Blog Entry

into the body


RJ

Posted: Sat May 05, 2007 6:25 pm
by judebert
AHA! The problem is that your entry has no .link!

I think what you're looking for is $entrydata.url instead of $entry.link.

Posted: Sat May 05, 2007 6:56 pm
by rj
Consider me stupid! :)

Remember, all I want is the email program to come up with ONLY the link to the article in the body. Subject, To From do not matter.

Here is what I have that doesnt work:

<a href="mailto:?body={$entry.link|@escape:url|default:'A Blog Entry'}&subject={$entry.title|@escape:url}"> <img src="{$entrydata.path}email.gif" width="14" height="14" border="0"/> Email Article</a>

Here is your correction:

$entrydata.url

Could you please put it in where it belongs for me cuz Im
to stupid to do it myself? :)

RJ

Posted: Sat May 05, 2007 7:11 pm
by judebert
You're not stupid. You've gotten this far, haven't you?

I said,
I think what you're looking for is $entrydata.url instead of $entry.link.
So here's what I think you need:

Code: Select all

<a href="mailto:?body={$entrydata.url|@escape:url|default:'No Link!'}&subject={$entry.title|@escape:url}"> <img src="{$entrydata.path}email.gif" width="14" height="14" border="0"/> Email Article</a>

Posted: Sat May 05, 2007 9:53 pm
by rj
hey hey hey!!!

Dat was it!

Thanx pal...

RJ