I get lost here. I don't understand why you put ..... instead of the whole bit of code to look for and replace.
can you help me out?
Next, find the section of text within the template.php code that looks like this:
PHP Code:
// ###################### Start insert #######################
if ($action=="insert") {
if (!$preexists=$DB_site->query_first("SELECT templateid .....
$DB_site->query("INSERT INTO template (templateid,tem ......
and replace it with this:
PHP Code:
// ###################### Start insert #######################
if ($action=="insert") {
if (!$preexists=$DB_site->query_first("SELECT templateid ......
$result = $DB_site->query("INSERT INTO template ......
$templateid = $DB_site->insert_id($result);