Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem with Menubar 0.2


nycreal

Recommended Posts

Hi, I installed several javascript enabled dropdown menus (cool menu, Menubar 0.2. dhtml memu) and none seem to work. CoolMenu gave me a lot of problems, so I switched to Menubar 0.2 but that just displays a blank category box. No errors or anything, just a blank category box. The instructions were simple to follow, I am pretty sure I didn't miss anything. They are as follows:

 

STEP 1...
 install files from appropriate directories

STEP 2...

catalog/includes/column_left.php....

REPLACE:

include(DIR_WS_BOXES . 'categories.php');

WITH
	if ( DISPLAY_DHTML_MENU == 'True' ) {
  include(DIR_WS_BOXES . 'categories_dhtml.php');
  }
  else {
  include(DIR_WS_BOXES . 'categories.php');
  }

STEP 2...

Add the following line to the database:

INSERT INTO configuration VALUES (231, 'Enable Display Dhtml menu', 'DISPLAY_DHTML_MENU', 'True', 'Do you want to display a DHTML menu instead of the default text based?', 1, 19, '2003-03-13 01:23:23', '2003-03-07 20:37:02', NULL, 'tep_cfg_select_option(array(\'True\', \'False\'),');

 

Does anyone know how to make this work? I'm using STS, and Category Descriptions contrib, and that's it. Is there any other info you would need to help me with this? I'll post it up. Thanks.

 

Alex

Link to comment
Share on other sites

Oh, and this is the code I see when I do a View Source on my website:

 

<!-- start categorybox //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_left.gif" border="0" alt="" width="1" height="1"></td>
<td width="100%" height="14" class="infoBoxHeading">Products</td>

<td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>
<script type='text/javascript'>
/********************************************************************************
*************************************************************
*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)
*	HV Menu found on Dynamic Drive ONLY may be used on both commercial and non commerical sites	*
*	For info write to [email protected]									*
*	   This script featured on Dynamic Drive DHTML code library: http://www.dynamicdrive.com
********************************************************************************
**************************************************************/

var LowBgColor='transparent';			// Background color when mouse is not over
var LowSubBgColor='white';			// Background color when mouse is not over on subs
var HighBgColor='transparent';			// Background color when mouse is over
var HighSubBgColor='white';			// Background color when mouse is over on subs
var FontLowColor='black';			// Font color when mouse is not over
var FontSubLowColor='black';			// Font color subs when mouse is not over
var FontHighColor='#6699cc';			// Font color when mouse is over
var FontSubHighColor='#6699cc';			// Font color subs when mouse is over
var BorderColor='transparent';			// Border color
var BorderSubColor='#6699cc';			// Border color for subs
var BorderWidth=1;				// Border width
var BorderBtwnElmnts=0;			// Border between elements 1 or 0
var FontFamily="Verdana, Arial, sans-serif"	// Font family menu items
var FontSize=8;				// Font size menu items
var FontBold=0;				// Bold menu items 1 or 0
var FontItalic=0;				// Italic menu items 1 or 0
var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'
var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'
var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static
var ChildOverlap=.0;				// horizontal overlap child/ parent
var ChildVerticalOverlap=.0;			// vertical overlap child/ parent
var StartTop=1;				// Menu offset x coordinate
var StartLeft=0;				// Menu offset y coordinate
var VerCorrect=0;				// Multiple frames y correction
var HorCorrect=0;				// Multiple frames x correction
var LeftPaddng=2;				// Left padding
var TopPaddng=1;				// Top padding
var DissapearDelay=500;			// delay before menu folds in

var FirstLineHorizontal=0;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0
var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame
var FirstLineFrame='navig';			// Frame where first level appears
var SecLineFrame='space';			// Frame where sub levels appear
var DocTargetFrame='space';			// Frame where target documents appear
var TargetLoc='MenuBar';				// span id for relative positioning
var HideTop=0;				// Hide first level when loading new document 1 or 0
var MenuWrap=1;				// enables/ disables menu wrap 1 or 0
var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0
var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover
var WebMasterCheck=0;			// menu tree checking on or off 1 or 0
var ShowArrow=1;				// Uses arrow gifs when 1
var KeepHilite=1;				// Keep selected path highligthed
var Arrws=['images/tri.gif',5,10,'images/tridown.gif',10,5,'images/trileft.gif',5,10];	// Arrow source, width and height

function BeforeStart(){return}
function AfterBuild(){return}
function BeforeFirstOpen(){return}
function AfterCloseAll(){return}
function Go(){return}

var NoOffFirstLineMenus= 3;Menu1_1= new Array("CDROM Drives","http://www.cinacorp.com/items/index.php?cPath=1_17","",0,20,125); Menu1_2= new Array("Graphics Cards (2)","http://www.cinacorp.com/items/index.php?cPath=1_4","",0,20,125); Menu1_3= new Array("Keyboards (1)","http://www.cinacorp.com/items/index.php?cPath=1_8","",0,20,125); Menu1_4= new Array("Memory","http://www.cinacorp.com/items/index.php?cPath=1_16","",0,20,125); Menu1_5= new Array("Mice (2)","http://www.cinacorp.com/items/index.php?cPath=1_9","",0,20,125); Menu1_6= new Array("Monitors","http://www.cinacorp.com/items/index.php?cPath=1_6","",0,20,125); Menu1_7= new Array("Printers (1)","http://www.cinacorp.com/items/index.php?cPath=1_5","",0,20,125); Menu1_8= new Array("Speakers","http://www.cinacorp.com/items/index.php?cPath=1_7","",0,20,125); Menu1= new Array("Hardware (6)","http://www.cinacorp.com/items/index.php?cPath=1","",8,20,125); Menu2_1= new Array("Action (1)","http://www.cinacorp.com/items/index.php?cPath=2_19","",0,20,125); Menu2_2= new Array("Simulation (1)","http://www.cinacorp.com/items/index.php?cPath=2_18","",0,20,125); Menu2_3= new Array("Strategy (2)","http://www.cinacorp.com/items/index.php?cPath=2_20","",0,20,125); Menu2= new Array("Software (4)","http://www.cinacorp.com/items/index.php?cPath=2","",3,20,125); Menu3_1= new Array("Action (9)","http://www.cinacorp.com/items/index.php?cPath=3_10","",0,20,125); Menu3_2= new Array("Cartoons (1)","http://www.cinacorp.com/items/index.php?cPath=3_13","",0,20,125); Menu3_3= new Array("Comedy (2)","http://www.cinacorp.com/items/index.php?cPath=3_12","",0,20,125); Menu3_4= new Array("Drama (3)","http://www.cinacorp.com/items/index.php?cPath=3_15","",0,20,125); Menu3_5= new Array("Science Fiction (1)","http://www.cinacorp.com/items/index.php?cPath=3_11","",0,20,125); Menu3_6= new Array("Thriller (1)","http://www.cinacorp.com/items/index.php?cPath=3_14","",0,20,125); Menu3= new Array("DVD Movies (17)","http://www.cinacorp.com/items/index.php?cPath=3","",6,20,125); </script><table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>

 <tr>
<td align="left" class="boxText"><table><tr><td><div id='MenuBar' style='position:relative; width: 125; height: 60;'> </div></td></tr></table></td>
 </tr>
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>

<!-- end categorybox //-->

 

Pretty much all that code was parsed. Just thought that might help.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...