Forums / General Questions / categories box on top of other sideboxes

categories box on top of other sideboxes

Locked

Views: 614

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
1 Nov 2010, 10:03 PM
#1
bogyi avatar

bogyi

New Zenner

Join Date:
Aug 2010
Posts:
28
Plugin Contributions:
0

categories box on top of other sideboxes

Hi,

I've got a problem. My categories dropdown box is on top of any sidebox with lowest sort order, like it isn't counted as a categories box.

<?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_categories_css.php 2004/06/23 00:00:00 DrByteZen Exp $


//
    
  	$content = "";
		
    $content .= '<div id="light_menu" class="menu">';
    $content .= $menulist; // see the modules/sideboxes/YOURTEMPLATE/categories_css.php for this

  if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
    $content .= '<ul><li><a href=""> </a></li></ul>';  // insert a blank line/box in the menu
    if (SHOW_CATEGORIES_BOX_SPECIALS == 'true') {
      $content .= '<ul><li><a href="' . zen_href_link(FILENAME_SPECIALS) . '">' . CATEGORIES_BOX_HEADING_SPECIALS . '</a></li></ul>';
    }
    if (SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true') {
      $content .= '<ul><li><a href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . CATEGORIES_BOX_HEADING_WHATS_NEW . '</a></li></ul>';
    }
    if (SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true') {
      $show_this = $db->Execute("select products_id from " . TABLE_FEATURED . " where status= 1 limit 1");
      if ($show_this->RecordCount() > 0) {
        $content .= '<ul><li><a href="' . zen_href_link(FILENAME_FEATURED_PRODUCTS) . '">' . CATEGORIES_BOX_HEADING_FEATURED_PRODUCTS . '</a></li></ul>';
      }
    }
    if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
      $content .= '<ul><li><a href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a></li></ul>';
    }
  }
  $content .= '</div>';

	$title = '';

// May want to add ............onfocus="this.blur()"...... to each A HREF to get rid of the dotted-box around links when they're clicked.
// just parse the $content string and insert it into each A HREF tag

?>

I don't know if anything is changed, it looks all pretty standard, but please take a look, and tell me how I can have it to act as a sidebox....

  • Can't provide a link, server offline -
1 Nov 2010, 10:21 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: categories box on top of other sideboxes

That sounds like what would happen if you had position: absolute; for #categories {} in your stylesheet. Without seeing the site, or at least the stylesheets, all we can do is guess.
For this sidebox mod, the id would be different, maybe #categories_css {}.

1 Nov 2010, 10:56 PM
#3
bogyi avatar

bogyi

New Zenner

Join Date:
Aug 2010
Posts:
28
Plugin Contributions:
0

Re: categories box on top of other sideboxes

YES THANK YOU!

I found where it said position: absolute; with google chroom inspect element:cool::smile:

From what I understand, I need to integrate this dropdown menu in the menu header(divheadbg)

An example of what I need to accomplish: http://tinyurl.com/36m86ss

check out the header and then the dropdown see all categories. Any clue on how to do this?