// Import_templates
// Bug fixes, changes & updates
// last date 2005-08-14
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.
version 1.04 - The new method get_new_tpl_ids() is used to build a result with f.e. new tpl id's sice last update. And the other new method daily_update is used to update not replace the existing data (incl. update the thumbs). This method needs only 10% of the time you need inside the remote_update example. Check the new examples: daily_update.php and get_thumbs.php.
version 1.03 - I modified the method copy_thumbs() to handle also older templates. I replaced the php function file_get_contents() with a simple fopen command that the class can used on more servers. I also added a directory creation function in case of not using the $zero_tumbs option. This makes it possible to download all thumbs using the same structure like on TM.
version 1.02 - modified a lot of methodes and added some validation to stop the process if the remote server is down. If you update the database while running a CRON job the returnded information is more detailed now. Added a new example "remote_update.php" which can be used for the CRON job.
version 1.01 - removed several parameters from the handle_screenshots() menthod because they are not needed here. The new methods will update the several table (without deleting the old data) and will removing the sold templates from this tables. The parameter "empty_first" is added to some methodes. An update of the screenshot table is to hard for the webserver because the download counter can be changed for every record. Using the "Zero download" category is not an option because this data is not really up2date. |