Tell A Friend

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Muzicman
    Sergeant Major

    • Aug 2006
    • 89

    Tell A Friend

    Can someone please point me toward a "Tell-A-Friend" program or script (I'm not sure of the techno terms). I just want to allow my purchasers to recommend my site to their friends by signing them up on a form that will send their friends an email note.

    My skill level is "newbie", so I need it in simple terms. I know there has to be some postings somewhere about this, but I can't find it through a word search.
  • racefan20
    Major General

    • Jul 2005
    • 2335

    #2
    Re: Tell A Friend

    Someone may have a better one, but this one does the trick. Just paste it into an html box in BV, edit the lines in maroon to suit your needs and you're done.


    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    //Script by Trånn: http://come.to/tronds
    //Submitted to JavaScript Kit (http://javascriptkit.com)
    //Visit http://javascriptkit.com for this script
    var initialsubj="Email subject line here"
    var initialmsg="Email text here: "+window.location
    var good;
    function checkEmailAddress(field) {
    var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.go v)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.co op)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
    if (goodEmail) {
    good = true;
    }
    else {
    alert('Please enter a valid address.');
    field.focus();
    field.select();
    good = false;
    }
    }
    u = window.location;
    function mailThisUrl() {
    good = false
    checkEmailAddress(document.eMailer.email);
    if (good) {
    //window.location = "<A href="mailto:"+document.eMailer.email.value+"?subj ect="+initialsubj+"&body="+document.title">mailto: "+document.eMailer.email.value+"?subject="+initial subj+"&body="+document.title+" "+u;
    window.location = "<A href="mailto:"+document.eMailer.email.value+"?subj ect="+initialsubj+"&body="+initialmsg">mailto:"+do cument.eMailer.email.value+"?subject="+initialsubj +"&body="+initialmsg
    }
    }
    // End -->
    </script>

    <form name="eMailer">
    Tell a friend:
    <input type="text" name="email" size="26" value=" Enter Address Here" onFocus="this.value=''" onMouseOver="window.status='Enter email address here and tell a friend about this site...'; return true" onMouseOut="window.status='';return true">
    <br>
    <center><input type="button" value="Send this now!" onMouseOver="window.status='Click to send an email (with this page address) to a friend! Enter email address above...'; return true" onMouseOut="window.status='';return true" onClick="mailThisUrl();">
    </form>
    My NASCAR Forum

    Comment

    • Muzicman
      Sergeant Major

      • Aug 2006
      • 89

      #3
      Re: Tell A Friend

      Hey Racefan20,

      I copied and pasted the script you provided. Is there a way to customize how many friends the email can be sent to?

      If I use another company's script would I just paste it in the same way? Do I desigate a new page just for a bigger script?

      Comment

      • racefan20
        Major General

        • Jul 2005
        • 2335

        #4
        Re: Tell A Friend

        You'll need to ask someone smarter than me about that - forms are not a strong suit of mine.
        My NASCAR Forum

        Comment

        • Muzicman
          Sergeant Major

          • Aug 2006
          • 89

          #5
          Re: Tell A Friend

          Thanks, I'll keep looking.

          Comment

          • navaldesign
            General & Forum Moderator

            • Oct 2005
            • 12080

            #6
            Re: Tell A Friend

            Tell A Friend Script
            Navaldesign
            Logger Lite: Low Cost, Customizable, multifeatured Login script
            Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
            DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
            Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

            Comment

            Working...
            X