No announcement yet.

Tell A Friend Script

This topic is closed.
This is a sticky topic.
  • Filter
  • Time
  • Show
Clear All
new posts

  • Carl II
    Re: Tell A Friend Script

    Hi Naval,

    I was determent on getting this T-A-F script to work. But I surrender L I tried several nights, but I keep ending up with the same message: [cannt find page] and in the adresbox. So I guess I didn’t upload tellafriend.php in the right folder or something like that. Could you please explain in what folder I should upload that and the other 2 files?

    I DID check both password and username in the PHP script a zillion times. That is by the way the only change I made in that script. The other two I didn’t even op.

    Your help would be extremely appreciated.


    Leave a comment:

  • cjfoster
    Re: Tell A Friend Script


    Yes, You are right! I did indeed insert our email address where I shouldn't have. The form works 100% now.

    Well that's it! I have finished our web page ... with the help of this forum and you.

    What fun!

    My eternal gratitude to all.

    Leave a comment:

  • navaldesign
    Re: Tell A Friend Script

    Line 21 should look like this if you have not changed anything:

    $mail->From = $youremail;

    Most probably you have indeed put in some @ not needed there , f.e. typing in your real email address. (in this line, your email address is already included automatically, you MUST NOT change the line by typingg your real email address)

    Leave a comment:

  • Nyoman
    Re: Tell A Friend Script

    check your tellafriend.php using php editor and see on line 21. there you will see @ which is unexpected for your script

    Leave a comment:

  • cjfoster
    Re: Tell A Friend Script

    Hi again Naval,

    I followed your instructions BUT I've done something wrong it seems. I get the following error message when clicking on my "tell a friend' button

    Parse error: parse error, unexpected '@' in /home/bziipuvf/public_html/tellafriend/tellafriend.php on line 21

    Any ideas please?

    Thanks much!

    Leave a comment:

  • Girlonthehill
    Re: Tell A Friend Script

    Nice one, Naval! You are Mr Helpful. Even with all this stress flying about! Lol.

    Leave a comment:

  • navaldesign
    started a topic Tell A Friend Script

    Tell A Friend Script

    I’ve seen in many posts that members of the forum are asking for a “Tell a Friend” script, so I thought I could prepare one, using Bluevoda.
    The script itself consists of two parts: the visual part, which is a simple form built directly in Bluevoda, and the processing script which is built in php. The script is called “TAF.php” .

    To see, test and download all necessary material please click here.

    These are the instructions for installing our TAF script. Please follow to the letter, to avoid errors. The procedure is quite simple, and it only involves publishing the relevant pages on your site, and uploading through FTP or File Manager, the TAF.php file that is required to send the mail.
    By following these steps, the TAF form will appear in a popup, leaving the original page as it is. However, you can also implement the form directly in your pages, as explained in step 4.

    Step 1.

    You will find 5 .bvp files in this zip. They are:

    1. TAFemailerror.bvp
    2. TAFspamerror.bvp
    3. TAFreturn.bvp
    4. TAFform.bvp
    5. TAFbuttons.bvp

    Open pages 1 – 3 in BV. Customize colours if you wish. Save the pages and publish them on your site.

    Open page 4 in BV. Customize colours if you wish. Now, double click on the form. The form includes two hidden fields: Subject and Mailbody.

    Double click on the first hidden field (Subject) and change it to whatever you want your mail subject to be, i.e. “ Found an interesting site!
    Double click on the second hidden field (Mailbody), and change it to whatever you want your mailbody to be, i.e. “ I have found this site to be very interesting. Click on to visit! “.

    As you see, in the mailbody, you must include the link to your site.

    The rest of the form settings is already setup by us:

    Action: TAF.php
    Encoding: multipart / formdata
    Method = POST

    Ok, now you SAVE your form (as TAFform) and publish it.

    Step 2.

    Upload on the server, using either FTP or File Manager, the “ TAF.php “ file that you have found in the zip. No editing is required.

    Step 3.

    Now you need to place in your pages, a TAF button. Open the “ TAFbuttons “ page that came with the zip, and open your own page as well.

    Copy whichever TAF button you like, and simply paste it in your own page. Save your page and publish it. Test it ! Please note that it will only work when published, not in preview.

    If you wish to use a button of your own or one you have found in the VodaHost TAF Buttons Library , you will need to link it to the script. To do so, in BV, click on the TAF button, and when the Image Properties dialog box appears, click on Link, then in the URL field, paste the following code:

    #" onClick="'TAFform.html', '','width=310,height=170'); return false;"

    That’s all. Save your page and publish it. Test it !

    Step 4. Only read if you don’t want the TAF form in a popup

    You can implement the TAF form directly in your pages. To do so, just copy the form in your page. Customize it as explained in step 1. You will also need to modify the TAFemailerror.bvp, TAFspamerror.bvp, and TAFreturn.bvp to become full size pages. Save and publish them.

    That’s all !

    Please note that I have put a “Hi $friendname” as a salute before the mailbody.

    If you need further information or clarifications, please contact me here