Results 1 to 8 of 8

Threaded View

  1. #1
    Join Date
    Nov 2011
    Posts
    72
    Plugin Contributions
    0

    Default two rows in my header seemed to have vanished...

    hi all. i'm running zen cart v150. this is my site:

    http://www.c u l tivatedreef.com

    i've been making some relatively minor tweaks to my store and trying to pick up the pieces from a previous developer....while working on something today, i realized i have a new issue. while trying to edit the dynamics of my links menu (specifically getting rid of the drop down menu that you see when you hover over "new additions" and "coral sales") i've been playing with the code located in a file called tpl_drop_menu.php. the file is located here: www/includes/templates/mytemplate/common/ this seems to be the correct file which controls the dropdown menus.

    anyway, i was attempting to fix this issue like i do with all the other issues - trial and error. i save a backup of the original file in question (in this case tpl_drop_menu.php), and then make the edits as necessary on a copied notepad file, which i upload in the appropriate directory via ftp... and then i revert back to the original as the fixes don't work until i figure it out...

    i was having some FTP issues earlier, so to make sure the new file was correctly overwriting the old one, i decided to delete the file off the site via FTP to ensure a edited-version was being properly uploaded... the file uploaded, but my edits didn't fix the issue... no big deal, i can just reupload the original file as usual, right? WRONG. i uploaded the original and that's when i lost 2 entire rows of the top portion of my site

    so my first question is this: is deleting specific files in your zencart database via FTP a big no-no or something? even if you're re-uploading the same file? i've done this before without issue, so i'm shocked, and extremely frustrated now that i've created a whole new issue on top of the one i was originally going after.

    here is a screenshot of the area in question (outlined in red) that's seemed to disappear (taken from archive.org so not exact, but you get the idea):

    http://i589.photobucket.com/albums/s...Untitled-1.jpg

    my second, and perhaps most obvious question, is how exactly do i get this area to appear back the way it's supposed to? using firebug, i believe the two missing rows are defined in zencart as "BannerTwo" and "headBanner"... these codes still exist, and are still on the server, but i'm just not sure what to do. this is the original tpl_drop_menu.php code below:

    Code:
    <?php
    
    //
    
    // +----------------------------------------------------------------------+
    
    // |zen-cart Open Source E-commerce                                       |
    
    // +----------------------------------------------------------------------+
    
    // | Copyright (c) 2003 The zen-cart developers                           |
    
    // |                                                                      |
    
    // | http://www.zen-cart.com/index.php                                    |
    
    // |                                                                      |
    
    // | Portions Copyright (c) 2003 osCommerce                               |
    
    // +----------------------------------------------------------------------+
    
    // | This source file is subject to version 2.0 of the GPL license,       |
    
    // | that is bundled with this package in the file LICENSE, and is        |
    
    // | available through the world-wide-web at the following url:           |
    
    // | http://www.zen-cart.com/license/2_0.txt.                             |
    
    // | If you did not receive a copy of the zen-cart license and are unable |
    
    // | to obtain it through the world-wide-web, please send a note to       |
    
    // | [email protected] so we can mail you a copy immediately.          |
    
    // +----------------------------------------------------------------------+
    
    // $Id: tpl_drop_menu.php  2005/06/15 15:39:05 DrByte Exp $
    
    //
    
    
    
    ?>
    
    <!-- menu area -->
    
    
    
    <script type="text/javascript">
    
    var isAnimating = false;
    
    $(function () {
    
          $('#dropMenu .level1 .submenu.submenu').hover(function() {
    
    if (!isAnimating) {
    
      $(this).find('ul.level2,.level3 li,.level4 li,.level5 li,.level6 li').stop(true, true).fadeOut(1000);
    
      $(this).find('ul.level2,.level3 li,.level4 li,.level5 li,.level6 li').stop(true, true).fadeIn(1000);
    
      isAnimating = true;
    
    }
    
    }, function() {
    
    $(this).find('ul.level2,.level3 li,.level4 li,.level5 li,.level6 li').stop(true, true).fadeIn(1000);
    
    $(this).find('ul.level2,.level3 li,.level4 li,.level5 li,.level6 li').stop(true, true).fadeOut(1000);
    
    isAnimating = false;
    
    });});
    
    
    
    </script>
    
    
    
    <div id="dropMenuWrapper">
    
      <div id="dropMenuWrapperb">
    
        <div id="dropMenuWrapperc">
    
          <div id="dropMenuWrapperd">
    
            <div id="dropMenu">
    
              <ul class="level1">
    
                
    
          
    
                  <?php
    
    
    
     // load the UL-generator class and produce the menu list dynamically from there
    
     require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
    
     $zen_CategoriesUL = new zen_categories_ul_generator;
    
     $menulist = $zen_CategoriesUL->buildTree(true);
    
     $menulist = str_replace('"level4"','"level5"',$menulist);
    
     $menulist = str_replace('"level3"','"level4"',$menulist);
    
     $menulist = str_replace('"level2"','"level3"',$menulist);
    
     $menulist = str_replace('"level1"','"level2"',$menulist);
    
     $menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
    
     $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
    
     echo $menulist;
    
    ?>
    
                </li>
    
    			
    
    		<!-- bof Hidden Container 2 -->
    
    		<li class="submenu">
    
    <div id="blockTwo">
    
    <a href="index.php?main_page=products_new" onClick="showSlidingDiv2(); return false;">New Additions</a>
    
    
    
    <div id="container2">
    
    <script type="text/javascript">
    
    //<![CDATA[
    
    function showSlidingDiv2(){
    
    $("#slidingDiv2").animate({"height": "toggle"}, { duration: 1000 });
    
    }
    
    //]]>
    
    
    
    
    
    </script>
    
    
    
    
    
    
    
    
    
    <div id="slidingDiv2">
    
    <a href="#" onClick="showSlidingDiv2(); return false;"><span id="close">Click to Return to Menu</span></a>
    
    <?php $define_page_2 = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_PAGE_2, 'false');?>
    
    	<div id="indexDefaultMainContent" class="content"><?php require($define_page_2); ?></div>
    
    		
    
        </div>
    
    	</div></div></li>
    
    <!-- eof Hidden Container 2 -->
    
    
    
    <!-- bof Hidden Container 1 -->
    
    		<li class="submenu">
    
    <div id="blockOne">
    
    <a href="index.php?main_page=specials" onClick="showSlidingDiv1(); return false;">Coral Sales</a>
    
    
    
    <div id="container1">
    
    <script type="text/javascript">
    
    //<![CDATA[
    
    function showSlidingDiv1(){
    
    $("#slidingDiv1").animate({"height": "toggle"}, { duration: 1000 });
    
    }
    
    //]]>
    
    
    
    
    
    </script>
    
    
    
    
    
    
    
    
    
    <div id="slidingDiv1">
    
    <a href="#" onClick="showSlidingDiv1(); return false;"><span id="close">Click to Return to Menu</span></a>
    
    <?php $define_page_3 = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_PAGE_3, 'false');?>
    
    	<div id="indexDefaultMainContent" class="content"><?php require($define_page_3); ?></div>
    
    		
    
        
    
    	</div></div></div></li>
    
    <!-- eof Hidden Container 1 -->
    
                <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_INFORMATION; ?></a>
    
                  <ul class="level2">
    
    			    <?php if (DEFINE_SHIPPINGINFO_STATUS <= 1) { ?>
    
                    <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo HEADER_TITLE_SHIPPING_INFO; ?></a></li>
    
    				<?php } ?>
    
    				<?php if (DEFINE_PRIVACY_STATUS <= 1)  { ?>
    
                    <li><a href="<?php echo zen_href_link(FILENAME_PRIVACY); ?>"><?php echo HEADER_TITLE_PRIVACY_POLICY; ?></a></li>
    
    				<?php } ?>
    
    				<?php if (DEFINE_CONDITIONS_STATUS <= 1) { ?>
    
                    <li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS); ?>"><?php echo HEADER_TITLE_CONDITIONS_OF_USE; ?></a></li>
    
    				<?php } ?>
    
                    <!--<li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>"><?php echo HEADER_TITLE_ABOUT_US; ?></a></li>-->
    
                    <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?>
    
                    <li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo HEADER_TITLE_SITE_MAP; ?></a></li>
    
                    <?php } ?>
    
                    <?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?>
    
                    <li><a href="<?php echo zen_href_link(FILENAME_GV_FAQ, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_GV_FAQ; ?></a></li>
    
                    <?php } ?>
    
                    <?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?>
    
                    <li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_DISCOUNT_COUPON; ?></a></li>
    
                    <?php } ?>
    
                    
    
                    <li><a href="index.php?main_page=page&id=10">Newsletters</a></li>
    
    				
    
    				<li><a href="index.php?main_page=page&id=8">Stay Alive Guarantee</a></li>
    
                    <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
    
                  </ul>
    
                </li>
    
                <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
    
            
    
              </ul>
    
            </div>
    
          </div>
    
        </div>
    
      </div>
    
    </div><!-- end dropMenuWrapper-->
    
    <div class="clearBoth"></div>

    i'll post my stylesheet.css as a follow up message (exceeds character limit if i try to put it on this post)
    Last edited by irish_1985; 29 Sep 2012 at 10:54 PM.

 

 

Similar Threads

  1. v150 Nav Bar under header is too narrow for two rows of Categories
    By CultureClick in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 10 Jun 2012, 06:13 AM
  2. Sideboxes have vanished on Front Page
    By ShawnBeta in forum General Questions
    Replies: 3
    Last Post: 8 Sep 2011, 05:07 PM
  3. Images have vanished
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Feb 2009, 05:44 PM
  4. Page Titles Have Vanished
    By indigo-island in forum General Questions
    Replies: 10
    Last Post: 6 Mar 2008, 12:13 AM
  5. All images have vanished.
    By Vood in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 4 Nov 2007, 07:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg