Re: Tell A Friend Script
If you read the very first post in this thread, you will see that it does contain step by step instructions
Tell A Friend Script
Collapse
This topic is closed.
X
This is a sticky topic.
X
X
-
Re: Tell A Friend Script
Hi
My name is jackjack and I must be really dumb because I want to use this tell a friend form. I can't seem to get the knack of it. I need step by step Instructions. I am completly lost. I downloaded the TAF.php and that is as far as I got I am struck. Can someone please help.
Any and all help is greatly appreciated.
jackjack
Leave a comment:
-
-
Re: Tell A Friend Script
Did you upload the error pages?
if yes, please provide a link to the page with the TAF buton.
Leave a comment:
-
-
Re: Tell A Friend Script
Hi Naval,
Good Day.
I am using your form already for "Tell a Friend", however, when i tested &/or "submit" it, it doesn't show me the thank you message. I also try testing to input an error email address but it doest return me with my Error Link Messages. I followed exactly your procedure stated above however i am affraid i missed one. I already uploaded TAF in my control panel & edited some of the portion like names of link. Here's the TAF format i copied from my control panel:
<?php
# ----------------------------------------------------
# -----
# ----- This script was created by DB Technosystems.com
# -----
# ----- http://www.dbtechnosystems.com
# -----
# ----------------------------------------------------
// Receiving variables
@$Subject = addslashes($_POST['Subject']);
@$Mailbody = $_POST['Mailbody'];
@$Friendsemail = addslashes($_POST['Friendsemail']);
@$Youremail = addslashes($_POST['Youremail']);
@$Yourname = $_POST['Yourname'];
$Yourname = stripslashes($Yourname);
$$Friendname = stripslashes($Friendname);
$Mailbody = stripslashes($Mailbody);
// Validation
if (strlen($Friendsemail) == 0) {
header("Location: MailerError.html");
exit;
}
if (strlen($Youremail) == 0) {
header("Location: MailerError.html");
exit;
}
if (substr_count($Friendsname , '@') > 1) {
header("Location: SpammerError.html");
exit;
}
if (substr_count($Friendsname , 'www.') > 1) {
header("Location: SpammerError.html");
exit;
}
if (substr_count($Friendsname , 'http:') > 0) {
header("Location: SpammerError.html");
exit;
}
if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $Friendsemail))
{
header("Location: MailerError.html");
exit;
}
if (! ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+', $Youremail))
{
header("Location: MailerError.html");
exit;
}
if (substr_count($Friendsemail , '@') > 1) {
header("Location: MailerError.html");
exit;
}
if (substr_count($Friendsemail , 'www.') > 0) {
header("Location: SpammerError.html");
exit;
}
if (substr_count($Friendsemail , 'http:') > 0) {
header("Location: SpammerError.html");
exit;
}
if (substr_count($Youremail , '@') > 1) {
header("Location: MailerError.html");
exit;
}
if (substr_count($Youremail , 'www.') > 0) {
header("Location: SpammerError.html");
exit;
}
if (substr_count($Youremail , 'http:') > 0) {
header("Location: SpammerError.html");
exit;
}
if (substr_count($Subject , '@') > 0) {
header("Location: MailerError.html");
exit;
}
if (substr_count($Subject , 'http:') > 0) {
header("Location: MailerError.html");
exit;
}
if (substr_count($Subject , 'www') > 0) {
header("Location: MailerError.html");
exit;
}
if (substr_count($Mailbody , '@') > 0) {
header("Location: SpammerError.html");
exit;
}
if (substr_count($Mailbody , 'http:') > 1) {
header("Location: SpammerError.html");
exit;
}
if (substr_count($Mailbody , 'www.') > 1) {
header("Location: SpammerError.html");
exit;
}
//Sending Email to the Friend's email address
$header = "From: $Yourname < $Youremail >" . "\r\n";
$subject = $Subject;
$email_to = $Friendsemail;
$message = "Hi $Friendsname,\n"
. "$Mailbody\n"
. "\n"
. "Bye, \n"
. $Yourname;
*****($email_to, $subject ,$message ,$header ) ;
header("Location: Return.html");
?>
I am glad to receive feedback from you. Thanks & God Bless.
Best regards,
Dimz
Leave a comment:
-
-
Re: Tell A Friend Script
Hi George,
Ic. Thank you for yr help and info.
Nice day!
Leave a comment:
-
-
Re: Tell A Friend Script
That is what i meant, you can't use the Javascript because the forum script strips it off. It works as entire page because there is no Javascript in a simple link.
Leave a comment:
-
-
Re: Tell A Friend Script
Hi George,
I have managed to create a link in the forum by linking it as http://domainname.com/TAF.html. But do you hv any ideas in as how to set the width=310 and height=170 of the window??
Thank you very much.
Regards,
Eric
Leave a comment:
-
-
Re: Tell A Friend Script
Not sure if you can do it, forum scripts usually assign their own targets to links.
Leave a comment:
-
-
Re: Tell A Friend Script
Hi George,
Sorry to trouble you once again.
I hv tried to insert the link #" onClick="window.open('TAFform.html', '','width=310,height=170'); return false;" into a picture inside my forum (i'm using vBulletin); so that when being clicked it will pop-out the mini tell a friend form; but it doesn't seems to work.
Are there any special codes for the use of attachment of the link to a picture/ photos?
Thank you.
Leave a comment:
-
-
Re: Tell A Friend Script
Hi George,
Thank you for solving the 'mystery' of the spam msg! And thank you for modifying the TAF file for me.
Nice day to you!
Regards,
Eric
Leave a comment:
-
-
Re: Tell A Friend Script
Please use my contact form and send me your TAF.php file, there must be something wrong with it.
Leave a comment:
-
-
Re: Tell A Friend Script
Hi Naval,
Just an elaboration, what I meant is that the "Spam Menu" popout after I have completed filling up the details (i.e. my name, my email, friend's name & friend's email) and pressed "tell a friend" button.
The link is @ my main page www.BabyandPapa.com.
Thank you very much for the prompt reply!
Leave a comment:
-
-
Re: Tell A Friend Script
Can you please provide a link to the page with yourTAF button ? so i can have a look ?
Seems strange.... so i have to see this.
Leave a comment:
-
-
Re: Tell A Friend Script
Hi Naval,
The spam menu pops up when I click the "Tell a friend" button.
Just enquire, we can't key the "@" for email address? The spam notice says "
No user input @, http or www are allowed.
Please go back to the form and edit your input!
Pls help. Thank you very much.
Leave a comment:
-
-
Re: Tell A Friend Script
Thanks again. I tested it and I got it to work!
But one thing. When I tested it, I keyed in the email information and then I clicked the "close" button, and it closed off the whole entire website.
How do I make it to where it just closes the email page and they stay on the website?
Thanks for all your help again.
Picture Perfect Totes
Leave a comment:
-
Leave a comment: