That is decidedly strange. Somehow the opening { was deleted from both of the if statements - compare them, they should be like
if (... ) {
That is decidedly strange. Somehow the opening { was deleted from both of the if statements - compare them, they should be like
if (... ) {
Your copy of the file may have been corrupted - if you didn't edit it to remove the {s, I doubt anyone else did.
How did you install Zen Cart? Do you have an FTP program to transfer files to your pc for editing? What did you use to edit files?
No I receive this error message
Parse error: syntax error, unexpected '{' in /home/sweetshi/public_html/admin/template_select.php on line 28
Here is what it looks like now. I have tried 5 different ideas and still I am not getting through. Thank you for your efforts. I appreciate your help.
**************Here is what it looks like now
require('includes/application_top.php');
// get an array of template info
$dir = @dir(DIR_FS_CATALOG_TEMPLATES);
if (!$dir) die('DIR_FS_CATALOG_TEMPLATES NOT SET');
while ($file = $dir->read()) {
if (is_dir(DIR_FS_CATALOG_TEMPLATES . $file) && strtoupper($file) != 'CVS' && $file != 'template_default') {
if (file_exists(DIR_FS_CATALOG_TEMPLATES . $file . '/template_info.php') {
(require(DIR_FS_CATALOG_TEMPLATES . $file . '/template_info.php');
$template_info[$file] = array('name' => $template_name,
'version' => $template_version,
'author' => $template_author,
'description' => $template_description,
'screenshot' => $template_screenshot);
}
}
}