Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

coolMenu


Keyser Soze

Recommended Posts

  • Replies 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

I've read through the forum posts and found computerwizz5 had the same problem as me, his post was :-

hey all, i have had coolmenu for some time now, but never enabled the cache. When i do the regular menu is present and the coolmenu is floating on top?

 

I searched through all teh pages btu coem to no conclusion.

 

Thanks

Danny

but it was never answered, so I'm no wiser.
Link to comment
Share on other sites

I tried turning off cache, but then the category box dissapeared alltogether, but the coolmenu float was still there, displayed over my other infoboxes.

 

I think the problem has something to do with this statement in colum_left. :-

 

if ((USE_CACHE == 'true') && empty($SID)) {
   echo tep_cache_categories_box();
 } else { 
   include(DIR_WS_BOXES . 'coolmenu.php');
 }

Please Please Please can anyone help me get this problem fixed, as my site looks like junk with this problem.

Edited by Rochdalemark
Link to comment
Share on other sites

This may seem silly but I had a similar problem until I actually published the changes in column_left.php onto my site. It stopped the original menu being displayed.

Link to comment
Share on other sites

I've read through the forum posts and found computerwizz5 had the same problem as me, his post was :-  but it was never answered, so I'm no wiser.

I may have found your problem. Located in the coolmenu.php in the boxes directory you will find a couple of lines near the bottom:

 

$info_box_contents[] = array('text' => '

<img src="images/trans.gif" width="150" height="' . $height . '">');

 

The problem is that in front of the <img line a tab is used. This is confusing the remaining code because it isn't designed to remove the tab. Thus you sometimes get an error when executing the javascript. I copied the generated section to an html editor / preview program and got an error every time.

 

All you need to do is go to the end of the first line => ' and delete the carriage return and tab characters. Then save the file. I no longer have the issue you are trying to solve. It works great on mine now.

 

Line should read:

 

$info_box_contents[] = array('text' => '<img src="images/trans.gif" width="150" height="' . $height . '">');

 

Hope this helps,

Bob

Link to comment
Share on other sites

hi everyone hi have a small problem and i want to know if there is a solution to the following problem:

 

the coolmenu on the main page is A OK! but when i go to another page or one of the product pages the pages themselves resizes. is there a way i can stick the cool menu in the categorie box or does anyone know how i can stop this resizing of pages you can see what i mean here:

anani.ca hardware store

 

thx in advance :thumbsup:

Edited by zero19
Link to comment
Share on other sites

Cheers for that Badlhby,

 

Both menu's do not appear both at once now :)

That should be altered in the contribution files.

 

Another problem has now cropped up, I'm using the nojava script addition that the contribution has, and my menu box seems to be at least double the size of my menu, no matter what I set the length to in includes/coolmenu.php for the height size per category. i.e $height.= 2.65*count($categories);

The width I can alter no problems.

 

Anyone had this same problem? more importantly, anyone solved this problem?

 

I may have found your problem.  Located in the coolmenu.php in the boxes directory you will find a couple of lines near the bottom:

 

  $info_box_contents[] = array('text'  => '

<img src="images/trans.gif" width="150" height="' . $height . '">');

 

The problem is that in front of the <img line a tab is used.  This is confusing the remaining code because it isn't designed to remove the tab.  Thus you sometimes get an error when executing the javascript.  I copied the generated section to an html editor / preview program and got an error every time.

 

All you need to do is go to the end of the first line => ' and delete the carriage return and tab characters.  Then save the file.  I no longer have the issue you are trying to solve.  It works great on mine now.

 

Line should read:

 

  $info_box_contents[] = array('text'  => '<img src="images/trans.gif" width="150" height="' . $height . '">');

 

Hope this helps,

Bob

Link to comment
Share on other sites

I managed to fix it by inputing the menu size manually in boxes/coolmenu.php

  $info_box_contents[] = array('text'  => '<img src="images/trans.gif" width="118" height="139">');

that solved the problem, but if I add another main category I will have to remember to change that file.

 

Has anyone solved the problem with subcategories dissapearing off the bottom of the screen? I know someone was asking about the submenu's dissapearing off the right of the screen.

What I need it to do is either create another menu next to it i.e

<br>

or

have the menu appear at the top of the page each time, rather than from the begining of each selected level.

 

Otherwise my customers are never going to be able to select some areas of my site. :'(

 

 

Cheers for that Badlhby,

 

Both menu's do not appear both at once now :)

That should be altered in the contribution files.

 

Another problem has now cropped up, I'm using the nojava script addition that the contribution has, and my menu box seems to be at least double the size of my menu, no matter what I set the length to in includes/coolmenu.php for the height size per category. i.e $height.= 2.65*count($categories);

The width I can alter no problems.

 

Anyone had this same problem?  more importantly, anyone solved this problem?

Link to comment
Share on other sites

  • 2 weeks later...

Can some one guide me how to increase the size of the categories box on the left.

 

I am using the coolmenu contribution, but when this menu is being used it goes over the Manufacturers box on the left.

 

www.247av.com

Hope the above link will help you understand what I mean.

 

Can you please help!!!

 

Regards,

Kunal

Link to comment
Share on other sites

Can some one guide me how to increase the size of the categories box on the left.

 

I am using the coolmenu contribution, but when this menu is being used it goes over the Manufacturers box on the left.

 

www.247av.com

Hope the above link will help you understand what I mean.

 

Can you please help!!!

 

Regards,

Kunal

 

can this be done in includes/classes/boxes.php ?????

if so can some one give me the code for what I have too look for.

 

Would really appreciate your help.

Regards,

Kunal

Link to comment
Share on other sites

Ok update and a little more information. I think i have found my problem but dont know how to fix it?

 

In the install.txt it says

 

"So, add these 3 lines to every file in your catlog-directory between the <body>-Tag and the including of header.php":

 

<!-- coolMenu //-->

<?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?>

<!-- coolMenu_eof //-->

 

 

Problem is i dont hvae <body> tags in the header.php and its a stock header with the exception on the logo being changed. here is what the header.php file shows. ideas on where to put this code?

 

<?php
/*
 $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/


// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
     $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
   }
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
     $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
   }
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
   if (STORE_SESSIONS == '') {
     if (!is_dir(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
     } elseif (!is_writeable(tep_session_save_path())) {
       $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
     }
   }
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
   if (ini_get('session.auto_start') == '1') {
     $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
   }
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
   if (!is_dir(DIR_FS_DOWNLOAD)) {
     $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
   }
 }

 if ($messageStack->size('header') > 0) {
   echo $messageStack->output('header');
 }
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr class="header">
   <table width="830" height="170" border="0" background="images/lso_full.jpg">

   <td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>
 </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="headerNavigation">
   <td class="headerNavigation">  <?php echo $breadcrumb->trail(' » '); ?></td>
   <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
 </tr>
</table>
<?php
 if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerError">
   <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
 </tr>
</table>
<?php
 }

 if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
 <tr class="headerInfo">
   <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>
 </tr>
</table>
<?php
 }
?>

 

 

 

Thanks

Link to comment
Share on other sites

Ok update and a little more information. I think i have found my problem but dont know how to fix it?

 

In the install.txt it says

 

"So, add these 3 lines to every file in your catlog-directory between the <body>-Tag and the including of header.php":

 

<!-- coolMenu //-->

<?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?>

<!-- coolMenu_eof //-->

Problem is i dont hvae <body> tags in the header.php and its a stock header with the exception on the logo being changed. here is what the header.php file shows. ideas on where to put this code?

 

Thanks

 

If you have put the following lines into every file in your catalog folder:

 

<!-- coolMenu //-->

<?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?>

<!-- coolMenu_eof //-->

 

Then you do not need to put anything into the header.php file.

 

Mark

Link to comment
Share on other sites

I spoke to soon. The problem i seem to behaving now is on some pages it is centered in the box, but on others it isnt. How can i center it in the box with out it changing it on other pages.

 

FYI, i know how to move the it in the coolmenu.php etc. So bascily i just need to know how to center it in the box with out it changing on other pages.

 

Thanks

Link to comment
Share on other sites

hi everyone i have to simple problems i need help with .

 

1.how do we change the name of the menu.

the default name is coolmenu how can i change that to store or hardware ....

 

2.the arrows on the far right on shopping cart and reviews are not in place where

can i fix the the alignment or position of theses arrows

 

 

thx in advance

Link to comment
Share on other sites

  • 2 weeks later...

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...