diff --git a/Themes/core/install.php b/Themes/core/install.php new file mode 100644 index 0000000..ea5df42 --- /dev/null +++ b/Themes/core/install.php @@ -0,0 +1,52 @@ +Error: Cannot install - please verify you put this in the same place as SMF\'s index.php.'); + +global $smcFunc; + +if(!array_key_exists('db_add_column', $smcFunc)) + db_extend('packages'); + +$column_array = array( + 'column1' => array( + 'name' => 'skype', + 'type' => 'varchar', + 'size' => '45', + 'null' => false, + 'default' => '', + ), + 'column2' => array( + 'name' => 'gtalk', + 'type' => 'varchar', + 'size' => '45', + 'null' => false, + 'default' => '', + ), +); + +foreach ($column_array as $key => $data) +{ + $smcFunc['db_add_column']( + '{db_prefix}members', + $data, + array(), + 'update', + 'fatal' + ); +} + +?> \ No newline at end of file