|
Allow surfers to send Ecards Freeware Version 1.4 Description Working Example This is a basic version of the kind of script you'll see at Yahoo! and the other places that do greetings cards online. To see how it works, it's probably best to send yourself an ecard using the script: [ Working Example ] Follow the instructions and then check your mail. You should get an email notifying you that someone has send you an e-card. There's also a link to send them one back - which is an important part of the whole ecard market. Download & Installation Download the latest version HERE 1) Download the .zip file. 2) Unzip the files to your hard disk with some software like Winzip. 3) Choose a domain where you're going to install this script and create a folder on that domain called ecards/ (OR - you could set up a domain specifically for this script to run on - which would be really neat!) 4) Create a folder inside of /ecards/ called cards/ so you have: domain.com/ecards/cards 5) Open up settings.php in a text editor. Go through this and follow the instructions as to what should go in there. The final two settings are optional. The final one deals with whether or not you'd like to record the emails that have been submitted to you. 6) Upload all of the files to your webspace to the ecards/ folder (NOT the cards/ folder - that's a data folder which the script uses). 7) CHMOD the folder cards/ to 777. 8) CHMOD the file counter.txt to 777. 9) CHMOD the file day_number.txt to 777. 10) CHMOD the file ips.txt to 777. 11) CHMOD the file emails.txt to 777. There's a tutorial on CHMOD here: CH MOD Tutorial How it all works: index.html is the place where they choose the card they want to send. It's a collection of thumbnail images. There needs to be a collection of images here and each one must link to the right page. For every Ecard you add, there needs to be three files: 0001.html - is the preview page. 0001-thumbnail.gif / 0001-thumbnail.jpg is the thumbnail image. 0001.gif / 0001.jpg is the full size image that will be on the finished Ecard. Look at index.html and see how the HTML is linked up. At the moment they all link to 0001.html - try to add in 0002 on your own and give me a shout if you get stuck. 0001.html is the preview page. This lets the Ecard sender see the full sized pic that will appear on their ecard. This image should fit the screen easily - so edit whatever content you put on here to be quite small. Customize all of the page's HTML so that it looks just the way you like it. ;-) Version Updates Version 1.1 Fixed a problem whereby carriage returns in the message were not being recorded. Version 1.2 This version adds anti-spammer security. This is an important update because it prevents an email spammer using the script to spam people's addresses. It works by recording the IP addresses of each surfer who sends a card from your site. You get to choose how many cards surfers may send per day. Each day the IPs file is reset and a surfer can send another 10 cards that day. Upgrading from an older version: This only applies if you ALREADY have Easy Ecard on your server. 1) Download the zip file above. 2) Unzip the files and copy send_it.php, ips.txt, settings.php, and day_number.txt to your easy ecard folder. NOTE: This will overwrite your setting file - so it might be an idea to copy the settings from the old file to the new one first. 3) Look in settings.php for this part: // NUMBER OF CARDS EACH SURFER IS ALLOWED TO SEND PER DAY $number_of_cards_allowed = "10"; It's optional if you want to change the 10 to however many cards you want them to be able to send each day. Change this number if you want to allow more or less than 10 cards to be sent per day. 4) Upload those 4 files to the easy ecard folder on your server. 5) CHMOD the two .txt files to 777. Version 1.3 Plugged a security hole whereby a malicious spammer could send out a message to a number of email addresses by abusing the TO email field. The only file that has changed here is send_it.php. If you've already got Easy Ecard on your server, upload this file over the old one. Version 1.4 Added the ability to record the emails that are submitted using this script. The default for this is turned off. Look in settings.php for a way to turn it on. I am not sure as to the legal requirements of recording people's emails, so you'll be using this feature at your own risk. You may need to include some kind of disclaimer or privacy policy to this end. The emails are recorded to the file emails.txt in your Easy Ecard folder. If you're upgrading from an older version - the files that are altered are settings.php, sent_it.php and a new file has been created emails.txt. emails.txt must be CHMOD to 777. Enter Tom's Newbie Booster here More tips, scripts and help... |