Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogHow to add "Email to a Friend" functionality in Blog Module?How to add "Email to a Friend" functionality in Blog Module?
Previous
 
Next
New Post
7/10/2008 8:41 AM
 

Hi All,

I want to add "Email to a Friend" functionality for the Blog Module in the "View Blog" section.
Here, i want i want to add this "Email to a Friend" link besides to "Comments" link.


Please, Help me it's a very urgent. If you people have any idea then please give me a solution in depth, so it will become easy to me to configure it with my project.

Regards,
Hiten Kandoliya

 
New Post
7/10/2008 5:48 PM
 

Hi Hiten,

you will need download the source package of the module and open it using VS2003 and DNN 3.4.0. I would suggest you to grab the permalink field from the entry object and send it in the email's subject to the desired address.

Best regards,
Dario Rossa

 
New Post
7/12/2008 2:39 PM
 

Hi Hiten,

In addition to Dario's suggestion, you can also try adding the following to ViewEntry.ascx.vb wherever you want the Email to a Friend link to appear:

<script language="javascript">
function emailToFriend()
{
var etf = "mailto:?subject=Interesting Blog Post";
etf += "&body=I read this post and thought you might find it interesting: " + document.title + " (" + location.href + ")";
location.href = etf;
}
</script>
<a href=" emailToFriend();">Email to a Friend</a>

 

This doesn't require a re-compile, but it also requires that the user is on a machine where they have their mail client installed, so it's not as elegant as creating a custom form and some server side code to fire the email off.

HTH,

Don



Don Worthley
Software Architect
Element Eleven

 
New Post
7/15/2008 10:59 AM
 

Hi Don Worthley,

Thanks for your cooperation but i got one free "Tell-a-Friend" module and fulfills my purpose.

Thanks & Regards,

Hiten Kandoliya

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogHow to add "Email to a Friend" functionality in Blog Module?How to add "Email to a Friend" functionality in Blog Module?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out