Jump to content
Sign in to follow this  
nate_02631

"Dynamenu" for osCommerce

Recommended Posts

The menu at your webshop, http://www.pinotage-weinhandel.de/shop/ appears to be working normally and please do not email m website with personal support requests. Thank you.

 

Sorry, that i have the personal support. :(

 

The menu working not normally. Let me explain.

 

The navigation have four menu with icons, than have the nenu many submenus and so on.

 

If i click the icon at the first menu then open the submenu.

If i click the description "Weinsorten" then dont open the submenu.

 

Someplace do the tag

<a href="site.thm">Menu</a> Menu

in so?s place

<a href="site.htm"><img src="button1.jpg" alt="Menu"></a>

 

But I have it not found the place in your file "dm_categories.php"

 

Best regards

 

J?rgen

Share this post


Link to post
Share on other sites
Hi Nate and thanks for the reply - For and example of the issue please point IE at http://www.football1st.com/index.php an use the mouse to expand the Prostar Soccer range - That will no doubt be quicker then me attempting to explian :)

(?) Seems to works as expected on Firefox...

 

I really hope this isn't too dumb of a question but in the dm_categories.php, you set the sub menu to an absolute position which tends not to play well in differing screen resolutions. If I set it to look good in a high resolution, it overlaps in a low resolution. Is there anyway to use another type of positioning that you know of that would anchor it no matter what resolution is being used?

 

Oh, btw, JUST the contrib I was looking for...excellent work!

Thanks for the compliment. I'm not too familiar with the underlying CSS magic, but have not seen any issues with respect to fixed or variable width layout. Fairly certain absolute is appropriate in this context...

 

That was added on the install so isn't the issue.

That's nice. But I still don't know what you mean by "sits under" nor have you provided an example link, so I'm afraid I can't help you.

 

The menu working not normally. Let me explain.

 

The navigation have four menu with icons, than have the nenu many submenus and so on.

 

If i click the icon at the first menu then open the submenu.

If i click the description "Weinsorten" then dont open the submenu.

 

Someplace do the tag

<a href="site.thm">Menu</a> Menu

in so?s place

<a href="site.htm"><img src="button1.jpg" alt="Menu"></a>

 

But I have it not found the place in your file "dm_categories.php"

Yes, there does seem to be a slight glitch with respect to the *first* category and tree menus. I'm not sure if it's a cookie think or what. The normal behaviour is that clicking the icon opens the tree menu, and clicking the text goes to the category. Although, when going to the category, the sub-tree *should* open up - which it does not do for the first category for some reason.

 

I did make a similar change in DM for Postnuke as you describe so that clicking the text would open a subtree (if it exists). The downside is that clicking the text would no longer go that category (it's one or the other).

 

Download the DM for Postnuke from my site (search for it) and checkout the /includes/blocks/dynamenu/lib/treemenu.inc.php file... Look for "dm_tree_titleclick" to see the changes applied... Because that file had other changes, I can't accurately say the changes here, but it's just a couple lines in a couple places...


** Please do not PM with personal support requests (even if offering "payment"). Thank you.

Share this post


Link to post
Share on other sites

 

Hi Nate and thanks for the reply - For and example of the issue please point IE at http://www.football1st.com/index.php an use the mouse to expand the Prostar Soccer range - That will no doubt be quicker then me attempting to explian smile.gif

 

(?) Seems to works as expected on Firefox...

 

That was added on the install so isn't the issue.

 

That's nice. But I still don't know what you mean by "sits under" nor have you provided an example link, so I'm afraid I can't help you.

 

Sorry mate but I thought I had stressed that the problem was with IE and not FF - Does this image help make clearer what I mean by "sits under"?

 

desk1.jpg

Share this post


Link to post
Share on other sites

Firstly, great contrib, mucho appreciated.

 

Im sorry if someone has asked this before, and ive not seen it, or if ive just totally missed a config setting for this.

 

On the Vertical Fly out menu (type 1), it currently displays - Titlewhatever (howmanyitemsincatagory)

 

I was wondering if it was possible to remove the (howmanyitemsincatagory) ???

 

Ive looked through, but been unable to find where I can remove this, help is much appreciated, thanks

Share this post


Link to post
Share on other sites
Firstly, great contrib, mucho appreciated.

 

Im sorry if someone has asked this before, and ive not seen it, or if ive just totally missed a config setting for this.

 

On the Vertical Fly out menu (type 1), it currently displays - Titlewhatever (howmanyitemsincatagory)

 

I was wondering if it was possible to remove the (howmanyitemsincatagory) ???

 

Ive looked through, but been unable to find where I can remove this, help is much appreciated, thanks

 

That's an osCommerce feature. You can change it from the control panel.

Share this post


Link to post
Share on other sites

How can I get the menu to line break (<br>) over two lines?

 

I'm using the horizontal menu and would like to have about 6 links on the first line and 6 links on the second line.

 

I've added the text links with this code (".|Home|index.php|Home|||\n") which works perfect. I tried to add a variable to the string where I wanted the break with the addition of a pipe-deliminated field, but had no luck getting it to work.

 

This is kind of what I'm looking for (".|Home|index.php|Home||||<br>\n")

 

Any help would be appreciated

 

Mike

Share this post


Link to post
Share on other sites

How can I get the menu to line break (<br>) over two lines?

 

I'm using the horizontal menu and would like to have about 6 links on the first line and 6 links on the second line.

 

I've added the text links with this code (".|Home|index.php|Home|||\n") which works perfect. I tried to add a variable to the string where I wanted the break with the addition of a pipe-deliminated field, but had no luck getting it to work.

 

This is kind of what I'm looking for (".|Home|index.php|Home||||<br>\n")

 

Any help would be appreciated

 

Mike

Share this post


Link to post
Share on other sites
That's an osCommerce feature. You can change it from the control panel.

 

 

Sorry for another stupid question then, but I can't find it anyway, could you please enlighten me?

Share this post


Link to post
Share on other sites

Anyone know where the option to remove the amount of items being in a category being displayed on the menu in brackets??

 

Someone said it was in the osC control panel, but I can't seem to find it???

Share this post


Link to post
Share on other sites
Anyone know where the option to remove the amount of items being in a category being displayed on the menu in brackets??

 

Someone said it was in the osC control panel, but I can't seem to find it???

 

Configuration > My Store > Show Category Counts > FALSE

Share this post


Link to post
Share on other sites
Sorry mate but I thought I had stressed that the problem was with IE and not FF - Does this image help make clearer what I mean by "sits under"?

desk1.jpg

Hi, yes this is an issue with Internet Explorer (not the DM) and is not a z-index issue. A simple workaorund would be to move and html with form elements aways from where the menus might drop, or they have a workaorund at the PHP layers menu site... http://phplayersmenu.sourceforge.net/example-see-through.php

 

You might have to download the package to see the code better: http://phplayersmenu.sourceforge.net/

 

 

How can I get the menu to line break (<br>) over two lines?

 

I'm using the horizontal menu and would like to have about 6 links on the first line and 6 links on the second line.

I don't think this is possible as it messes with the alignment of submenus...


** Please do not PM with personal support requests (even if offering "payment"). Thank you.

Share this post


Link to post
Share on other sites

Hi Nate,

 

Great contribution, thanks.

 

I've been working on trying to add Expand All / Contract All links above the menu to expand/contract the entire menu and don't seem to be able to get it to work.

 

Any ideas on how I would go about it?

Share this post


Link to post
Share on other sites

How do you this to work with STS4.2? I have tried and I can't get it right. Any tips will be appreciated.


"There is no doubt about precisely when folks began racing each other in automobiles. It was the day they built the second automobile." - Richard Petty

Share this post


Link to post
Share on other sites

Hi Nate,

 

What a superb contribution!! I'm using the vertical flyout version which is all working as it should, but I have one thing I would like to change - at the moment, the "root" level shows all the main categories but I want to change the root level to one step back, ie "Catalog" in the breadcrumb trail.

 

In other words, I want the top level to be "Catalog", which then shows all the categories when I mouse over it.

 

I think this question was asked a few months back and the solution you gave was to add another category and put all the existing categories into this, but changing the db structure like this is going to cause integration problems with other things on my site, plus it'll add yet another redundant level in the breadcrumb trail so I'd rather avoid that route if possible.

Share this post


Link to post
Share on other sites

Stellar! Exactly what I needed while working on my home page re-design.

 

Am teaching myself PHP and whatever else I need on the fly (often on the crawl), so a lot of things that are obvious to advanced users I'm having to figure out for myself as the hours go by, and I thought I'd share some notes just to help whoever comes here after me.

 

After getting the categories menu to work from inside the main body - that part was very easy - then checking through some formatting issues (still not solved, but I now know where to look), my next goal was to get a links menu in a similar style for a different position on the page.

 

People like me may encounter a few problems that some of the clues arleady give on this thread do not make fully clear.

 

All you need to do to get a functioning 2nd menu is

1) come up with an identifier - I called my 2nd menu linksmenu so I'll use it in the following

2) globally replace "catmenu" with "linksmenu"

3) select style "switch" (e.g., vertical vs. horizontal vs. tree etc.)

4) create the new MenuStructure...

 

Here's where a beginner has to figure something out - that is, what's the proper syntax for making multiple menu-items. Nate gave one example using ".|Home|index.php|Home|||\n" - a link to the home page (as index.php). But he didn't tell us how to do multiple items (no doubt the syntax is second nature for him and anyone else who, unlike me, knows what he's doing and isn't just code-hacking).

 

To do two items, a full working example of a line can look like this:

$mid->setMenuStructureString(".|Home|index.php|Home|||\n" . ".|Condition Grading|condition_grading.php|Condition Grading|||\n");

There are alternative ways, of course, of writing it, and also of calling the string from another file. This is just a VERY simple version that you can try. If experienced code-writers have a more elegant solution they'd like to propose, please feel free to do so! I'll be looking more deeply into the PHP Layers Menu materials I just downloaded this afternoon.

 

5) Get rid of stuff in the file that pertains only to the more complicated, database-querying version in the original categories contribution. This serves two purposes: It makes for a cleaner, more compact file, but, more important, it prevents a fatal error from occurring (re-declaring of already-declared functions). (Interestingly, even with this fatal error, the menu will still work - it'll just leave an ugly message on your page - so it's really more of a "majorly disfiguring error.") It's elementary, but I'll say it for the sake of completeness: Unless you're planning on having a second categories menu (in which case apparently you'll need some other more advanced workaround), you can and should delete everything that concerns categories, starting after line 218 that begins with "if" and ends with a closing curly bracket ("}") at the extreme left, while keeping the "?>" at the end of course.

 

There's much more that can be deleted, especially if youv'e decided there's a particular version of the menu you're going to stick with, though naturally you have to be careful.

 

6) Save the file under a new name - I'm using dm_links.php - and leave it in the boxes folder, even if you're not planning to use it as a box. You could and someday probably should put it somewhere else, but this way you don't have to worry about other relative file relationships or ,making other changes.

 

7) Link to the menu as you did to the previous menu, though under the new filename of course.

 

Naturally, when you fiddle with the CSS, it will change the appearance of both menus - which is OK for me for now, since I'm happy to have them match. Maybe at some later point, I'll define unique styles for each menu.

 

Anyway that's all that you HAVE to do to get up and walking. You can move on to running later.

 

When I've advanced my work a little further, I'll try to come back with a link to my store page.

 

Thanks, Nate!

Share this post


Link to post
Share on other sites

New pitfall for adding second menu to same page. Though I was going to wait until I had done more with my re-design (it's still in very rough draft form), I'll give you a peek at a screenshot, so you can see what I'm dealing with:

 

malfunction_menu.jpg

 

In words: The submenu flyouts on my second vertical menu (at lower right) don't fly out next to the new menu, but rather in an odd intermediate position (in the upper right area near the current genres/titles etc. drop down boxes). Here's a fly-out working:

 

ok_menu.jpg

 

When I place all links in the new menu below the lowest level of the categories menu (original dm_categories.php menu, at upper left starting with "large movie posters"), the flyouts take place where they're supposed to. In other words, if the first flyout on the links menu is fourth from the top or lower (.e., at least 1 level lower than the lowest category), then it works fine.

 

So, looks like an unwanted interaction with the original menu, possibly related to the simplism of the approach I outlined above.

 

Anyone feel like solving the problem for me?

Edited by kymar

Share this post


Link to post
Share on other sites

I also cannot seem to get this working with STS 4.1. :(

 

If I put the direct PHP code into the HTML template the page looks quite messed up. Displaying the Category Box as 3/4 of my screen wide (seems to be exactly the same size as the left and center colums).

 

The fly-out is also broken and only works after select a category. Once the page reloads, the fly-out works for only that menu.

 

If I edit the sts_column_left.php to:

include(DIR_WS_BOXES . 'dm_categories.php');
$sts->restart_capture ('test', 'box');

 

and put the $test# in my STS template (while keeping the echo statement in the template) it fixes the width issue, but the fly-outs still fail to function. When I mouse-over a menu item that should have a sub-category, I also get a JavaScript Error: line 129 char 1. Object not found.

 

 

I have gotten it working without STS, but I'd like to get it working with it. Has anyone else had any success?

Share this post


Link to post
Share on other sites

Still no luck getting two vertical menus on the same page to function together correctly. The top levels work alright, but the submenus either fail to fly out or fly out in the wrong places.

 

I'm going to go back to the PHP Layers material to see if I can cobble together something that works. One possibility might be to embed the full code for both menus on whatever page or column, rather than relying on a php include, since Javascript does sometimes seem to function differently in such instances on some browsers, and since the two separate menus employ redundant code that may also be implicated.

 

Other alternatives might include junking one or both menus in favor of another solution entirely.

 

Again, if anyone's had any luck combining a vertical categories dynamenu with another vertical dynamenu I'd be very interested, as right now this is the major obstacle in the way of opening my store with my desired design.

Share this post


Link to post
Share on other sites

Tree Menu, First category

 

Hi,

 

I know this has been taken up before, but is there any solution to the problem with the first product category not expanding itself when clicking on the category link. I am using the tree menu and this i by far the best menu contribution I have tried but that bug makes it impossible to use.

 

I have tried adding a product category without any sublevels at the top, but this does not help. It seems like the bug is related to the first product category that contains sub-categories. I have tried debugging but apperantly my php skills are not good enough.

 

Would be very happy if anyone can help.

Share this post


Link to post
Share on other sites

hey all

 

if u go to my site, livingthekidlife.com, ull see the my horizontal drop down doesnt stretch across the entire browser.. is there a a way to make it fit all the way across in a way that if i add more categories or take away, the menu will adjust accordingly?

 

namon :thumbsup:

Share this post


Link to post
Share on other sites

I finally found a solution the problem of subcategories not showing when using STS templates with dynamenu

 

The following line does not work when placed in the footer.php but needs to go into application_bottom.php before the last ?>

 

// Output the footer for Dynamenu for osCommerce

echo $GLOBALS['dmfooter'];

 

Hope this helps a few of you.

Share this post


Link to post
Share on other sites

Has anybody managed to get DynaMenu working with the Multi-Stores multiple shop system contribution? Problem is that the images are only in the master store and categories can be selected for the different stores. Dynamenu shows all categories in the Master-store and has not the right path (I believe) in Sub-stores.

 

Michael

Share this post


Link to post
Share on other sites

To be a bid more speciffic about my above posting.

 

I get an error in the categories box saying "LayersMenu Error: setImgdir: ./images/ is not a directory.

Halted."

 

The Master-Store is working. So I copied the path from this dm-categories.php. Now the error is

 

"LayersMenu Error: setImgdir: ./www/htdocs/v117801/otm/central/images/ is not a directory.

Halted." (v117801 is my username with the ISP).

 

Is there a different path setting in another file?

 

Michael

Share this post


Link to post
Share on other sites
To be a bid more speciffic about my above posting.

 

I get an error in the categories box saying "LayersMenu Error: setImgdir: ./images/ is not a directory.

Halted."

 

The Master-Store is working. So I copied the path from this dm-categories.php. Now the error is

 

"LayersMenu Error: setImgdir: ./www/htdocs/v117801/otm/central/images/ is not a directory.

Halted." (v117801 is my username with the ISP).

 

Is there a different path setting in another file?

 

Michael

There's a setImgdir function/method in the layersmenu-common.inc file.

 

One thing I find useful when trying to track down error messages and file relationships is to do a search for the critical string among possible files. That's how I found this one.

 

Still haven't solved the 2 vertical dyna-menus on same page flyout problem, by the way. May make another assault on it soon. Best I've been able to achieve is to get the categories submenus to fly out correctly, and have the second menu only with top levels.

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  

×