Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Flotec

Members
  • Content count

    122
  • Joined

  • Last visited

Everything posted by Flotec

  1. Flotec

    ULTIMATE Seo Urls 5 - by FWR Media

    I did install this addon a year ago and it has worked perfectly until the web hotel changed server, Today I cannot see the different settings under Configuration/SEOURL 5. The SEO URL 5 page in admin is only a blank page with no parameters. What can be wrong? I have a OScommerce V.2.3.3 on now a PHP 5.2.9 server.
  2. The Mini Template is indeed a quite simple way to improve the look and feel of standard Oscommerce. It makes it easy to have a very proffesional look of the store without having to pay for someone to do it or buy a template. Ones installed and understood it's very easy to modify the store. The support I have got from George was also extremely helpful. I do recommend anyone to use it.
  3. Flotec

    Article Manager v1.0

    I have not done the last update of header tags. Can that change anything?
  4. Flotec

    Article Manager v1.0

    OK. Problem is I got it to work for the first topic but not the others. Don't ask me how I did that. All the rest of the topics will have the title "Articles - default title". I'm not able to change that however if I look in page control it's correct. Is there something else that overrides the header tags?
  5. Flotec

    Article Manager v1.0

    Thank you for your help. Problem is I have SEO URL 5 installed also so it's difficult to see the name of the page. Is there a good way to see the old name of the topics and articles without having to switch SEO URL of and on again?
  6. Flotec

    Article Manager v1.0

    Problem is I can't get this to work. I can find the articles in the page control so I should be able to change header tags there. However I have problems with that. The different topics I cannot find in page control so I suppose I cannot change that. It should be really good to be able to edit this in article manager instead. I managed to delete article=1 in page control. I thought I could only delete the header contents but the article=1 is now missing in the list of page control. Can I get it back somehow?
  7. Flotec

    Article Manager v1.0

    When editing an article shouldn't I get a field for header tags also in the same way as when editing products? Shouldn't I get the same also when editing topics? What type of fault have I done if I cannot see those fields in admin?
  8. Flotec

    Article Manager v1.0

    For anyone that wants to take away the "All topics" link in the box this is how I did it in bm_articles.php fileon line 255: /********************* BUILD TOPICS ********************/ if (ARTICLE_BOX_DISPLAY_TOPICS_SECTION == 'true') { // $articlesArray['all_topics']['sort_order'] = ARTICLE_BOX_DISPLAY_TOPICS_SECTION_SORT_ORDER; // $boldTags = GetBoldTags(FILENAME_ARTICLE_TOPICS); // $articlesArray['all_topics']['string'] = '<a href="' . tep_href_link(FILENAME_ARTICLE_TOPICS, '', 'NONSSL') . '">' . $boldTags['start'] . BOX_ARTICLE_TOPICS . $boldTags['stop'] . '</a><br />'; if (ARTICLE_BOX_DISPLAY_TOPICS_LINKS == 'true') $articlesArray['all_topics']['string'] .= $topics_string; // $articlesArray['all_topics']['string'] .= (SEPARATE_TOPICS == 'true' ? '<hr class="separatorArticle">' : '<br />'); } Just comment out the first three lines. The fourth one is to take away the separator also which is another issue.
  9. Flotec

    Article Manager v1.0

    OK, I will try to do that. I suppose you mean in the bm_articles.php file, is that correct? But I suppose the way you intended it to work was that setting all topics to false should turn this off?
  10. Flotec

    Article Manager v1.0

    "Display Box Articles - All Topics Section" set to false turns off everything "Display Box Articles - All Topics Links?" set to false turns off the topics but not the all topics link (the opposite of what I want)
  11. Flotec

    Article Manager v1.0

    How do I remove the All Topics link in the Articles box? This places itself on the first position before the individual topics. When I press RSS feed and include that in for example Google Reader I get the link "RSS article Feed" in the reader. I should want to change that to the store name. Is that possible?
  12. Flotec

    Header Tags SEO

    When trying to use the search I got the following error: 1146 - Table 'xxxxxx.TABLE_HEADERTAGS_KEYWORDS' doesn't exist select 1 FROM TABLE_HEADERTAGS_KEYWORDS where keyword = 'samsung' and language_id = 2 [TEP STOP] So I had to add this line missing in the installation notes for includes/database_tables.php define('TABLE_HEADERTAGS_KEYWORDS', 'headertags_keywords');
  13. I think you can forget about this add-on. It is not working. There is a lot of add-on like this that is not working on this site.
  14. Flotec

    Article Manager v1.0

    I changed the articles_pxsell to below to get the 2.3 box model. I know it's not 100% correct but it works for me. <?php /* $Id: articles_pxsell.php, v1.0 2006/03/11 12:00:00 Rigadin $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2006 osCommerce Released under the GNU General Public License */ if ($_GET['products_id']) { $xsell_query = tep_db_query("select distinct ax.articles_id, ad.articles_name, a.articles_last_modified from " . TABLE_ARTICLES_XSELL . " ax LEFT JOIN ".TABLE_ARTICLES." a USING(articles_id) LEFT JOIN " . TABLE_ARTICLES_DESCRIPTION . " ad USING(articles_id) where ax.xsell_id = '" . (int)$_GET['products_id'] . "' and ad.language_id = '" . (int)$languages_id . "' and a.articles_status = '1' order by a.articles_last_modified"); $num_products_xsell = tep_db_num_rows($xsell_query); if ($num_products_xsell >= MIN_DISPLAY_ARTICLES_XSELL) { ?> <!-- xsell_articles //--> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header ui-corner-top infoBoxHeading"> <span><?php echo TEXT_PXSELL_ARTICLES; ?></span> </div> <?php echo $info_box_contents; ?> </div> <?php $info_box_contents = array(); $row = 0; $col = 0; $info_box_contents = array(); while ($xsell = tep_db_fetch_array($xsell_query)) { $xsell['products_name'] = tep_get_products_name($xsell['products_id']); $info_box_contents[$row][$col] = array('align' => 'left', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => tep_image(DIR_WS_IMAGES.'icons/article.gif').' <a href="' . tep_href_link(FILENAME_ARTICLE_INFO, 'articles_id=' . $xsell['articles_id']) . '">' . $xsell['articles_name'] . '</a><br>'); $col = 0; $row ++; } new contentBox($info_box_contents); ?> <!-- xsell_articles_eof //--> <?php } } ?>
  15. Flotec

    ULTIMATE Seo Urls 5 - by FWR Media

    Forget the first issue about character replacement. Just a stupid mistake.
  16. Flotec

    ULTIMATE Seo Urls 5 - by FWR Media

    Have installed it and it works really good exept two things: - I get error if I use the swedish language character replacement file. I have changed it to UTF-8 encoding but that does not help. It works however if I define the characters in admin - The links in the Infromation box is just the english name of the file. I should want the link to be the swedish title instead. Anyone has some help on this?
  17. I don't know exactly how you want it. I have however managed to get rid of the -> at the end of a parent category and substituted that with a blue arrow at the front instead. I have also put a blue dot in front of the child categories. It starts to get nicer. However the old enhanced categories I have in my old 2.2 shop has a line between all main categories. I will see if I can manage that tomorrow. Seems it's only us two interested in this dsaltmer. If you want I can send you the new bm_enhanced_categories.php file.
  18. Well I found it myself. Now I have a new box that looks exactly the same as the old one. Lets see if it possible to add the arrows in the same way it was done in the old category box enhancement for Osc 2.2 http://addons.oscommerce.com/info/1480 Anyone likes to help me?
  19. Very sorry but that was the wrong file. This is how my catalog/includes/modules/boxes/bm_categories.php files looks like: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ class bm_enhanced_categories { var $code = 'bm_enhanced_categories'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function bm_enhanced_categories() { $this->title = MODULE_BOXES_ENHANCED_CATEGORIES_TITLE; $this->description = MODULE_BOXES_ENHANCED_CATEGORIES_DESCRIPTION; if ( defined('MODULE_BOXES_ENHANCED_CATEGORIES_STATUS') ) { $this->sort_order = MODULE_BOXES_ENHANCED_CATEGORIES_SORT_ORDER; $this->enabled = (MODULE_BOXES_ENHANCED_CATEGORIES_STATUS == 'True'); $this->group = ((MODULE_BOXES_ENHANCED_CATEGORIES_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; } $categories_string .= '<a href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '"**>'; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<strong>'; } // display category name $categories_string .= $tree[$counter]['name']; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</strong>'; } if (tep_has_category_subcategories($counter)) { $categories_string .= '->'; } $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br />'; if ($tree[$counter]['next_id'] != false) { $this->tep_show_category($tree[$counter]['next_id']); } } function getData() { global $categories_string, $tree, $languages_id, $cPath, $cPath_array; $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } if (tep_not_null($cPath)) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } $this->tep_show_category($first_element); $data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_ENHANCED_CATEGORIES_BOX_TITLE . '</div>' . ' <div class="ui-widget-content infoBoxContents">' . $categories_string . '</div>' . '</div>'; return $data; } function execute() { global $SID, $oscTemplate; if ((USE_CACHE == 'true') && empty($SID)) { $output = tep_cache_categories_box(); } else { $output = $this->getData(); } $oscTemplate->addBlock($output, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_ENHANCED_CATEGORIES_STATUS'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Categories Module', 'MODULE_BOXES_CATEGORIES_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_CATEGORIES_CONTENT_PLACEMENT', 'Left Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_BOXES_CATEGORIES_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_BOXES_ENHANCED_CATEGORIES_STATUS', 'MODULE_BOXES_ENHANCED_CATEGORIES_CONTENT_PLACEMENT', 'MODULE_BOXES_ENHANCED_CATEGORIES_SORT_ORDER'); } } ?>
  20. Well, since this does not work I thought I should try to make my own enhanced category. I took a copy of the catalog/includes/modules/boxes/bm_categorories.php file and converted that to bm_enhanced_Categories.php file. Something to build on. This is how it looks like: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ class bm_enhanced_categories { var $code = 'bm_enhanced_categories'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function bm_enhanced_categories() { $this->title = MODULE_BOXES_ENHANCED_CATEGORIES_TITLE; $this->description = MODULE_BOXES_ENHANCED_CATEGORIES_DESCRIPTION; if ( defined('MODULE_BOXES_ENHANCED_CATEGORIES_STATUS') ) { $this->sort_order = MODULE_BOXES_ENHANCED_CATEGORIES_SORT_ORDER; $this->enabled = (MODULE_BOXES_ENHANCED_CATEGORIES_STATUS == 'True'); $this->group = ((MODULE_BOXES_ENHANCED_CATEGORIES_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function execute() { global $category_info_array, $cPath, $cPath_array, $current_category_id, $PHP_SELF, $oscTemplate; if (!isset($category_info_array) || !is_array($category_info_array)) $category_info_array = tep_build_category_info_array(); $cat_pdown = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT)); $count = ''; $categories_string = '<ul class="enhcat">'; if (tep_not_null($cPath)) { $shown_path = $cPath_array; $shown_path[] = 0; } else { $shown_path = array(0); } $previous_level = 0; $first = true; foreach ($category_info_array as $id => $cat) { if (SHOW_COUNTS == 'true') { $count = ' (' . $cat['prod_count'] . ')'; } $cat_pdown[] = array('id' => $cat['path'], 'text' => $cat['indent'] . $cat['name'] . $count); // if (in_array($cat['parent'], $shown_path)) { if ($cat['level'] > $previous_level) { $categories_string .= '<ul>'; } elseif (!$first && ($cat['level'] == $previous_level)) { $categories_string .= '</li>'; } elseif ($cat['level'] < $previous_level) { while ($previous_level > $cat['level']) { $categories_string .= '</li></ul>'; $previous_level--; } } $previous_level = $cat['level']; $first = false; $categories_string .= '<li><a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $cat['path']) . '">'; if (isset($cPath_array) && in_array($id, $cPath_array)) { $categories_string .= '<strong>'; } if ($id == $current_category_id) { $categories_string .= '<span class="errorText">'; } $categories_string .= $cat['name']; // display category name if ($id == $current_category_id) { $categories_string .= '</span>'; } if (isset($cPath_array) && in_array($id, $cPath_array)) { $categories_string .= '</strong>'; } $categories_string .= '</a>'; if ($cat['has_subcat']) { $categories_string .= ' <img src="' . DIR_WS_IMAGES . 'pointer_blue.gif' . '" />'; } $categories_string .= $count; // } } while ($previous_level > -1) { $categories_string .= '</li></ul>'; $previous_level--; } $numspecials = ''; if (SHOW_COUNTS == 'true') { $hiddenlist = ""; /*if (!empty($hiddencats)) { $hiddenlist = " and (not (p2c.categories_id in (" . implode(',', $hiddencats) . ")))"; }*/ $specials_query = tep_db_query('select count(distinct s.products_id) as total from ' . TABLE_SPECIALS . ' s join ' . TABLE_PRODUCTS . ' p, ' . TABLE_PRODUCTS_TO_CATEGORIES . ' p2c where p.products_status = 1 and s.products_id = p.products_id and s.status = 1 and p2c.products_id = p.products_id' . $hiddenlist); $specials_count = tep_db_fetch_array($specials_query); $numspecials = ' (' . $specials_count['total'] . ')'; } if ( (basename($PHP_SELF) != FILENAME_SPECIALS)) { $categories_string .= '<strong><a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '">' . MODULE_BOXES_ENHANCED_CATEGORIES_SPECIALS . '</a></strong>' . $numspecials; } else { $categories_string .= '<strong><a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '"><span class="errorText">' . MODULE_BOXES_ENHANCED_CATEGORIES_SPECIALS . '</span></a></strong>' . $numspecials; } $categories_string .= "<br />\n"; if ( (basename($PHP_SELF) != FILENAME_PRODUCTS_NEW)) { $categories_string .= '<strong><a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL') . '">' . MODULE_BOXES_ENHANCED_CATEGORIES_NEWEST . '</a></strong>'; } else { $categories_string .= '<strong><a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL') . '"><span class="errorText">' . MODULE_BOXES_ENHANCED_CATEGORIES_NEWEST . '</span></a></strong>'; } $categories_string .= "<br />\n" . tep_draw_form('categories', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get') . '<strong>' . MODULE_BOXES_ENHANCED_CATEGORIES_GOTO . '</strong><br>' . tep_draw_pull_down_menu('cPath', $cat_pdown, $cPath, 'onchange="this.form.submit();" style="width: 100%"') . tep_hide_session_id() . '</form>'; $output = '<script type="text/javascript" language="javascript" src="' . DIR_WS_INCLUDES .'enhcat_hoverIntent.js"></script>'; $output .= '<script type="text/javascript" language="javascript" src="' . DIR_WS_INCLUDES .'enhcat_jquery_dropdown.js"></script>'; $output .= '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_ENHANCED_CATEGORIES_BOX_TITLE . '</div>' . ' <div class="ui-widget-content infoBoxContents">' . $categories_string . '</div>' . '</div>'; $oscTemplate->addBlock($output, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_ENHANCED_CATEGORIES_STATUS'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Enhanced Categories Module', 'MODULE_BOXES_ENHANCED_CATEGORIES_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_ENHANCED_CATEGORIES_CONTENT_PLACEMENT', 'Left Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_BOXES_ENHANCED_CATEGORIES_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_BOXES_ENHANCED_CATEGORIES_STATUS', 'MODULE_BOXES_ENHANCED_CATEGORIES_CONTENT_PLACEMENT', 'MODULE_BOXES_ENHANCED_CATEGORIES_SORT_ORDER'); } } ?> I kept the language file as it is. Well it shows up when trying to install the module but after installation it dissapears again. I don't know why. Anyone that can see the fault in the file?
  21. You are right. I tried it and it is like you say. It shows all subcategories and it shows them outside the box. This add-on does not work properly. I will see what I can do tomorrow.
  22. There is a catalog/includes/general.js file. I think it's there you should add the code. I have planned to try this add-on tomorrow so maybe I have more to add after that.
  23. Flotec

    Article Manager v1.0

    Do you have any plans for changing the article cross-sell box in product info using JqueryUi class so it looks the same as "also purchased" box in 2.3.1?
  24. I have also installed this and have not the problem you have. I have different text on main category and subcategories. You must have made some error when you installed it.
×