Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Dynamenu" for osCommerce


Recommended Posts

Quick question for you guys - have any of you found a fix for the way the menu loads in IE 6 ? When it first loads it seems to have the text for the menu moved up and left of where the menu actually is. When you place your mouse on or near where the menu actually is the text then corrects itself and goes where it is supposed to be.

 

Every time you go to a new page - the text always starts out above and to the left of where it should be??

 

I have only tested in FireFox 1.5 and IE 6 so far - but having the prob. be in IE is a fairly big issue since most visitors are using that stinkin' browser <_<

 

If any of you have any ideas, or have figured out how to correct this, I'd be very thankful! :D

 

I don't have that problem with IE6 on my site - at least I don't think I do - . Could be a function of a relatively slow connection (I'm using cable modem). I believe that IE6 sometimes stumbles over PHP/Java calls, and that you can solve it by embedding the full code for the menu wherever it's supposed to appear rather than relying on a PHP require or include or whatever you're using.

 

Maybe someone with more expertise can answer more fully. In the meantime, why don't you check my site at ckmac.com, and see if you have the same problem. If you do, I'd be interested to know. If you don't, then you might try the solution I suggest.

Link to comment
Share on other sites

Can anyone help with this problem?

 

I have been using Dynamenu for 2 months and was fine but I noticed that some sites were reporting too many OUTBOUND links (approx 500 - 600)? this puzzled me cos I don't have many outbound links on my site atall, most are internal links to other parts of oscommerce as standard, after a bit of trial and error I realised that having Dynamenu in the auto flyout mode ($show_full_tree = true;) was causing search bots to see every item on my site as an outbound link from the main page :(

I've now set the setting to 'false' but have lost the nice auto flyout menu now :(

 

Is there anyway around this problem? I liked the menu as it was and would love to have it back without the downfalls.

 

Why are bots etc seeing them as Outbound links?

 

any suggestion welcomed

 

Thanks

Edited by ShaGGy
Link to comment
Share on other sites

Can anyone help with this problem?

 

I have been using Dynamenu for 2 months and was fine but I noticed that some sites were reporting too many OUTBOUND links (approx 500 - 600)? this puzzled me cos I don't have many outbound links on my site atall, most are internal links to other parts of oscommerce as standard, after a bit of trial and error I realised that having Dynamenu in the auto flyout mode ($show_full_tree = true;) was causing search bots to see every item on my site as an outbound link from the main page :(

I've now set the setting to 'false' but have lost the nice auto flyout menu now :(

 

Is there anyway around this problem? I liked the menu as it was and would love to have it back without the downfalls.

 

Why are bots etc seeing them as Outbound links?

 

any suggestion welcomed

 

Thanks

 

 

Looked into this a bit more and it doesn`t appear to be Dynamenu causing it its my URL that seems to be causing it when I use mysite.com I get loads of outbound links but when i use www.mysite.com its fine, have setup a 301 redirect but still getting the same problem, so back to google to search for an answer. :(

 

Great contib BTW :)

Link to comment
Share on other sites

Quick question for you guys - have any of you found a fix for the way the menu loads in IE 6 ? When it first loads it seems to have the text for the menu moved up and left of where the menu actually is. When you place your mouse on or near where the menu actually is the text then corrects itself and goes where it is supposed to be.

I have noticed this behavior on some implementations, but don't know of a fix. It seems to have something to do with the layout it's contained in (esp. if using tables for layout), seem to happen if the menu itself is in a table cell...

 

Looked into this a bit more and it doesn`t appear to be Dynamenu causing it its my URL that seems to be causing it when I use mysite.com I get loads of outbound links but when i use www.mysite.com its fine, have setup a 301 redirect but still getting the same problem, so back to google to search for an answer. :(

For the record, DM uses the regular osCommcer function for building category links. I had implemented something on my site (using .htaccess, of put it in your conf file) so users visiting mysite.com (without the www.) would be automatically directed to www.mysite.com... (You need to have mod_rewrite enabled on your server)

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

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

Link to comment
Share on other sites

I have noticed this behavior on some implementations, but don't know of a fix. It seems to have something to do with the layout it's contained in (esp. if using tables for layout), seem to happen if the menu itself is in a table cell...

For the record, DM uses the regular osCommcer function for building category links. I had implemented something on my site (using .htaccess, of put it in your conf file) so users visiting mysite.com (without the www.) would be automatically directed to www.mysite.com... (You need to have mod_rewrite enabled on your server)

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

 

 

Thanks Nate,

 

Managed to get it working ok now, but have another question :) I wanted to use Search Engine Friendly URLS (SEF) contrib but it needs cache enabled in oscommerce to work but when you enable cache Dynamenu does not load up? is this something I have done wrong or will Dynamenu not function with cache enabled ?

Edited by ShaGGy
Link to comment
Share on other sites

I wanted to use Search Engine Friendly URLS (SEF) contrib but it needs cache enabled in oscommerce to work but when you enable cache Dynamenu does not load up? is this something I have done wrong or will Dynamenu not function with cache enabled ?

I think it's something wrong with your site though I can't say what. Dynamenu does not have any issues when the cache is turned on. Perhaps your cache directory is not writable? (or try clearning the cache in the admin, to see if that fixes it)

Edited by nate_02631

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

Link to comment
Share on other sites

I have noticed this behavior on some implementations, but don't know of a fix. It seems to have something to do with the layout it's contained in (esp. if using tables for layout), seem to happen if the menu itself is in a table cell...

For the record, DM uses the regular osCommcer function for building category links.

 

Out of curiosity - has anyone figured out a way to cause the infoboxes to be div's rather than tables? I've been messing with the includes/classes/boxes file in an attempt to do this but so far I've not had much luck - LOL Everything else in the site is done with div tags - only the infoboxes are tables (inside of div's) and I'd really like to remove the table formatting alltogether.

 

I am using the infobox customize contrib. so each infobox can have it's own look/feel separate from the others as well as the STS v4 contrib for easy templates. If anybody out there has figured out where to change all of the table tags over to div's I would be very greatful to know how :)

 

Back to playing with that boxes file again ;)

 

Thanks

~Tracy
 

Link to comment
Share on other sites

I don't have that problem with IE6 on my site - at least I don't think I do - . Could be a function of a relatively slow connection (I'm using cable modem). I believe that IE6 sometimes stumbles over PHP/Java calls, and that you can solve it by embedding the full code for the menu wherever it's supposed to appear rather than relying on a PHP require or include or whatever you're using.

 

Maybe someone with more expertise can answer more fully. In the meantime, why don't you check my site at ckmac.com, and see if you have the same problem. If you do, I'd be interested to know. If you don't, then you might try the solution I suggest.

 

Hi kymar,

 

I did go to your site, with IE6, and I do not experience the same problem that I do with our site. I'm going to see if I can get the table tags removed and changed to div's (as this is something I wanted to do for all of the infoboxes anyway) and see if that helps first. If I can manage to get that figured out and it still doesn't remedy the problem, then I will look at including the full code for the menu on every page - but I'd much rather leave it as an include if possible ;)

 

Thank you very much for your input :thumbsup:

~Tracy
 

Link to comment
Share on other sites

I think it's something wrong with your site though I can't say what. Dynamenu does not have any issues when the cache is turned on. Perhaps your cache directory is not writable? (or try clearning the cache in the admin, to see if that fixes it)

 

Hi Nate

 

Have tried this with a fresh test site, only contribs installed are Dynamenu & Search Engine Friendly URLS (SEF)

If cache is turned off dynamenu displays perfectly but SEF will not work then :( and if I enable cache Dynamenu disappears ;)

 

I have cleared all cache history and browser cache history

also removed SEF with same result ?

 

anyone help.

Link to comment
Share on other sites

Hi Nate

 

Have tried this with a fresh test site, only contribs installed are Dynamenu & Search Engine Friendly URLS (SEF)

If cache is turned off dynamenu displays perfectly but SEF will not work then :( and if I enable cache Dynamenu disappears ;)

 

I have cleared all cache history and browser cache history

also removed SEF with same result ?

 

anyone help.

 

 

fixed it I had the replaced the original categories include line with the (DIR_WS_BOXES . 'dm_categories.php'); which worked fine until the cache was enabled so I did some trial and error and replaced if

 

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

}

 

with

include(DIR_WS_BOXES . 'dm_categories.php');

 

and now it works, so thought i`d post my findings here in case someone else as the same problem in the future.

Link to comment
Share on other sites

Hello,

 

I`m very impressed: After some problems, Dynamenu works fine now - also with centered shops. First, I had also this problem with the footer

echo $GLOBALS['dmfooter'];

 

Everyone, who has problems, should use the original footer.php. If this works, you can try to find the problem in your footer.php. In my footer.php was a call to visitors.php some lines above.

 

My last problem is: Beside of my normal categories is unused space - I think for the arrow of the submenus. How can I reduce this (for me wasted) space?

 

REK

Link to comment
Share on other sites

My last problem is: Beside of my normal categories is unused space - I think for the arrow of the submenus. How can I reduce this (for me wasted) space?

Tough to see what you mean without an example, but widths, etc can all be adjusted in the menu style sheet or you can tweak the menu templates... (former is preferred)

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

Link to comment
Share on other sites

Hi All,

 

I am trying to use Dynamenu 1.11 with STS 4.3 but i cannot getting it to work.

Searched this thread but i still don't know where to put in:

 

include(DIR_WS_BOXES . 'dm_categories.php');

 

and:

 

// Output the footer for Dynamenu for osCommerce
echo $GLOBALS['dmfooter'];

 

I want to use Dynamenu instead of the standard categories box and maybe

also for a horizontal menu in the header.

 

Thanks for your help,

Eric

Link to comment
Share on other sites

Hi All,

 

I am trying to use Dynamenu 1.11 with STS 4.3 but i cannot getting it to work.

Searched this thread but i still don't know where to put in:

 

include(DIR_WS_BOXES . 'dm_categories.php');

 

and:

 

// Output the footer for Dynamenu for osCommerce
echo $GLOBALS['dmfooter'];

 

I want to use Dynamenu instead of the standard categories box and maybe

also for a horizontal menu in the header.

 

Thanks for your help,

Eric

Eric, try this:

 

Open the following file: includes/modules/sts_inc/sts_user_code.php

 

Add the following code to add the dynamenu categories infobox:

 

 

$sts->start_capture();
require(DIR_WS_BOXES . 'dm_categories.php');
$sts->stop_capture('dmbox', 'box');

 

:D Now you can add the box into your STS Template pages by using the $dmbox tag (or $dmbox#

 

depending on what you are using for your stop character).

 

Then open: includes/boxes/dm_categories.php

 

Find the following code:

 

 

// Initialize HTML and info_box class if displaying inside a box
if ($show_dmcats_as_box) {
echo '<tr><td>';
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);
new infoBoxHeading($info_box_contents, true, false);

Change it to this:

 

 

// Initialize HTML and info_box class if displaying inside a box
if ($show_dmcats_as_box) {
echo '<tr><td>';
$info_box_contents = array();
new infoBoxHeading($info_box_contents, true, false);

:thumbsup: The above code will remove the infoBox header. Since you are using STSv4.3 you may not need

 

this code (I haven't tested it with infobox templates in version 4.3 but I needed it in 4.2)

 

 

 

Let me know if this worked for you.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Hi All,

 

I am trying to use Dynamenu 1.11 with STS 4.3 but i cannot getting it to work.

Searched this thread but i still don't know where to put in:

// Output the footer for Dynamenu for osCommerce
echo $GLOBALS['dmfooter'];

Thanks for your help,

Eric

Use this line in your STS template:

<?php echo $GLOBALS['dmfooter']; ?>

 

The "footer" should be echoed *just before* the closing </BODY> tag.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Use this line in your STS template:

<?php echo $GLOBALS['dmfooter']; ?>

 

The "footer" should be echoed *just before* the closing </BODY> tag.

 

Hi Bill,

 

Thank you for your help ;-)

I did exactly what you wrote. Now i have the dynamenu at the right place but

it doesn't flyout to the sub-categories, it only works for the main categories.

 

Cheers,

Eric :D

Link to comment
Share on other sites

Hi Bill,

 

Thank you for your help ;-)

I did exactly what you wrote. Now i have the dynamenu at the right place but

it doesn't flyout to the sub-categories, it only works for the main categories.

 

Cheers,

Eric :D

Did you include your DM stylesheet in your stylesheet.css file?

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Hi Bill,

 

Yes i did ;-)

 

Cheers,

Eric :D :D :D

Others have found this solution to be a better one:

Instead of placing the following code in your STS template, place it into the application_bottom.php file just before the last ?>:

 

 

// Output the footer for Dynamenu for osCommerce
echo $GLOBALS['dmfooter'];

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Thanks for the great contribution.

 

I know this topic has been addressed or at least asked before and that is: How do I move the submenus from popping up on the right so that they popup on the left?

 

I went to the parent project of this contribution on sourceforge but couldn't make sense of it. There was a patch file but I honestly didn't know how to integrate this into my osc files.

 

Is there anyone out there that has gotten this working?

 

Thank you in advance for your help.

 

And thanks for reading!

Link to comment
Share on other sites

Okay, I took a closer look at the code at source forge. The patch they have is a patch file that you're supposed to run using the command line. It's a diff screen.

 

There are some references to some files I don't have. I just renamed it so that it had a file ending of .txt and then read it. So I just made the appropriate changes in the files listed in the file and then all was okay.

 

Below is a snippet of the file---

 

--- phplayersmenu-3.2.0/libjs/layersmenu.js 2004-08-16 14:03:38.000000000 +0200

+++ phplayersmenu-3.2.0.rtl/libjs/layersmenu.js 2004-09-14 09:54:07.000000000 +0200

@@ -110,7 +110,7 @@

}

} else {

//alert(onRight + ' - ' + width1 + ' - ' + windowWidth + ' - ' + windowXOffset);

- if (onRight + width1 > windowWidth + windowXOffset) {

+ if (onLeft > windowXOffset) {

back[menuName] = 1;

} else {

back[menuName] = 0;

@@ -167,7 +167,7 @@

// hence we consider a default value equal to $abscissaStep

width1 = abscissaStep;

}

- foobar = getOffsetLeft(father + menuName);

+ foobar = getOffsetLeft(father + menuName) + getOffsetWidth(father + menuName) - getOffsetWidth

 

You can see where the "-" sign is the beginning of what needs to be replaced.

 

This is bit more complicated than I am sure is necessary so if anyone has a simpler solution I'm sure others who are encountering this problem would be happy to hear it!

 

Thanks again for this contribution. It was a lifesaver.

Link to comment
Share on other sites

Tough to see what you mean without an example, but widths, etc can all be adjusted in the menu style sheet or you can tweak the menu templates... (former is preferred)

 

Hi Nate,

 

it looks like this (align="right"):

1kb2.gif

 

I`ve not found, where I can change this in the stylesheet. If there is a subcategory, the space is also too big.

 

Thank you for your help, REK

Link to comment
Share on other sites

Great contribution all round!

 

How would one deactivate a link on a specific main category?

That is, leave the specific $val showing but not have it as link ... only it's sub categories would be links.

( using horizontal if that's relevant )

 

I read post 158 and Nate's reply about changing the url (setting cpath to be different with if statement), but I'm still lost.

Where is the actual "<a href" created that I'd have to remove within an if statement.

Apologies if I'm missing something really basic in osc coding.

 

TIA

Puddle

Edited by puddle
Link to comment
Share on other sites

I`ve not found, where I can change this in the stylesheet. If there is a subcategory, the space is also too big.

The stylesheets are clearly commented as to what pertains to the boxes, etc... maybe adjust the padding, etc...? You can also adjust the templates that the menu's are built from....

I read post 158 and Nate's reply about changing the url (setting cpath to be different with if statement), but I'm still lost. Where is the actual "<a href" created that I'd have to remove within an if statement.

There is no <A HREF> specified, the tep_link function is used...

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

Link to comment
Share on other sites

There is no <A HREF> specified, the tep_link function is used...

 

Thanks Nate, but still really trying and still really battling ...

I'm trying to set one specific top level category to be non-linked ... just the title showing with the linked subcategories showing underneath upon mouseover.

 

The '<a href' seems to come from the template file 'layersmenu-horizontal_menu.ihtml' . ( or not??)

The relevant code from the template, including the <a href> would be:

 

<!-- BEGIN cell_link -->

<div id="{menu_layer_label}" class="horizitem {target}" onmouseover="clearLMTO();" onmouseout="setLMTO();">

<a href="{href}"{onmouseover}{title}><img

align="top" src="{imgwww}{transparent}" width="1" height="16" border="0"

alt="" /><!-- BEGIN cell_icon --><img

align="top" src="{iconsrc}" width="{iconwidth}" height="{iconheight}" border="0"

alt="{iconalt}" /> <!-- END cell_icon -->{text}<!-- BEGIN cell_arrow --> <img

src="{imgwww}{downsrc}" width="{downwidth}" height="{downheight}"

border="0" alt=">>" /><!-- END cell_arrow --> </a>

</div>

<!-- END cell_link -->

 

So, I'd have to switch that part of the template off, correct? ... but if so, what syntax to use and how to code it?

I tried the smarty way,:

{if ($cPath_new == 21)}

<!-- BEGIN cell_link -->

<div id="{menu_layer_label}" class="horizitem {target}" onmouseover="clearLMTO();" onmouseout="setLMTO();">

<a href="{href}"{onmouseover}{title}> etc

{/if}

 

... but that 'if' syntax doesn't work.

also, removing the ' <a href="{href} ' from the code causes havoc .... please if i may ask for more help ...

 

TIA

Edited by puddle
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...