diff --git a/converter.php b/converter.php
new file mode 100644
index 0000000..2aed9d4
--- /dev/null
+++ b/converter.php
@@ -0,0 +1,68 @@
+table_exists("thx") && $db->table_exists($prefix.'thankyoulike_thankyoulike'))
+ {
+ $query = $db->simple_select('thx', '*');
+ while ($thanks = $db->fetch_array($query)) {
+ $thx[] = array(
+ 'pid' => (int) $thanks['pid'],
+ 'uid' => (int) $thanks['adduid'],
+ 'puid' => (int) $thanks['uid'],
+ 'dateline' => (int) $thanks['time']
+ );
+ $batch++;
+ $total++;
+ if($batch == 1000) {
+ $db->insert_query_multiple($prefix.'thankyoulike_thankyoulike', $thx);
+ $thx = array();
+ $batch = 0;
+ echo "Converted {$total} from thanks single system to TYL System
";
+ }
+ }
+ $db->insert_query_multiple($prefix.'thankyoulike_thankyoulike', $thx);
+ echo "Done!!!
Converted {$total} from thanks single system to TYL System
";
+ }
+
+ else if($db->table_exists("post_likes") && $db->table_exists($prefix.'thankyoulike_thankyoulike'))
+ {
+ $query = $db->simple_select('post_likes', '*');
+ while ($thanks = $db->fetch_array($query)) {
+ $thx[] = array(
+ 'pid' => (int) $thanks['post_id'],
+ 'uid' => (int) $thanks['user_uid'],
+ );
+ $batch++;
+ $total++;
+ if($batch == 1000) {
+ $db->insert_query_multiple($prefix.'thankyoulike_thankyoulike', $thx);
+ $thx = array();
+ $batch = 0;
+ echo "Converted {$total} from simple likes system to TYL System
";
+ }
+ }
+ $db->insert_query_multiple($prefix.'thankyoulike_thankyoulike', $thx);
+ echo "Done!!!
Converted {$total} from simple likes system to TYL System (There are some missing data in this version)
";
+ }
+
+ else if(!$db->table_exists($prefix.'thankyoulike_thankyoulike'))
+ {
+ echo "Alert!!!
You have to install TYL before runing this script !!!";
+ }
+
+ else
+ {
+ echo "Alert!!!You have a not available suite of thanks system to be coverted...";
+ }