So cute. Fantastic job.
Nice work! Turbo?
Hey, thanks! I didn’t know of Turbo until now. The inspiration came from an actual snail.
Congratulations Great work , Good Luck With Sales
Thank you! Good luck yourself.
Nice work! Good luck
Thank you. Good luck to you too.
Was wondering how to “implement the behavior of the save function in order to save the user-provided e-mail address (store it locally, send it in an e-mail or save it in the database).” i have the two files open for editing, just not sure what code goes there.
Thanks in advance!
This is up to you. The reason I left that space blank was so that you can implement your own solution, depending on the environment you have set up (using Zend or another PHP framework, for example).
Appending to a local “filename.exe”
$fileName = dirname(__FILE__) . '/filename.txt';
file_put_contents($fileName, file_get_contents($fileName) . PHP_EOL . $emailAddress));
Sending via e-mail
mail('email@example.com', 'New subscriber', $emailAddress);
Storing in MySql
"INSERT INTO `table_name` (`subscribers`)
VALUES '" . mysql_real_escape_string($emailAddress) . "'");
I would strongly suggest you seek the help of a PHP programmer for this.
I will update the code shortly to include the above examples, with added security measures.
Template very cute.
You, very awesome
Because I thought the contact.php en newsletter.php files where easy to change I purchased Snaily. But it is not easy at all. Please will you help me out as you said 13 day’s ago to dictation_depot and update the code with some examples? Thanks for your help.
Regards from Holland.
Hello! I will update the code this evening. You’ll surely find it easier to customize.
Thanks for yoour fast reply, Stephino. I am waiting for your update(s). I have another question; I am living in Holland/Europe, how can I chance the hour in one hour earlier?
Regards from Holland.
The update with the PHP code you requested is pending review.
As for the GMT settings, I’m not quite sure, I must recheck the code first so I could give you an answer. But this is an interesting request so I’ll code the option of specifying a GMT location with the next update.
The updated PHP code works perfect Stephino. Thanks! I rated the script with 5 stars. I am waiting for your GMT settings, would be very nice!
Amazing job Stephino ! One of the cutest templates I have seen till date ! I would say it a must have template for all the portals in the launching stage.
Thank you so much!
We have integrated a preview control panel in all our themes. You can now play with it to customize the design live!
Please make sure to clear out your cache before checking out the preview if you are a recurrent visitor!
Can you provide me a full set of newsletter.php and contact.php, what should be delete and kept if select db or save local method, I kept getting an error “Could not contact host, Please try again latter”.
Good day, sir, and thank you for purchasing Snaily!
You have three options you can choose from when setting the $_saveType property:
Does not require additional configuration. The contact text is automatically appended to a file called “contacts.txt” or “newsletter.txt”
Requires the following:
2.1. A MySQL DataBase
2.2. A MySQL user with full permitions on the previously mentioned MySQL database
2.3. A table with the following structure:
CREATE TABLE `contacts`.`contacts` (
`ID` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`NAME` VARCHAR NULL ,
`EMAIL` VARCHAR NULL ,
`CONTENT` TEXT NULL
) ENGINE = MYISAM ;
You may need the assistance of a PHP/MySQL programmer when setting this up or some patience to search how to do this by yourself (Stackoverflow is a good point to start)
This also requires a bit of configuration (you must set the e-mail address to send each contact/newsletter request to). The PHP mail() function is used so you must check with your webhosting provider that this function is enabled.
We advise you to use the SAVE_TEXTFILE option as it does not require any extra configuration.
Also, there is nothing we have said here that hasn’t been documented in the files you have bought.
We hope you enjoy this item.
Have a nice day!
Hi stephino, thanks for your reply. I found that line 19 “protected $_saveType = self::SAVE_TEXTFILE;” in contact.php and newsletter.php, does it means that it will generate a file “contacts.txt” or “newsletter.txt” when I edit nothing and test it on homepage? (Download it -> put it on server -> test it on homepage )
Does not change any file and set correct server permissions.
Yes, it means that it will automatically add the two files “contacts.txt” and “newsletter.txt” as needed without any other configuration.
Dear, it is not working on my linux server. I did not make any changes and then uploaded to my linux server.an error “Could not contact host, Please try again latter” kept on it. can you give me an email, I can send you the original package to you, you can check it out.
Does the item load correctly? You should see the “Snaily” index.html page loaded in your web browser.
You should check that the forms <form method=”post” action=”/newsletter.php” class=”validate text-center”> actually lead to the contact.php and newsletter.php files. If the item is installed on a primary domain or subdomain you should have no issue. If it is placed in a subfolder, make sure to replace action=”/newsletter.php” with action=”newsletter.php”.
If the problem is deeper than this, it has nothing to do with this simple 3-files HTML and PHP item.
thank god, that’s it. should remove / . thanks very much.
You are welcome!
I will make sure to include this in the next update.
Thank you and have a great day!
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Get it now and save up to $1