Try this:
Just unzip and upload the includes folder to your server
Attachment 2613
Last edited by clydejones; 31 Dec 2009 at 02:31 AM.
I've been reading through most of these posts and couldn't find the answer I need...I downloaded/uploaded all the files. I changed the "CUSTOM TEMPLATE" the name of the one I'm using (I was supposed to change every one of those to the name of my template, correct?)
So in my layout box controller, the links mgr is bolded and red and when I activate it, I get these errors on my website:
Warning: main(includes/templates/template_default/sideboxes/tpl_links_select.php) [function.main]: failed to open stream: No such file or directory in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38
Warning: main(includes/templates/template_default/sideboxes/tpl_links_select.php) [function.main]: failed to open stream: No such file or directory in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38
Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/sideboxes/tpl_links_select.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/theact/public_html/includes/modules/sideboxes/delta-864/links_box.php on line 38
ALSO---I'm not too sure how I was supposed to "run" the sql file. Where was I supposed to put it in order to run it?!?!?
Here's my website, though you probably don't need it since I don't have it turned on because of the errors. www.theactofmarriage.com
These are the folders where you should change the name to delta-864
includes/languages/english/YOUR_TEMPLATE
includes/languages/english/extra_definitions/YOUR_TEMPLATE
includes/languages/english/html_includes/YOUR_TEMPLATE
includes/modules/YOUR_TEMPLATE
includes/modules/sideboxes/YOUR_TEMPLATE
includes/templates/YOUR_TEMPLATE
You copy the contents of the sql file and paste it into
admin -> tools -> install sql patches
click the send button
I just upgraded to the the 3.1.3 and just used the upgrade files and pasted the code for sql.
Now I get a error when I go in Admin - Extras- Links
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/xxxxx/public_html/andmin/links.php on line 164
What is wrong? Worked fine before upgrade.
Live and learn... the Zen way.
I had all these file names changed correctly and I sent the SQL as copy and paste and also the browse/select option. This was done yesterday before I started looking around here for help. So since these things are done....I'm really lost as to what my problem is. Do i need to do something with those tpl files since that's where my error was coming from?
Linksmanager 3.1.3
Code:
} else if($action == 'insert') {
$sql_data_array['links_date_added'] = 'now()';
}
if ($action == 'update') {
zen_db_perform(TABLE_LINKS, $sql_data_array, 'update', "links_id = '" . (int)$links_id . "'");
} else if($action == 'insert') {
zen_db_perform(TABLE_LINKS, $sql_data_array);
$links_id = zen_db_insert_id();
}
$categories_query = "select link_categories_id from " . TABLE_LINK_CATEGORIES_DESCRIPTION . " where link_categories_name = '" . $links_category . "' and language_id = '" . $_SESSION['languages_id'] . "'";
$categories = $db->Execute($categories_query);
$link_categories_id = $categories->fields['link_categories_id'];
if ($action == 'update') {
$db->Execute("update " . TABLE_LINKS_TO_LINK_CATEGORIES . " set link_categories_id = '" . (int)$link_categories_id . "' where links_id = '" . (int)$links_id . "'");
} else if($action == 'insert') {
$db->Execute("insert into " . TABLE_LINKS_TO_LINK_CATEGORIES . " ( links_id, link_categories_id) values ('" . (int)$links_id . "', '" . (int)$link_categories_id . "')");
}
$sql_data_array = array('links_title' => $links_title,
'links_description' => $links_description);
if ($action == 'update') {
zen_db_perform(TABLE_LINKS_DESCRIPTION, $sql_data_array, 'update', "links_id = '" . (int)$links_id . "' and language_id = '" . $_SESSION['languages_id'] . "'");
} else if($action == 'insert') {
$insert_sql_data = array('links_id' => $links_id,
'language_id' => $_SESSION['languages_id']);
$sql_data_array = array_merge($sql_data_array, $insert_sql_data);
zen_db_perform(TABLE_LINKS_DESCRIPTION, $sql_data_array);
}
if (isset($_POST['links_notify']) && ($_POST['links_notify'] == 'on')) {
$email = sprintf(EMAIL_TEXT_STATUS_UPDATE, $links_contact_name, $links_status_array[$links_status]) . '<br />' . STORE_OWNER . '<br />' . STORE_NAME;
zen_mail($links_contact_name, $links_contact_email, EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS');
}
zen_redirect(zen_href_link(FILENAME_LINKS, zen_get_all_get_params(array('lID', 'action')) . 'lID=' . $links_id));
} else if ($error == true) {
$lInfo = new objectInfo($_POST);
Live and learn... the Zen way.
Bookmarks