Hey all..
I'm attempting to include the Admin Profiles module in the Zen Cart installation process and I'm having some trouble.
As Admin Profiles employs some SQL during installation, I'm having some trouble adding the module tables into the DB.
I include the installation sql into zc_install\sql\mysql_zencart.sql and run the ZC setup but for some reason or other it only creates the tables it doesnt populate them. I don't understand it at all.
My second thought was to put the sql file inside the install\sql\plugins. I decided to do this based on this code in header_php.php:
Again, this didnt work. I even deleted the empty.txt file and tried again.PHP Code:for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) {
$file = $directory_array[$i];
if (file_exists($sqlpluginsdir . $file)) {
echo '<br />Processing Plugin: ' . $sqlpluginsdir . $file . '<br />';
executeSql($sqlpluginsdir . $file, $_POST['db_name'], $_POST['db_prefix']);
}
}
Has anyone done something like this before? I create a lot of ZC installations using the same few modules and have been asked to see if i can reduce time down more.
Thanks,
Tom




