<?php
$result = $DB->query("SHOW COLUMNS FROM {$CONF['sql_prefix']}_sites LIKE 'acf_youtube'", __FILE__, __LINE__);
if(!$DB->num_rows($result)) {
$DB->query("INSERT INTO {$CONF['sql_prefix']}_join_fields (field_id, label_text, description, field_type, required, field_text_requirements, field_text_enable_length, field_text_length, field_text_input_size, field_choice_value, field_choice_text)
VALUES ('acf_youtube', 'Youtube Video Url', 'Members Youtube Url', 'textbox', 0, 'url', 'none', '', 50, '', '')", __FILE__, __LINE__);
$DB->query("ALTER TABLE `{$CONF['sql_prefix']}_sites` ADD `acf_youtube` VARCHAR(255) DEFAULT '' NOT NULL", __FILE__, __LINE__);
} else {
$already = $LNG['a_plugins_installed_allready'];
}
?>