|
Take feedback from your visitors Version 1.0 Description A simple example of this might be if you want to ask the surfer for their name, email and site title on a basic link list. There are many other times when you'll need to take information from your surfers. The information they fill out on your webpage is then send to your email address and can be viewed in any email program. Exclusive to PornMail Porn mail acts exactly as FormMail does only with one major difference. It has a file called "badwords.txt" which contains a list of domains or words which will result in a failed submission. There's no need to shut a submission page down just because it's being abused by a spammer - simply add their name, domain or ANY one word which will identify them to badwords.txt - and they're history. What happens when a spammer's submission fails? What's the best way to deal with a problem submitter? To let them think they're winning. What my script does is allows the submission from the blocked webmaster to appear to go through. The thank you page looks exactly as it normally would. BUT - the submission is never emailed to you. Let them think they're submitting sites every day - when in reality, their submissions are being sent into oblivion. If a spammer thinks there's something in their way - they might just start to figure out a way around it. Working Example Let's take a look at this thing in action. Go to the URL: Example form This is a standard submission form. ;-) This is where your visitors can leave the information you want to collect. Now look at this file: Bad Words File This is the list of 'bad words' which you can edit. At the moment if you were to put something like say: www.baddomain.com/new-site/index.html ... into the URL box of this form, the submission would never reach my email. That is because 'baddomain.com' is one of the entries in the badwords.txt file. The script looks at everything submitted via the form and compares it with what's in badwords.txt. If it finds a match, the submission will fail. Download & Installation 1) Download this file: Pornmail Zip File 2) Unzip it with something like winzip, to a folder on your hard disk. 3) Start a text editor such as notepad in Windows. 4) Open up top.html and customize it (change colors, title etc...). 5) Open up settings.php (don't worry - there's not much to change. No paths or anything.) ;-) 6) Change the three settings in the settings.php file: // Put your email here // This is where the information submitted will be sent $recipient = "tom@tomsnewbiebooster.com"; // This will be the subject when the form emails you info $subject = "Someone has submitted form info to you"; // URL to go to after submission $next_url = "http://www.tomsnewbiebooster.com/"; They're pretty straight forward. Just add in your own details. 7) Open up badwords.txt and add in any domain names of spammers, or any 'illegal' words that you want to block. 8) Upload the following files to your website: add-link.php badwords.txt settings.php top.html 9) Link to add-link.php from anywhere on your TGP / Link List / other area. 10) Test to make sure you can both receive submissions AND block domains. Play around with things to get them looking the way you want to also. Let me know how you get on with this, and if I can alter or improve it for you. Advanced Customization: Changing What Info Is Collected If you look at our form page: You'll see that we are currently collecting the following bits of information: Your Name Your Email Your URL Link Title The Link back URL Other Comments: All well and good, but what if we need to collect OTHER bits of information? What if we want to change the information that's already being collected. Open up add-link.php in a text editor and look down to find this part: <TR> <TD><FONT FACE="Arial, Helvetica" SIZE=2>Your Email</FONT></TD> <TD><INPUT TYPE=text SIZE=34 NAME=email></TD> </TR> It's important to understand how the form works. Look at the part above which is in RED. The word email. This is something that will hold whatever bit of information is typed into that part of the form. Next, open up add-link.php in a text editor. Scroll down to: $body_of_email="Sender's Name: $name Sender's Email: $email Sender's Resource / URL: $url Link Title: $title The link they've added back: $recip Other Comments: $other "; And there's that bit of information in the script. Don't worry if that's not crystal clear yet. Let's look at an example. Let's say we want to also ask the visitor their CATEGORY - something that's common on link lists. Here's how to do that. 1) Open up add-link.php and add: <TR> <TD><FONT FACE="Arial, Helvetica" SIZE=2>Category your site should go in:</FONT></TD> <TD><INPUT TYPE=text SIZE=34 NAME=category></TD> </TR> 2) OK, that's the form part done. Now we need to get the script to send that info to us. So we'd add this to the part of the script we talked about earlier: $body_of_email="Sender's Name: $name Sender's Email: $email Sender's Resource / URL: $url Link Title: $title The link they've added back: $recip Other Comments: Their category: $category "; So we've taken the new information via the form, and then told the script to pass this on to our email. Make sure that you use one word, all lower case for each bit of information. category is fine. the category is not correct. Version Update History ... none yet Enter Tom's Newbie Booster here More tips, scripts and help... |