Jump to content

jdice

Members
  • Content count

    105
  • Joined

  • Last visited

Everything posted by jdice

  1. jdice

    Multi_Vendor_Shipping new thread

    Hi...can anyone help??? I have uploaded MVS to my store. I have not done the modules file yet. But when I try to login to my administration...I get a blank page that says this: Error! Unable to determine the page link! Function used: tep_href_link('', '', '') I don't know what I am looking for to fix it? I have a BTS template...but from I am reading other BTS users have used this MVS contribution. You do have to place a couple things in the fallback files...but I have done that lots of times with other contributions...so I am making changes in the correct places. Someone suggested my html_output file. Should I look in ...admin/includes/functions/html_output? Well here is the html_output file...if anyone can look at it and help. Sorry...I hate take up space Janet <?php /* $Id: html_output.php,v 1.29 2003/06/25 20:32:44 hpdl Exp $ Modified for MVS V1.0 2006/03/25 JCK/CWG osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2006 osCommerce Released under the GNU General Public License */ //// // The HTML href link wrapper function // function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL') { if ($page == '') { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>'); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_ADMIN; } elseif ($connection == 'SSL') { if (ENABLE_SSL == 'true') { $link = HTTPS_SERVER . DIR_WS_ADMIN; } else { $link = HTTP_SERVER . DIR_WS_ADMIN; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>'); } if ($parameters == '') { $link = $link . $page . '?' . SID; } else { $link = $link . $page . '?' . $parameters . '&' . SID; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); return $link; // } function tep_catalog_href_link($page = '', $parameters = '', $connection = 'NONSSL') { if ($connection == 'NONSSL') { $link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL_CATALOG == 'true') { $link = HTTPS_CATALOG_SERVER . DIR_WS_CATALOG; } else { $link = HTTP_CATALOG_SERVER . DIR_WS_CATALOG; } } else { die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine connection method on a link!<br><br>Known methods: NONSSL SSL<br><br>Function used:<br><br>tep_href_link(\'' . $page . '\', \'' . $parameters . '\', \'' . $connection . '\')</b>'); } if ($parameters == '') { $link .= $page; } else { $link .= $page . '?' . $parameters; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); return $link; } //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } if (tep_not_null($parameters)) $image .= ' ' . $parameters; $image .= '>'; return $image; } //// // The HTML form submit button wrapper function // Outputs a button in the selected language function tep_image_submit($image, $alt = '', $parameters = '') { global $language; $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; $image_submit .= '>'; return $image_submit; } //// // Draw a 1 pixel black line function tep_black_line() { return tep_image(DIR_WS_IMAGES . 'pixel_black.gif', '', '100%', '1'); } //// // Output a separator either through whitespace, or with an image function tep_draw_separator($image = 'pixel_black.gif', $width = '100%', $height = '1') { return tep_image(DIR_WS_IMAGES . $image, '', $width, $height); } //// // Output a function button in the selected language function tep_image_button($image, $alt = '', $params = '') { global $language; return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $params); } //// // javascript to dynamically update the states/provinces list when the country is changed // TABLES: zones function tep_js_zone_list($country, $form, $field) { $countries_query = tep_db_query("select distinct zone_country_id from " . TABLE_ZONES . " order by zone_country_id"); $num_country = 1; $output_string = ''; while ($countries = tep_db_fetch_array($countries_query)) { if ($num_country == 1) { $output_string .= ' if (' . $country . ' == "' . $countries['zone_country_id'] . '") {' . "\n"; } else { $output_string .= ' } else if (' . $country . ' == "' . $countries['zone_country_id'] . '") {' . "\n"; } $states_query = tep_db_query("select zone_name, zone_id from " . TABLE_ZONES . " where zone_country_id = '" . $countries['zone_country_id'] . "' order by zone_name"); $num_state = 1; while ($states = tep_db_fetch_array($states_query)) { if ($num_state == '1') $output_string .= ' ' . $form . '.' . $field . '.options[0] = new Option("' . PLEASE_SELECT . '", "");' . "\n"; $output_string .= ' ' . $form . '.' . $field . '.options[' . $num_state . '] = new Option("' . $states['zone_name'] . '", "' . $states['zone_id'] . '");' . "\n"; $num_state++; } $num_country++; } $output_string .= ' } else {' . "\n" . ' ' . $form . '.' . $field . '.options[0] = new Option("' . TYPE_BELOW . '", "");' . "\n" . ' }' . "\n"; return $output_string; } //// // Output a form function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '') { $form = '<form name="' . tep_output_string($name) . '" action="'; if (tep_not_null($parameters)) { $form .= tep_href_link($action, $parameters); } else { $form .= tep_href_link($action); } $form .= '" method="' . tep_output_string($method) . '"'; if (tep_not_null($params)) { $form .= ' ' . $params; } $form .= '>'; return $form; } //// // Output a form input field function tep_draw_input_field($name, $value = '', $parameters = '', $required = false, $type = 'text', $reinsert_value = true) { $field = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if (isset($GLOBALS[$name]) && ($reinsert_value == true) && is_string($GLOBALS[$name])) { $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"'; } elseif (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } //// // Output a form password field function tep_draw_password_field($name, $value = '', $required = false) { $field = tep_draw_input_field($name, $value, 'maxlength="40"', $required, 'password', false); return $field; } //// // Output a form filefield function tep_draw_file_field($name, $required = false) { $field = tep_draw_input_field($name, '', '', $required, 'file'); return $field; } //// // Output a selection field - alias function for tep_draw_checkbox_field() and tep_draw_radio_field() function tep_draw_selection_field($name, $type, $value = '', $checked = false, $compare = '') { $selection = '<input type="' . tep_output_string($type) . '" name="' . tep_output_string($name) . '"'; if (tep_not_null($value)) $selection .= ' value="' . tep_output_string($value) . '"'; if ( ($checked == true) || (isset($GLOBALS[$name]) && is_string($GLOBALS[$name]) && ($GLOBALS[$name] == 'on')) || (isset($value) && isset($GLOBALS[$name]) && (stripslashes($GLOBALS[$name]) == $value)) || (tep_not_null($value) && tep_not_null($compare) && ($value == $compare)) ) { $selection .= ' CHECKED'; } $selection .= '>'; return $selection; } //// // Output a form checkbox field function tep_draw_checkbox_field($name, $value = '', $checked = false, $compare = '') { return tep_draw_selection_field($name, 'checkbox', $value, $checked, $compare); } //// // Output a form radio field function tep_draw_radio_field($name, $value = '', $checked = false, $compare = '') { return tep_draw_selection_field($name, 'radio', $value, $checked, $compare); } //// // Output a form textarea field function tep_draw_textarea_field($name, $wrap, $width, $height, $text = '', $parameters = '', $reinsert_value = true) { $field = '<textarea name="' . tep_output_string($name) . '" wrap="' . tep_output_string($wrap) . '" cols="' . tep_output_string($width) . '" rows="' . tep_output_string($height) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if ( (isset($GLOBALS[$name])) && ($reinsert_value == true) ) { $field .= tep_output_string_protected(stripslashes($GLOBALS[$name])); } elseif (tep_not_null($text)) { $field .= tep_output_string_protected($text); } $field .= '</textarea>'; return $field; } //// // Output a form hidden field function tep_draw_hidden_field($name, $value = '', $parameters = '') { $field = '<input type="hidden" name="' . tep_output_string($name) . '"'; if (tep_not_null($value)) { $field .= ' value="' . tep_output_string($value) . '"'; } elseif (isset($GLOBALS[$name]) && is_string($GLOBALS[$name])) { $field .= ' value="' . tep_output_string(stripslashes($GLOBALS[$name])) . '"'; } if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; return $field; } //// // Output a form pull down menu function tep_draw_pull_down_menu($name, $values, $default = '', $parameters = '', $required = false) { $field = '<select name="' . tep_output_string($name) . '"'; if (tep_not_null($parameters)) $field .= ' ' . $parameters; $field .= '>'; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $field .= '<option value="' . tep_output_string($values[$i]['id']) . '"'; if ($default == $values[$i]['id']) { $field .= ' SELECTED'; } $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '"', '\'' => ''', '<' => '<', '>' => '>')) . '</option>'; } $field .= '</select>'; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } //MVS Start //// // Creates a pull-down list of countries function tep_get_country_list($name, $selected = '', $parameters = '') { $countries = tep_get_countries(); return tep_draw_pull_down_menu($name, $countries, $selected, $parameters); } //MVS End ?>
  2. jdice

    BTSv1.2 Support

    I figured it out...if anyone needs a copy of my Link Manager 1.8 files for BTS....let me know. I don't want to post it in the contributions...I've been familiar with oscommerce a couple years...and BTS...maybe a year. So I am not qualified I feel....to give support. So if anyone needs it...let me know...I will email it to you.
  3. jdice

    Multi_Vendor_Shipping new thread

    I still don't see anything...could this be because I have a bts template I am having this problem? I made all the changes necessary in the fallback folders when necessary. do you want to see my html_output.php file?
  4. jdice

    Multi-Stores Multiple Shops Support

    hi...I know this is an old thread...but I did i just read that you intregrated bts with mvs? I like a copy of your files if you still have them. I am trying to do the same thing. Janet
  5. jdice

    Multi_Vendor_Shipping new thread

    I have looked...one english file was missing...but I fixed that...I am still getting the same error. I have checked all the adminstration files with no luck this morning. So maybe I could narrow my mistake down. Where is the tep_href_link function located? Sorry if that sounds like a silly question. It is just that I thought tep_href_link functions were most usually in the english.php files. Janet
  6. jdice

    Multi_Vendor_Shipping new thread

    Hello, I just uploaded the MSV contribution. I am getting this on my www.mysite.com/catalog/administration page...it is preventing me from getting to my site administration. Error! Unable to determine the page link! Function used: tep_href_link('', '', '') However, I do have access to my cpanel to change code. Janet
  7. Just in case anyone has this problem.... On line 30 of the links_setup.php....is says links_id has an autoincrement...as so... array("CREATE TABLE links (links_id int NOT NULL auto_increment, links_url varchar(255)...... However, when I went to my phpadmin and checked the sql...it was not there. For some reason it did not upload properly. All you have to do is go to your phpadmin....click link_to_link categories in the left column box... Then two fields (links_id & links_categories_id) under the structure tab come up. click a check mark for links_id and scoll to the right under actions and click the PENCIL symbol and then you will be able to click AUTO_INCREMENT from a drop down menu at the right. Hope this helps...someone...as I was scared to death to touch the database...but I finally got the nerve and it worked. Janet
  8. Hi Everyone, I recently uploaded the latest Link Manager IIV 1.8 to my website. I have a BTS template with Ultimate seo Urls. And everything show in the administration just fine. However, the clickable link to the links page is not showing up on the home page...so I guess it is not working. Has anyone converted this to work on a bts template yet? I see in different places that Link Manager 1.0 has been...but Link Manager 1.0 version has disappeared from the contributions section....probably because it is old. Thanks, Janet
  9. Jack...?? Is my problem above because of settings here in the catalog/links_setup.php folder? Okay...I tested administrative side a long time ago. It worked. But in order for me to test the store side...I deleted two links to reput them in the system. They were the only two stores I had to sample the system with. So I deleted them. I think the system failed to set back to '0' ...that is why I am getting this error. Is there a reason the links_to_link_categories isn't set to auto-increment like links_id and link_categories_id is? links_setup.php folder below: <?php /* $Id: links_setup.php,v 1.00 2003/10/02 Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // check if links db already installed $links_check_query = tep_db_query("select * from configuration_group where configuration_group_title = 'Links'"); if (tep_db_num_rows($links_check_query) > 0) { echo 'Looks like Links Manager is already installed. Aborting...'; tep_exit(); } $links_sql_array = array(array("DROP TABLE IF EXISTS link_categories"), array("CREATE TABLE link_categories (link_categories_id int NOT NULL auto_increment, parent_id INT(11) NOT NULL DEFAULT '0', link_categories_image varchar(64), link_categories_sort_order int(3), link_categories_date_added datetime, link_categories_last_modified datetime, link_categories_status tinyint(1) NOT NULL default '1', PRIMARY KEY (link_categories_id), KEY idx_link_categories_date_added (link_categories_date_added))"), array("DROP TABLE IF EXISTS link_categories_description"), array("CREATE TABLE link_categories_description (link_categories_id int DEFAULT '0' NOT NULL, language_id int DEFAULT '1' NOT NULL, link_categories_name varchar(32) NOT NULL, link_categories_description text, categories_description_subtext LONGTEXT NULL, PRIMARY KEY (link_categories_id, language_id), KEY idx_link_categories_name (link_categories_name))"), array("DROP TABLE IF EXISTS links_to_link_categories"), array("CREATE TABLE links_to_link_categories (links_id int NOT NULL, link_categories_id int NOT NULL, PRIMARY KEY (links_id,link_categories_id))"), array("DROP TABLE IF EXISTS links"), array("CREATE TABLE links (links_id int NOT NULL auto_increment, links_url varchar(255), links_reciprocal_url varchar(255), links_reciprocal_disable tinyint(0) NOT NULL, links_reciprocal_check_count tinyint(4) NOT NULL DEFAULT '0', links_image_url varchar(255), links_contact_name varchar(64), links_contact_email varchar(96), links_date_added datetime NOT NULL, links_last_modified datetime, links_status tinyint(1) NOT NULL, links_clicked int NOT NULL default '0', links_category_suggest varchar(32) NULL, links_partner_username varchar(64) NOT NULL DEFAULT '', links_partner_password varchar(64) NOT NULL DEFAULT '', PRIMARY KEY (links_id), KEY idx_links_date_added (links_date_added))"), array("DROP TABLE IF EXISTS links_description"), array("CREATE TABLE links_description (links_id int NOT NULL auto_increment, language_id int NOT NULL default '1', links_title varchar(64) NOT NULL default '', links_description text, PRIMARY KEY (links_id,language_id), KEY links_title (links_title))"), array("DROP TABLE IF EXISTS links_status"), array("CREATE TABLE links_status (links_status_id int DEFAULT '0' NOT NULL, language_id int DEFAULT '1' NOT NULL, links_status_name varchar(32) NOT NULL, PRIMARY KEY (links_status_id, language_id), KEY idx_links_status_name (links_status_name))"), array("DROP TABLE IF EXISTS links_featured"), array("CREATE TABLE links_featured (links_id int not null auto_increment, date_added datetime , expires_date datetime, links_all_pages TINYINT(1) NOT NULL DEFAULT '0', PRIMARY KEY (links_id))"), array("DROP TABLE IF EXISTS links_check"), array("CREATE TABLE links_check (links_id int not null auto_increment, date_last_checked datetime , link_found tinyint(1) NOT NULL, PRIMARY KEY (links_id))")); $db_error = false; // create tables foreach ($links_sql_array as $sql_array) { foreach ($sql_array as $value) { //echo $value . '<br>'; if (tep_db_query($value) == false) { $db_error = true; } } } $links_sql_array = array(array("INSERT INTO links_status VALUES ( '1', '1', 'Pending')"), array("INSERT INTO links_status VALUES ( '2', '1', 'Approved')"), array("INSERT INTO links_status VALUES ( '3', '1', 'Disabled')"), array("INSERT INTO links_status VALUES ( '4', '1', 'Waiting')"), array("INSERT INTO links_status VALUES ( '1', '2', 'Pending')"), array("INSERT INTO links_status VALUES ( '2', '2', 'Approved')"), array("INSERT INTO links_status VALUES ( '3', '2', 'Disabled')"), array("INSERT INTO links_status VALUES ( '4', '2', 'Waiting')"), array("INSERT INTO links_status VALUES ( '1', '3', 'Pending')"), array("INSERT INTO links_status VALUES ( '2', '3', 'Approved')"), array("INSERT INTO links_status VALUES ( '3', '3', 'Disabled')"), array("INSERT INTO links_status VALUES ( '4', '3', 'Waiting')"), array("INSERT INTO links_status VALUES ( '1', '4', 'Pending')"), array("INSERT INTO links_status VALUES ( '2', '4', 'Approved')"), array("INSERT INTO links_status VALUES ( '3', '4', 'Disabled')"), array("INSERT INTO links_status VALUES ( '4', '4', 'Waiting')")); $db_error = false; // create tables foreach ($links_sql_array as $sql_array) { foreach ($sql_array as $value) { if (tep_db_query($value) == false) { $db_error = true; } } } // create configuration group $group_query = "INSERT INTO configuration_group (configuration_group_title, configuration_group_description, sort_order) VALUES ('Links', 'Links Manager configuration options', '99')"; if (tep_db_query($group_query) == false) { $db_error = true; } $configuration_group_id = tep_db_insert_id(); // create configuration variables $config_sql_array = array(array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('<font color=blue>Click Count</font>', 'ENABLE_LINKS_COUNT', 'False', 'Enable links click count.', '" . $configuration_group_id . "', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('<font color=blue>Spider Friendly Links</font>', 'ENABLE_SPIDER_FRIENDLY_LINKS', 'True', 'Enable spider friendly links (recommended).', '" . $configuration_group_id . "', '2', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=blue>Links Image Width</font>', 'LINKS_IMAGE_WIDTH', '120', 'Maximum width of the links image.', '" . $configuration_group_id . "', '3', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=blue>Links Image Height</font>', 'LINKS_IMAGE_HEIGHT', '60', 'Maximum height of the links image.', '" . $configuration_group_id . "', '4', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=green>Display Link Image</font>', 'LINK_LIST_IMAGE', '1', 'Do you want to display the Link Image?', '" . $configuration_group_id . "', '5', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=green>Display Link URL</font>', 'LINK_LIST_URL', '4', 'Do you want to display the Link URL?', '" . $configuration_group_id . "', '6', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=green>Display Link Title</font>', 'LINK_LIST_TITLE', '2', 'Do you want to display the Link Title?', '" . $configuration_group_id . "', '7', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=green>Display Link Description</font>', 'LINK_LIST_DESCRIPTION', '3', 'Do you want to display the Link Description?', '" . $configuration_group_id . "', '8', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=green>Display Link Click Count</font>', 'LINK_LIST_COUNT', '0', 'Do you want to display the Link Click Count?', '" . $configuration_group_id . "', '9', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=fuchsia>Display English Links</font>', 'LINKS_DISPLAY_ENGLISH', 'True', 'Display links in this language in the shop.', '" . $configuration_group_id . "', '10', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=fuchsia>Display German Links</font>', 'LINKS_DISPLAY_GERMAN', 'False', 'Display links in this language in the shop.', '" . $configuration_group_id . "', '11', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=fuchsia>Display Spanish Links</font>', 'LINKS_DISPLAY_SPANISH', 'False', 'Display links in this language in the shop.', '" . $configuration_group_id . "', '12', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=fuchsia>Display French Links</font>', 'LINKS_DISPLAY_FRENCH', 'False', 'Display links in this language in the shop.', '" . $configuration_group_id . "', '13', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('<font color=Brown>Display Link Title as links</font>', 'TITLES_AS_LINKS', 'False', 'Make the links title a link.', '" . $configuration_group_id . "', '14', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('<font color=Brown>Display Links Category images</font>', 'SHOW_LINKS_CATEGORIES_IMAGE', 'True', 'Display the images for the Links Categories.', '" . $configuration_group_id . "', '15', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('<font color=Brown>Display in standard format</font>', 'LINKS_DISPLAY_FORMAT_STANDARD', 'True', 'Dislay the links in the standard format (true) or in a vertical listing (false).', '" . $configuration_group_id . "', '16', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('<font color=Brown>Display Featured Link</font>', 'LINKS_FEATURED_LINK', 'True', 'Display a randomly selected link.', '" . $configuration_group_id . "', '17', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('<font color=Brown>Display Links in Categories</font>', 'LINKS_SHOW_CATEGORIES', 'True', 'Use categories to show the links. If this is disabled, all links are shown on one page.', '" . $configuration_group_id . "', '18', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('<font color=Brown>Display Link Count in Categories</font>', 'LINKS_SHOW_CATEGORIES_COUNT', 'False', 'Show the number of links in a category.', '" . $configuration_group_id . "', '19', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=purple>Link Title Minimum Length</font>', 'ENTRY_LINKS_TITLE_MIN_LENGTH', '2', 'Minimum length of link title.', '" . $configuration_group_id . "', '20', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=purple>Link URL Minimum Length</font>', 'ENTRY_LINKS_URL_MIN_LENGTH', '10', 'Minimum length of link URL.', '" . $configuration_group_id . "', '21', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=purple>Link Description Minimum Length</font>', 'ENTRY_LINKS_DESCRIPTION_MIN_LENGTH', '10', 'Minimum length of link description.', '" . $configuration_group_id . "', '22', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=purple>Link Description Maximum Length</font>', 'ENTRY_LINKS_DESCRIPTION_MAX_LENGTH', '200', 'Maximum length of link description.', '" . $configuration_group_id . "', '23', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=purple>Link Contact Name Minimum Length</font>', 'ENTRY_LINKS_CONTACT_NAME_MIN_LENGTH', '2', 'Minimum length of link contact name.', '" . $configuration_group_id . "', '24', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('<font color=purple>Link Maximum to Display</font>', 'MAX_LINKS_DISPLAY', '20', 'How many links should be displayed per page?', '" . $configuration_group_id . "', '25', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Links Blacklist', 'LINKS_CHECK_BLACKLIST', '', 'Do not allow links to be submitted if they contain these words. To enter more than one one, use a comma seperator, i.e., bad word a, bad word b.', '" . $configuration_group_id . "', '26', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Links Check Phrase', 'LINKS_CHECK_PHRASE', '" . $HTTP_SERVER_VARS['SERVER_NAME'] . "', 'Phrase to look for, when you perform a link check. To enter more than one phase, use a comma seperator, i.e., phase a, phase b.', '" . $configuration_group_id . "', '27', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Check Link on Edit', 'LINKS_CHECK_ON_EDIT', 'True', 'Check if a reciprocol link is valid when Edit is clicked. This will slow down the loading of the edit page a little.', '" . $configuration_group_id . "', '28', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Links open in new page', 'LINKS_OPEN_NEW_PAGE', 'True', 'Open links in new page when clicked.', '" . $configuration_group_id . "', '29', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Reciprocal Link required', 'LINKS_RECIPROCAL_REQUIRED', 'True', 'A reciprocal link is required when a link is submitted.', '" . $configuration_group_id . "', '30', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Reciprocal Link Check Count', 'LINKS_RECIPROCAL_CHECK_COUNT', '2', 'How many times a link is checked by the link_check script before it is disabled.', '" . $configuration_group_id . "', '31', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Check for Duplicate Links', 'LINKS_CHECK_DUPLICATE', 'True', 'Check if the submitted link is already on file.', '" . $configuration_group_id . "', '32', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"), array("INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Allow Link Editing', 'LINKS_ALLOW_EDITING', 'False', 'Set this option to true to allow link partners to edit their links.', '" . $configuration_group_id . "', '34', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())")); foreach ($config_sql_array as $sql_array) { foreach ($sql_array as $value) { //echo $value . '<br>'; if (tep_db_query($value) == false) { $db_error = true; } } } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo 'Links Manager Setup'; ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"> <?php if ($db_error == false) { echo 'Database successfully updated!!!'; } else { echo 'Error encountered during database update.'; } ?> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  10. okay...I had a typo in my information.php folder...that is why the links link would not show up on the home page...I fixed it....silly silly me. But I am still stuck on this: One thing I found wierd ...is my links & links_submit page in my fallback folder would not show up until the file extension tpl.php.tpl.php was added. I am not sure how to just get it back to just tpl.php like all the other files in the fallback folder. Because I have a filling this is affecting my next issue. When I click the submit link button to test it....I get 0 - insert into links_to_link_categories (links_id, link_categories_id) values ('0', '2') [TEP STOP] I don't know...It may not affect it...but I was wondering if those wierd file extensions may affect it when it is time for the links to be submitted by link exchange partners.
  11. Okay...I had to take out all this below to get it to fit the bts template /*<!-- left_navigation //--> /*<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> /*<!-- left_navigation_eof //--> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> One thing I found wierd ...is my links & links_submit page in my fallback folder would not show up until the file extension tpl.php.tpl.php was added. I am not sure how to just get it back to just tpl.php like all the other files in the fallback folder. Because I have a filling this is affecting my next issue. When I click the submit link button to test it....I get 0 - insert into links_to_link_categories (links_id, link_categories_id) values ('0', '2') [TEP STOP] I don't know...It may not affect it...but I was wondering if those wierd file extensions may affect it when it is time for the links to be submitted by link exchange partners. Also...another issue....is the links link on the home page still does not show up. I have looked all over to figure out where to put it in...but I can only find one folder...and that is the folder given in the directions catalog/includes/boxes/information.php...I'll keep looking...just haven't found a bts file that looks similar to it anywhere. Let me know your thoughts...until...then...I will keep searching. Janet
  12. Hello, I am slowly but surely coming along. I spent most of my day yesterday on this. I had split the links.php file incorrectly. The one I was looking on does not look the same...however, with a fresh pair of eyes this morning...I was able to see my mistake. However, now I am getting this error: Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/electron/public_html/catalog/includes/boxes/categories.php:39) in /home/electron/public_html/catalog/includes/boxes/categories.php on line 133 my line 39 function tep_show_category($counter) { And line 127-133 if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } Somewhere I read suggestion to change category to categories...but when I did that...it just produced more errors. Is there a better solution? Janet
  13. Okay...I am not totally sure I understand. I uploaded folders into respective folders explained in directions. And I made file edits. Some edits were as the instructions...other edits...I had to find in one of the bts folders in the templates section. All I understand is most of files of a bts template go in the fallback/contents folders. That is the bulk folder most the contents of the site are in. Are you saying I should put the links, links_submit, links_submit_success, popup_links_help and links_db_update into the the fallback/contents folder? And then add this: define('CONTENT_LINKS', 'links'); define('CONTENT_LINKS_SUBMIT', 'links_submit'); define('CONTENT_LINKS_SUBMIT_SUCCESS', 'links_submit_success'); define('CONTENT_POPUP_LINKS_HELP', 'popup_links_help'); define('CONTENT_LINKS_DB_UPDATE, 'links_db_update'); to catalog/includes/filenames.php file? I am really trying hard to understand this. I learned alot the past year...but still getting stumped on some things. Janet
  14. Does anyone know a good link manager that will work with bts? Other have done this...just no one is sharing is knowledge. Anyone????
  15. This link might help you understand what might be going on: http://www.oscommerce.info/kb/osCommerce/G...mon_Problems/15
  16. Make sure you don't have any spaces before the closing tag at the bottom of page...seo.class.php file...I mean. And whereever else it says there might be errors.
  17. jdice

    BTSv1.2 Support

    Hello, I want to know if anyone here has uploaded Link Manager 1.8 version converting to work with a bts template site? And if they have the steps to do so? I just uploaded Link Manager 1.8 to my bts site. The administrative side works fine. However, the homepage does not display a clickable link to the links page. Does anyone know what to do next? Janet
  18. jdice

    Links Manager II

    This is such a nice contribution from what I can see in the administation. It is unlike any other links manager I have seen yet. I hope someone has converted for bts. I see version 1.0 in the forum that looks like VJ may have helped convert it. But 1.8 is so new...I doubt anyone has tackled it yet. However, I did leave new post today on the bts side of the forum to see if anyone can help. I wished I was more knowledgable about this stuff....so I could do it myself. Thanks for responding Jack:)
  19. jdice

    Links Manager II

    Looks like a good contribution so far. It all shows up just fine in the administration side but my home page doesn't show a links page/button/clickable link to the links page or anything. Not sure what I am missing. I looked at all the files to see if everything got uploaded...it did...except I'm really tired...I could have overlooked something. I will take another fresh look tomorrow. I have a bts template with ultimate seo urls contribution. If anyone knows something I can do...let me know. Janet
  20. Okay...this may be a stupid question....but how do you make sure your cookie settings are okay? and what is p3p cookie privacy policy header? And are there any other functions... like BUY NOW buttons... that I need to change to forms to keep the googlebot from following them? I am getting ready to install GOOGLE PAGE RANK for xml or GOOGLE SITEMAP by chemo....so spiders will go there and not get trapped in my BUY NOW buttons and produce SID numbers over and over again indexing my site. Any help in helping me to understand this...thank you. Janet
  21. Hi again....I am not sure if you read my last post or not...but I did look further into this problem of googlebots being trapped late last night. And I also found this thread... I am going to follow the advice of toyicebear(nick) and boxtel (amanda) in the following thread. Mainly because I want to keep ultimate seo urls and from what I understand SID killer disables ulitmate seo urls... so SID killer will work(not for sure...but this is my understanding). And I don't want that. I want to be able to use ultimate seo urls. Also..crimbel crumble (eric) asked some key questions that helped me to understand functions in this thread. I have only looked into this...because I don't want this to happen to me. I think ultimate seo urls changes ADD TO CART buttons to BUY NOW buttons. And that to could be the cause of the problem...because they need to be changed to forms. Anyhow...here it the thread if you want to take a peek and see if it is useful for your situation or not. http://forums.oscommerce.com/index.php?act...=7&t=194200 PS...I am not a coder or anything...I cut and paste...and understand little bits here and there. So only use my advice at own disgretion and make the decision to use or not use based on your own knowledge and understanding. Good Luck.
  22. Hi just happen to come across this contribution and I remembered your post.....I think you need SID Killer 1.2b http://addons.oscommerce.com/info/952 the google gets trapped and this contribution is supposed to remedy that.
  23. Gosh...have I got a mess on my hands. I have a bts template. I uploaded ultimate seo url 2.0...thinking Chemo's version is probably the safest. Warning: include_once(includes/reset_seo_cache.php) [function.include-once]: failed to open stream: No such file or directory in /home/electron/public_html/catalog/admin/categories.php on line 21 Warning: include_once() [function.include]: Failed opening 'includes/reset_seo_cache.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/electron/public_html/catalog/admin/categories.php on line 21 Warning: Cannot modify header information - headers already sent by (output started at /home/electron/public_html/catalog/admin/categories.php:21) in /home/electron/public_html/catalog/admin/includes/functions/general.php on line 34 After reading....alot...I realize the server can't find rest_seo_cache.php file. So I realize I need 2.1c because...it has the reset_seo_cache.php file. So I upload the 2.1c version and make all the necessary changes. Everything looks perfect except when I go to oscommerce administration panel...when I go to create a category ...it goes to blank page. The category loads because when I click the back button...the category I created is there...but when I create a category...it takes me to a blank page AND it also does it when I try to add a new product. So the page it takes me to is: http://electronicsgo.com/catalog/admin/cat...gory&cPath= So..I look at this and think...should there be a path there? So...I look to the seo url forum for answers. I read I small part from Vger that says 2.1c won't work without 2.1d. So I figure if I load 2.1da_1_2(the latest 2.1d version) ...this will take care of any path problems. Now after loading this version, I get... Warning: mysql_connect() [function.mysql-connect]: User electron_osc1 has already more than 'max_user_connections' active connections in /home/electron/public_html/catalog/includes/functions/database.php on line 19 Unable to connect to database server! Does anyone know what I should do next? I have spent all week on this...this was supposed to be a 5minute upload. What have I done wrong? This is so discouraging.
  24. I have been picking my brain for weeks trying to understand this. There is no support for this contribution offered. Who originally made the contribution abandoned it and is offering no further help. I have read and read other post to no end. I uploaded the most recent cdynamic meta tags contribution on bts and I get this <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <base href="http://electronicsgo.com/catalog/"> <meta name="description" content="META_TAG_DESCRIPTION" > <meta name="keywords" content="META_TAG_KEYWORDS" > <link rel="stylesheet" type="text/css" href="templates/CSS-fluid-1/stylesheet.css"> I have installed alot of contributions in the past...but this by far has been the most difficult to understand. Instructions are very choppy. It is like it is not working at all once uploaded. If anyone has installed this contribution and has a bts template....please respond. I have been to the point of tears several times. And I am close to abandoning the idea of this contribtuion all together.
  25. I am not even sure how to describe this. I uploaded the contribution. And when I go to my domain name...it ask for username and password....and I am thinking....WHAT? my store no longer shows up. I have bts template already installed...but that is the only other contribution I have made prior to the cDynamic_Meta_Tags contribution. Is this a permissions problems? How do I fix this?
×