Jump to content

zlotyx

Members
  • Content count

    4
  • Joined

  • Last visited

  1. zlotyx

    [contribution] STS PLUS v4

    Hi All, Can someone explein me how to integrate STS plust with 'Dhtml-CoolMenu choose from Admin', second contribution allow to chose menu type from admin. Menu require to replace: ' Now add the following lines to EVERY SINGLE file in your catalog-directory RIGHT AFTER THE <BODY> TAG. <!-- coolMenu //--> <?php if (DISPLAY_DHTML_MENU == 'CoolMenu') { require(DIR_WS_INCLUDES . 'coolmenu.php'); } ?> <!-- coolMenu_eof //--> Add the following line to EVERY SINGLE file in your catalog-directory between <HEAD> and </HEAD>. <!-- coolMenu //--> <?php if (DISPLAY_DHTML_MENU == 'CoolMenu') { echo '<script LANGUAGE="JavaScript1.2" SRC="includes/coolMenu.js"></SCRIPT>'; } ?> <!-- coolMenu_eof //--> --------- Edit column_left.php Find: if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } Replace by: if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { if ( DISPLAY_DHTML_MENU == 'Dhtml' ) { include(DIR_WS_BOXES . 'categories_dhtml.php'); } elseif (DISPLAY_DHTML_MENU == 'CoolMenu') { include(DIR_WS_BOXES . 'coolmenu.php'); } else { include(DIR_WS_BOXES . 'categories.php'); } } ' I've found that I must put second replace in catalog\includes\clasess\sts.php add after $this->template['headcontent'] = $this->template['headcontent'].get_javascript($this->template['applicationtop2header'],'get_javascript(applicationtop2header)'); add if (DISPLAY_DHTML_MENU == 'CoolMenu') { $this->template['headcontent'] = $this->template['headcontent'].'<script LANGUAGE="JavaScript1.2" SRC="includes/coolMenu.js"></SCRIPT>'; echo '<script LANGUAGE="JavaScript1.2" SRC="includes/coolMenu.js"></SCRIPT>'; } But where I must put first condition any sugestions?? Third update must be made in includes\modules\sts_inc\sts_columnt_lest.php Anyway after placing those inserts dhtml still dosn't work, any sugestions? Best regards Robert
×