Use this class to import template data from templatermonster.com into your MySQL database



Share Import TemplateMonster data ver. 2.00

updated: 2009-06-06 new script
Import templates is a class to import template data from templatermonster.com (Web API) into your MySQL database. It is possible to import the screenshot data, categories, keywords, and authors. A special thumbnail copy function will store the thumbnails on your server. While using the template records from your database, its possible to get faster search results from your template shop application. With the version 1.04 its also possible to update the data without replacement. This option is extremely useful if you stored already all thumbnails on your server. I added also a script to copy the thumbnails from templatemonster.com through PHP in a batch (500 - 1500 files a time). New in 1.06! Support for additional template info.

PHP Script Download
You need to login or register to download this class script.

Downloaded 1 times

Rating: script rated with stars
 

Last changes and updates:

Version 1.07
I added a testing method to the class which is usefull while downloading the info templates (batch). I noticed also that sold items where not removed for the screenshot and template info tabel. Check the modified method remove_sold_template_data(). I advice to use in this early development stadium to use only the latest version for the best result.

Version 1.06
In this version its possible to handle the template info (webapi template_info2.php). The save_records() method is modified to store the list delimiters in the template info table. Inside the method import_data() method I set some booleans to check id something went wrong. Check also the methof error_list() for additional messages. Another update is happen inside the method daily_update() and the method handle_template_info() is new.

Version 1.05
there was a small bug in the method remove_sold_template_data() at the end of the loop the array "all_data" must empty this is fixed now. There is a new example on how to obtain screeshot data and thumbnails to represent them in a banner with some random templates. Chech the new file "get_banner_data.php". Inside this file there is also a new (universal) method to obtain the latest template ID from template monster.