Jump to content
Sign in to follow this  
Keyser Soze

coolMenu

Recommended Posts

To fix the coolmenu category infobox from hiding part the infobox below it, edit the coolmenu.php file at:

 

catalog/includes/boxes/coolmenu.php

 

Find:

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

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

 

Edit the height of the infobox by adding one more (") quotation mark and the number of pixels appropriate for your site.

Should look similar to this:

 

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

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

 

Play around with the height until you get what's right for your site. If you add new categories you will have to adjust the hiegt in this file again.

 

Hope that helps.

Dpac

 

 

 

^

Hello, I've followed the instructions and installed the cool menu on my OS Commerce site. It is quite nice, product categories are correctly scanned and displayed dynamically.

 

Only big issue: The cool menu is hiding part of the banner and part of next Box which is the search Box.

 

Does anyone knows where the problem could come from.

 

Thanks a lot for your help,

 

Greetings

 

Alex

Share this post


Link to post
Share on other sites

I have looked and looked but no one seems to be able to fix the size issue between "categories" and "cool menu"...

 

The problem is that "categories" expands depending on the number of subcategories in the parent category - and cool menu doesn't

 

so.....

 

Has anyone tried this as a fix?

 

1. Make the Category menu a constant and set height.

2. Then anyone using this can just alter the dimensions of cool menu to make it always fit?

 

I am a newb but it sounds to me like this would work.

 

I don't know where to start with this but if anyone can tell me the code to change to try, I will try it and post to the forum.

 

-Brian

Share this post


Link to post
Share on other sites

I have installed the cool menu. but I keep getting this error

 

'makeCM' is undefined

 

which I believe is in the coolmenu.php file. in this line

" oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname "

 

was there something I missed?..

 

the error and site I have it installed on is here

 

http://www.baneki.com/store/

 

can you help me?

Share this post


Link to post
Share on other sites
I love the menu but was not paying attention and did not research before installed. It will not work with STS and I don't know enough php to get it to work. :angry: :blush: Has anyone got it to work with STS yet? I would love to keep this menu but want to keep STS also if someone could help would be greatful. Thanks

 

I'm trying to do that. But I'm not an osCommerce nor php expert.

If I manage do to it, I'll post it here.

Share this post


Link to post
Share on other sites

Hi,

 

I have just installed coolMenu1.2 and everything was great! BUT I have added a width to my pages of 800px from 100% to create a blue border down each side, now this new menu does not fit in with my existing template!

 

http://mt-custom-graphics.com/shop/catalog/

 

Any help on resolving this would be great!

 

Also I will be looking to remove the 'curve' images on the Categories (left) & Basket (right) so if you have any idea how to do this as well!!!

 

 

Thanks in advance,

 

Richard

Share this post


Link to post
Share on other sites
If you are looking for a fixed position, like the standaard osCommerce menu, and a vertical fly-out menu, I've just contributed CSS Menu v0.1 which wil show you the same sort of menu, which is fully customizable using CSS-properties! There is also a screenshot included in the package.

 

Should I try this?!!

 

Thanks

Share this post


Link to post
Share on other sites

COOL Contribution!! :)

 

I installed it 2 days ago, I had problems at the beginning, but I found my answers in this theme.

 

I want to ask you how to bold the marked category in CoolMenu, like this :

 

category1

category2

category3

category4

 

if i look at category3's products?

 

How I can make my Information Box like CoolMenu?

Share this post


Link to post
Share on other sites

Hi all...

 

(quick intro): I'm new here and just finding my way through PHP after spending the past 10 years using Perl

 

I'm trying to setup a local site using this coolmenu as I think it's brill... I have got it all working (with more mods of my own) but when I switch javascript off I get nothing... has anyone else had this or have I removed too much code... I know its hard to explain aand there is no way of me putting it online to show you all but I do remember when I installed coolmenu I had an empty catagories box behind the cool menu... and I think to cure that I removed the call to it in the index, anyone has this problem?

 

many thanks in advance


if at first it doesn't work... use a bigger hammer

Share this post


Link to post
Share on other sites

Hi Guys,

 

Ive searched for several hours but I cant seem to find what I need, Im looking for something very very simple. Most of the drop-down menu's ive seen till now are Categories, Products, etc... what I need is a drop down menu for one of my navigation buttons in oscommerce (I know how that can be done in HTML, but I cant figure it out in PHP) - so a menu similar to the one on top of this page , thus if you put your mouse over 'Community' you would get a list of other links under it.

 

Any help, or redirection to a contribution would be extremely great & I would be grateful

 

Thanks

 

AJ

Share this post


Link to post
Share on other sites

I have managed to cure all my coolmenu problems despite the lack of help... and, I have even managed to combine the cool menu with the image rotator using mouse over commands, I am so impressed with this coolmenu... the only 1 downside to it is it's position control as its cord start from 0,0... If I wanted to centre the shop (which I tried) I run into problems, however... as it is not my shop it can stay full screen.

 

 

Many thanks to the creators and all who helped produce this mod.


if at first it doesn't work... use a bigger hammer

Share this post


Link to post
Share on other sites
Hi osCommerce-Community.

What do you think about the coolMenu on http://www.geraeteland.de ?

Does it work with all browsers?

I need to know this because i want to release a contribution for this menu on oscommerce.com soon but i need to that its bugfree...

Greetings

&y

works great on Mac OS X with latest Firefox and Safari

Share this post


Link to post
Share on other sites

I have installed the CoolMenu 1.2.1 onto my site along with the fixed width, centered contributions but i am having a little problem.

I do not know PHP so hopefully this is a really simple problem. I think its the CoolMenu which is the problem as i removed the code for the fixed width and it was the same.

The instructions say to insert;

 

<!-- coolMenu //-->

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

<!-- coolMenu_eof //-->

 

after the BODY tag and before the includes header.php line which I did apart from 2 or 3 pages where there was no BODY tag...

If you need more information i will happily provide.

I hope you can help!

 

Will.

 

 

example.GIF

Share this post


Link to post
Share on other sites

CoolMenu ~ GREAT contribution!

 

I've got one little problem... my boxes (category box) isn't sizing itself correctly. It's the same size as it was before I install the CoolMenu.

 

Any suggestions?

 

~jp

Share this post


Link to post
Share on other sites

I need help, I installed coolMenu. The menu operates correctly but is positioned over my what's new section.

 

To have a look goto http://www.mygoodies.co.za

 

Username: guest

Password: 0834528139

 

Please, any help will really be appreciated.

 

P.S. I'm also using infobox skins manager 2.0

 

Thanks

Share this post


Link to post
Share on other sites

I need help, I installed coolMenu. The menu operates correctly but is positioned over my what's new section.

 

To have a look goto http://www.mygoodies.co.za

 

Username: guest

Password: 0834528139

 

Please, any help will really be appreciated.

 

P.S. I'm also using infobox skins manager 2.0

 

Thanks

Share this post


Link to post
Share on other sites

may seem a daft question but how would one go about linking to an external page, as it all comes from the database I can't see how I would add a custom page to the menu... I can work out how to do it if i append to the end of the create box but not to be in the middle of the menu?

 

 

shop link1>

shop link2>

shop link3>

ext link1> (other.php)

shop link4>

shop link5>


if at first it doesn't work... use a bigger hammer

Share this post


Link to post
Share on other sites

Displaying categories_name with apostrophes in CoolMenus

 

Since an apostrophe is a meaning character in Javascript they must be replaced with the html entity equivalent of '

 

At line 198 of CoolMenu.php change the lines:

	// remove blanks
	$categories[$i]['text'] = substr($categories[$i]['text'], 12*$blank_length);

to:

	// substitute apostrophes with the ' entity
	$category_text = str_replace("'", "'", $categories[$i]['text']);
	// remove blanks
	$categories[$i]['text'] = substr($category_text, 12*$blank_length);

 

I will also add this in a text to the CoolMenus contribution files.

 

J.R. Heisey

http://www.druesfinejewelry.com


J.R. Heisey

Share this post


Link to post
Share on other sites

You need to do a little extra checking. However I'm pretty sure that one or more of you category names contains letters that need special attention. See my previous post on apostrophes.

 

- Use IE and try to view you osCommerce site.

- Note down the line number and Char number of the error.

- Close the error window that you described.

- In IE select the menu item View / Source. Notepad will open and you will see the resulting html that the osCommerce PHP code generates.

- Select View / Status bar to see the line number where the cursor is located at the bottom of Notepad.

- Scroll down until you are on the line number causing the error.

- You should see the line starte with oCMenu.makeMenu(

- The third single quoted parameter after oCMenu.makeMenu( is your category name with the offending character.

- The Char number you jotted down is the position from the left on that line where the offending character is located.

- If you have an apostrophe in you category name see my previous post for the solution.

- Other characters may cause such an error in Javascript. If you cannot identify the character post offending line to this forum.

 

JR

 

Hi! i've followed the steps and install this contribution, but i couldn't see my catagories listing out, but a page error :

Line: 159

Char: 40

Error: Expected ')'

Code: 0

 

and the URL is to my index?

I wonder if anyone know what's wrong?

Thanks.


J.R. Heisey

Share this post


Link to post
Share on other sites
You need to do a little extra checking. However I'm pretty sure that one or more of you category names contains letters that need special attention. See my previous post on apostrophes.

 

- Use IE and try to view you osCommerce site.

- Note down the line number and Char number of the error.

- Close the error window that you described.

- In IE select the menu item View / Source. Notepad will open and you will see the resulting html that the osCommerce PHP code generates.

- Select View / Status bar to see the line number where the cursor is located at the bottom of Notepad.

- Scroll down until you are on the line number causing the error.

- You should see the line starte with oCMenu.makeMenu(

- The third single quoted parameter after oCMenu.makeMenu( is your category name with the offending character.

- The Char number you jotted down is the position from the left on that line where the offending character is located.

- If you have an apostrophe in you category name see my previous post for the solution.

- Other characters may cause such an error in Javascript. If you cannot identify the character post offending line to this forum.

 

JR

 

 

 

 

THANK YOU SO MUCH!!! :thumbsup:

Share this post


Link to post
Share on other sites

Hello. I have similar problem like the others but I didn't find the answer how to repair. My menu is hiding in his back the original content of oscommerce. please check: http://teratech.ru . Please tell me how to repair. I did everything in the instructions well, also I made every improvement written in the forum. problem.GIF

Share this post


Link to post
Share on other sites

hi, see picture, why is it doing this and how can i fix please? :'(

 

i have latest oscommerce installed and i overwrote the box file with the included file and did all edits on all catalogue files

 

thank you menuontop.gif

Share this post


Link to post
Share on other sites

If your looking at the spacing thing. It's a setting in the CSS you uploaded. Post the CSS edit here and I'll take a look at making it smaller or not aligning to the top.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×