Jump to content
Sign in to follow this  
nate_02631

"Dynamenu" for osCommerce

Recommended Posts

Argh! I'm royally confused... I've tried installing this Contribution but it just doesn't seem to work correctly with my STS install.

 

I've tried installing it 2 different ways.

 

1) Following the basic installation instructions that came with the Contribution...

2) Made modificiations based on Bill Kellum's suggestions...

 

You can see the site at : www.msfabulous.net/catalog

 

Right now I have STS installed and am using only 1 template page (default.php) to modify the look and feel of the main site. No infoboxes or other templates. Keeping it simple...

 

In my template file (default.php) I'm calling the menu like this:

<!--DYNAMENU-->
<?php include(DIR_WS_BOXES . 'dm_categories.php'); ?>

 

 

I've also added the echo to my application_bottom.php as well:

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

 

 

On the homepage, the flyouts don't work. If I click on the "tops" category and/or sub-categories, the flyouts work fine. If I click on the "dressess" category the flyouts don't work again. When I look at the source for the index or "dresses" category I can see that there are parts missing from the footer:

 

<!-- beginning of menu footer - PHP Layers Menu 3.2.0-rc © 2001-2004 Marco Pratesi - [url="http://www.marcopratesi.it/"]http://www.marcopratesi.it/[/url] -->



<script language="JavaScript" type="text/javascript">
<!--
loaded = 1;
// -->
</script>

<!-- end of menu footer - PHP Layers Menu 3.2.0-rc © 2001-2004 Marco Pratesi - [url="http://www.marcopratesi.it/"]http://www.marcopratesi.it/[/url] -->

 

 

Compare this to what shows up in the "tops" category footer:

 

<!-- beginning of menu footer - PHP Layers Menu 3.2.0-rc © 2001-2004 Marco Pratesi - [url="http://www.marcopratesi.it/"]http://www.marcopratesi.it/[/url] -->



<div id="L1" class="horizsubmenu" onmouseover="clearLMTO();" onmouseout="setLMTO();">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap="nowrap">
<div class="horizsubframe">

<div id="refL2" class="horizsubitem ">
<a href="http://www.msfabulous.net/catalog/index.php?cPath=22_30" onmouseover="LMPopUp('L1', true);"><img
align="top" src="images/transparent.png" width="1" height="16" border="0"
alt="" />Tanks & Camis (8)      </a>
</div>
<div id="refL3" class="horizsubitem ">
<a href="http://www.msfabulous.net/catalog/index.php?cPath=22_31" onmouseover="LMPopUp('L1', true);"><img
align="top" src="images/transparent.png" width="1" height="16" border="0"
alt="" />Long Sleeve (6)      </a>
</div>
<div id="refL4" class="horizsubitem ">
<a href="http://www.msfabulous.net/catalog/index.php?cPath=22_32" onmouseover="LMPopUp('L1', true);"><img
align="top" src="images/transparent.png" width="1" height="16" border="0"
alt="" />Short Sleeve (6)      </a>
</div>
<div id="refL5" class="horizsubitem ">
<a href="http://www.msfabulous.net/catalog/index.php?cPath=22_33" onmouseover="LMPopUp('L1', true);"><img
align="top" src="images/transparent.png" width="1" height="16" border="0"
alt="" />Jackets (2)      </a>
</div>

</div>
</td>
</tr>
</table>
</div>

<script language="JavaScript" type="text/javascript">
<!--
loaded = 1;
// -->
</script>

<!-- end of menu footer - PHP Layers Menu 3.2.0-rc © 2001-2004 Marco Pratesi - [url="http://www.marcopratesi.it/"]http://www.marcopratesi.it/[/url] -->

 

 

I don't know what I'm doing wrong. Any help would be appreciated...

Share this post


Link to post
Share on other sites

Wow it works :thumbsup:

 

But I have some questions:

 

Here is a print screen of my categories so you understand better:

 

Categories

 

1. as you can see there is a border around categories.How can i remove it?

2. what do I have to edit to remove the text decoration (the gray backgroud -> Computers & Software, PC Desktops). PS: didn't fount in the CSS stuff

3. and more complicate question (I think).Now when I click the root categories (Electronics and Computers & Software) it acts normal (loads the whatever page), can it be done so when the root categorie are clicked it will expand and don't load any page (example: Left side categories) ?

 

 

and here is the css:

 

/*---------------------------*/
/* Tree and Plain Menu Style */
/*---------------------------*/

.treemenudiv	{     /* Behaviour of tree/plain menu item - leave as is for proper performance */
display: block;
white-space: nowrap;
}


.phplmbodytable { /* Class of table cells containing plain menus */

}



.phplmnormal {     /* Font size & color of unlinked menu items */
color: #737373;
font-size: 11px;	
text-decoration: none;	
}


a.phplm:link, a.phplm:visited	{      /* Font color, style of linked & visited menu items */
color: #737373;
font-size: 11px;	
text-decoration: none;	
}


a.phplm:hover	{      /* Font color, style of menu items when hovered over */
color: #737373;
background-color: none;
font-size: 11px;	
text-decoration: underline;	
}

a.phplm:active	{      /* Font size & color of menu items when clicked */
color: #000000;
font-size: 11px;	
text-decoration: underline;	
}

.dmselected {   /* Style overide for selected category tree */
   background-color: none;

}

 

 

Thanks

Edited by z0rr0

Cumparaturi4all

Share this post


Link to post
Share on other sites
In my template file (default.php) I'm calling the menu like this:

 

I don't know what I'm doing wrong. Any help would be appreciated...

 

What do you mean by (default.php)? Niether osCommerce, STS or Dynamenu has such a file. The default.php did reside in an older version of osC but that has long been done away with.

What version of osCommerce do you have?

What version of STS do you have?

 

You will need osC MS2 and the latest version of STS (4.5.2) to make it work with Dynamenu. STSv4.4 - 4.5.1 had issues with Dynamenu.


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites
but the problem is that the flyout wont happen, i see the arrow, when i click on it, it works, but thats it, any help would be great.

Erm... O.K. So what's the problem? A link to the site always helpful :)

 

 

On the homepage, the flyouts don't work. If I click on the "tops" category and/or sub-categories, the flyouts work fine. If I click on the "dressess" category the flyouts don't work again.

Maybe you have $show_full_tree config option set to false?

 

 

1. as you can see there is a border around categories.How can i remove it?

2. what do I have to edit to remove the text decoration (the gray backgroud -> Computers & Software, PC Desktops). PS: didn't fount in the CSS stuff

3. and more complicate question (I think).Now when I click the root categories (Electronics and Computers & Software) it acts normal (loads the whatever page), can it be done so when the root categorie are clicked it will expand and don't load any page

1 & 2 are in CSS, not sure about 3 - maybe you want $GLOBALS['dm_tree_titleclick'] = true; in config...


** 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 guys, I'm trying to find out something, but I'm not too sure where to ask, so I'll ask here as it is a menu question.

 

 

Is it possible to show an expanded category view showing only one top level category expanded on the homepage alone? The other pages would work like normal. On another Category note, do you think it is possible to show only a selected category and it's child menus on that said category page?

 

JAI

Share this post


Link to post
Share on other sites

I am having problems with the Flyout part of the menu......menu.gif shows the problem

 

 

 

the manufacturers box overlaps part of the drop down menu....

 

 

any idea on how to fix this????

Share this post


Link to post
Share on other sites
I am having problems with the Flyout part of the menu......menu.gif shows the problem

the manufacturers box overlaps part of the drop down menu....

any idea on how to fix this????

 

Sorry the link did not work... it is menu.GIF

 

Thanks

 

Mark

Share this post


Link to post
Share on other sites

@dejaiman - If I understand you correctly, I believe there is an option for that it DM (at least the second thing you said)

 

@carpenoctem - that is an MSIE bug... See the PHP Layers Menu site for a workaround, or move the box out of the way ;)


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

Share this post


Link to post
Share on other sites

If you can guide me a bit to where i can find it, i would greatly appreciate it.......

One another note, I have DM installed and displaying a horizontal menu, i need this new display on the left column. Is there a way to have two menus displaying at one time using DM?

 

JAI

Share this post


Link to post
Share on other sites

Nate,

 

I dont understand what you mean..... the issue is actually with internet explorer???? How do I fix it? Where do I go to find out more about it??

 

Thanks

 

Mark

Share this post


Link to post
Share on other sites

@dejaiman - See the config option in the main dm_categories file... It may or may not be exactly what you need (the render full tree option?)

 

@carpenoctem - sounds like you do understand... I had said above where to find more, you'll have to look around though...


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

Share this post


Link to post
Share on other sites
Nate,

 

I dont understand what you mean..... the issue is actually with internet explorer???? How do I fix it? Where do I go to find out more about it??

 

Thanks

 

Mark

Mark, what Nate meant was that some browsers (IE) respond differently to CSS and other web technologies. The site I beleive he was referring to was the following site:

 

http://phplayersmenu.sourceforge.net/

 

Go there to find a solution (work around) to the IE issue.

 

Hope this helped,


Bill Kellum

 

Sounds Good Productions

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

Share this post


Link to post
Share on other sites

I am wanting to use dynamenu / phplayermenu outside of the catagory directory from where it is normally called. i have the instructions for phplayermenu.pdf but am a little confused about relative and absolute paths for $myrootdir and $mywwwdir and i am using windows development platform instead of linux for which the instructions are written.

 

can you help... with a translation to windows paths.

 

looking for: absolute - i.e i think form c: or from htdocs (apache server).

i dont want to use relative because i now know it screws things up if dynamenu is used else where. and am looking to put the new variables in configure.php so they cant be seen.

 

fingerscrossed.

 

matt

Share this post


Link to post
Share on other sites

Hey there.

 

first of all :thumbsup: for this wonderful contrib. you can see it live on www.gemstobuy.com

 

I am trying to optimize my website ranking, and thus i have an issue with this contrib,

as it contains hundreds of html links (the nodes of the tree) however invisible to the eye,

a lot of crawlers consider this as major spamming... hence my problem.

 

is there an easy way of turning this wonderful contrib into a total javascript solution? (without HTML links embeded)

 

thanks

Share this post


Link to post
Share on other sites

to make it clear:

 

i am looking for a way to make the final nodes go to the right category/subcategory without HTML code (but with javascript instead)

then the crawlers will not think i am spamming them

 

the other solution is to render only the selected node at each press of a button, but this involves server traffic with each press, and is not user friendly in temrs of reation times usually. so I would rather NOT use this solution...:-)

Share this post


Link to post
Share on other sites
i am looking for a way to make the final nodes go to the right category/subcategory without HTML code (but with javascript instead)

then the crawlers will not think i am spamming them

This is not such an issue that you think it is... Any credible web crawler has no problem with these types of menus... And the nodes are hidden by Javascript which is also something they don't pick up, nor care about. Dynamic style menus are quite common and the search engines know that and don't penalize folks for using them...


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

Share this post


Link to post
Share on other sites
I am wanting to use dynamenu / phplayermenu outside of the catagory directory from where it is normally called. i have the instructions for phplayermenu.pdf but am a little confused about relative and absolute paths for $myrootdir and $mywwwdir and i am using windows development platform instead of linux for which the instructions are written.

 

Hi all again,

 

question for nate: do you perhaps know if dynamenu uses the cofigure.php variable named:

define('DIR_WS_HTTP_CATALOG', '/catalog/' ); because dynamenu flyout only works on a page external to the catalog when this variable is changed to define('DIR_WS_HTTP_CATALOG', '/catalog' ); (missing the forward slash). no matter what i set setdirroot() to or any other config variables, and i have tried many different permutations, this is the only thing that allows flyout to work external to osc.

 

the external file is essentially a copy of catalog/index.php with adaptions made to configure.php (if - else conditional testing which directory the file resides and adapting the defined variables to suit). therefore all the includes and requires /only etc get their info from the osc catalog folder and so on.

 

I hope this to be part of a bundled pack contribution with dynamenu working.

bundel = register globals, sts, htc, dynamenu, newpages, and my contrib 'sts templates shared with external pages.

 

many thanks

matt

Share this post


Link to post
Share on other sites
This is not such an issue that you think it is... Any credible web crawler has no problem with these types of menus... And the nodes are hidden by Javascript which is also something they don't pick up, nor care about. Dynamic style menus are quite common and the search engines know that and don't penalize folks for using them...

 

thanks for the response Nate,

I got this as a direct request from Hypersubmit (Bpath.com) which submits my site to get better ranking...

they specifically mentioned that quite a lot of search engines do penalize these kind of menus and regard it as spam...

hence my dilema

 

by the way....

 

if you look at the html source in the menu frame, you do see the hundred of links to index.php?cpath=.... (in my case hundreds) so I can understand their comment about spamming probability. check my site out www.gemstobuy.com and look on the source for the frame containing the browse menu (which is dynamenu...)

Edited by guyrab

Share this post


Link to post
Share on other sites
thanks for the response Nate,

I got this as a direct request from Hypersubmit (Bpath.com) which submits my site to get better ranking...

they specifically mentioned that quite a lot of search engines do penalize these kind of menus and regard it as spam...

hence my dilema

 

by the way....

 

if you look at the html source in the menu frame, you do see the hundred of links to index.php?cpath=.... (in my case hundreds) so I can understand their comment about spamming probability. check my site out www.gemstobuy.com and look on the source for the frame containing the browse menu (which is dynamenu...)

 

 

here's what I've done in the mean time to shave off half of the end-nodes...

I noticed that when you have an end-node in the category tree, there are two links pointing to the same URL (one for the icon and one for the category name). So I commented out the link part for the icon, saving at least half of the end-nodes I believe (also contributing to a faster initial load).

 

I also believe this is better UI wise, since the arrows are opening/closing nodes in the tree this way and do not have another function (showing up what is inside the category). this is confusing ui wise to have alternating functions to the same button (yes I am a bit of a UI expert...)

 

it's in treemenu.inc.php line 261:

if ($this->tree[$cnt]['parsed_icon'] != '') {

$this->_treeMenu[$menu_name] .= /*$a_href_open_img . */'<img align="top" border="0" src="' . $this->tree[$cnt]['parsed_icon'] . '" width="' . $this->tree[$cnt]['iconwidth'] . '" height="' . $this->tree[$cnt]['iconheight'] . '" alt="' . $alt_leaf . '" />'/* . $a_href_close_img*/;

} else {

$this->_treeMenu[$menu_name] .= /*$a_href_open_img . */'<img align="top" border="0" class="imgs" src="' . $img_leaf . '" alt="' . $alt_leaf . '" />' /*. $a_href_close_img*/;

 

 

so just commented the a_href_open/close bits and viola...

 

of course I can also go to the more extreme solution of rendering per click and not rendering the entire tree at the beginning,.... but this less to my likings (and to my server overload likings....;-))

 

any more ideas on the subject maybe?

Share this post


Link to post
Share on other sites
Hi all again,

 

question for nate: do you perhaps know if dynamenu uses the cofigure.php variable named:

define('DIR_WS_HTTP_CATALOG', '/catalog/' ); because dynamenu flyout only works on a page external to the catalog when this variable is changed to define('DIR_WS_HTTP_CATALOG', '/catalog' ); (missing the forward slash). no matter what i set setdirroot() to or any other config variables, and i have tried many different permutations, this is the only thing that allows flyout to work external to osc.

 

the external file is essentially a copy of catalog/index.php with adaptions made to configure.php (if - else conditional testing which directory the file resides and adapting the defined variables to suit). therefore all the includes and requires /only etc get their info from the osc catalog folder and so on.

 

I hope this to be part of a bundled pack contribution with dynamenu working.

bundel = register globals, sts, htc, dynamenu, newpages, and my contrib 'sts templates shared with external pages.

 

many thanks

matt

 

All sorted now! just some wary chars here-n-there

 

ive packed it up at:

 

http://www.oscommerce.com/community/contributions,5245

 

if your interested.

matt

Share this post


Link to post
Share on other sites

Hi Guys. Great contrib, but then I guess you already knew that!

 

Something that has been mentioned by others a couple of times but doesn't seem to have been answered. We are using the tree menu. The nodes work fine but if you click on the top category, and the top subcategory within it, the menu doesn't expand whereas it does on the other options.

 

Does anyone have an answer to this?

 

Much appreciated

Share this post


Link to post
Share on other sites
Nate,

 

I dont understand what you mean..... the issue is actually with internet explorer???? How do I fix it? Where do I go to find out more about it??

 

Thanks

 

Mark

 

you must use zIndex :rolleyes:

Share this post


Link to post
Share on other sites
The nodes work fine but if you click on the top category, and the top subcategory within it, the menu doesn't expand whereas it does on the other options.

I think this is something of a "known issue" (geek euphemism for "bug"). It seems to manifest itself on some setups but not others. Don't know if a solution has been found for that menu type (tree)

you must use zIndex :rolleyes:

Hi - no this is actually *not* a z-index issue (the issue with form elements appearing "in front" of the menu). However there is a workaround if you poke around on the PHP Layers Menu site... though I found the easiest/best solution is to just move the form element(s) :)


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

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  

×