10 comments found

  • Exclusive Author
  • Has been a member for 1-2 years
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars

So cute. Fantastic job.

stephino

Thank you!

  • Elite Author
  • Most Wanted Bounty Winner
  • Referred between 10 and 49 users
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
  • Envato Studio (Microlancer) Beta Tester
  • United States

Nice work! Turbo? ;)

stephino

Hey, thanks! I didn’t know of Turbo until now. The inspiration came from an actual snail.

  • Sold between 100 000 and 250 000 dollars
  • Elite Author
  • Referred between 50 and 99 users
  • Bought between 10 and 49 items
  • Egypt
  • Has been a member for 2-3 years
  • Exclusive Author

Congratulations Great work , Good Luck With Sales :)

stephino

Thank you! Good luck yourself.

  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 10 000 and 50 000 dollars

Nice work! Good luck :)

stephino

Thank you. Good luck to you too.

  • Bought between 1 and 9 items
  • Has been a member for 1-2 years

Hello, 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!

stephino

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('your@address.com', 'New subscriber', $emailAddress);

Storing in MySql

mysqli_connect("localhost","db_username","db_password","database_name"); mysqli_query( "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.

  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
  • Exclusive Author

Template very cute. :)

stephino

You, very awesome :grin:

  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Netherlands
webridder Purchased

Hello Stephino, 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.

stephino

Hello! I will update the code this evening. You’ll surely find it easier to customize.

Thank you!

webridder
webridder Purchased

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.

stephino

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.

Thank you!

webridder
webridder Purchased

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!

  • Bought between 1 and 9 items
  • Has been a member for 1-2 years

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.

stephino

Thank you so much!

  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • Europe
  • Exclusive Author
  • Has been a member for 1-2 years

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!

Thank you.

  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 0-1 years
tonglei Purchased

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”.

stephino

Good day, sir, and thank you for purchasing Snaily!

You have three options you can choose from when setting the $_saveType property:

1. self::SAVE_TEXTFILE 2. self::SAVE_DATABASE 3. self::SAVE_EMAIL

1. self:SAVE_TEXTFILE Does not require additional configuration. The contact text is automatically appended to a file called “contacts.txt” or “newsletter.txt”

2. self::SAVE_DATABASE 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)

3. self::SAVE_EMAIL 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!

Default-user
tonglei Purchased

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.

stephino

Yes, it means that it will automatically add the two files “contacts.txt” and “newsletter.txt” as needed without any other configuration.

Default-user
tonglei Purchased

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.

stephino

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 you.

Default-user
tonglei Purchased

thank god, that’s it. should remove / . thanks very much.

stephino

You are welcome!

I will make sure to include this in the next update.

Thank you and have a great day!


by
by
by
by
by
by