kornfr333k Posted February 23, 2008 Share Posted February 23, 2008 hy there. i have a small problem.. i want to use dynamenu on my webstie BUT....the flyouts keep showing up on the bottom left corner. i know i have to paste // Output the footer for Dynamenu for osCommerce echo $GLOBALS['dmfooter']; in my footer.php but my footer.php looks like this: <?php /* $Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ;?> <table border="0" width="732" cellspacing="0" cellpadding="0" bgcolor="#0b1820" style="padding-bottom:3px; "> <tr> <td align="center"> <table border="0" width="716" cellspacing="0" cellpadding="0" style="margin-top:4px; "> <tr > </tr> </table> <table border="0" width="716" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText" style="color:#456B81; padding:5px 0px;"><?php echo FOOTER_TEXT_BODY; ?> </td> </tr> </table> </td> </tr> </table> </center> there is no </body> tag and i don't know how to modify it. i currently pasted it liike this: .....<table border="0" width="716" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText" style="color:#456B81; padding:5px 0px;"><?php echo FOOTER_TEXT_BODY; ?> </td> </tr> </table> </td> </tr> </table> </center> <?php echo $GLOBALS['dmfooter']; ?> and the flyouts appear under the website. here.. take a look : http://www.dkbike.ro/catalog i need help..pls...fast...:D Quote Link to comment Share on other sites More sharing options...
kornfr333k Posted February 23, 2008 Share Posted February 23, 2008 hy there. i have a small problem.. i want to use dynamenu on my webstie BUT....the flyouts keep showing up on the bottom left corner. i know i have to paste // Output the footer for Dynamenu for osCommerce echo $GLOBALS['dmfooter']; in my footer.php but my footer.php looks like this: <?php /* $Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ;?> <table border="0" width="732" cellspacing="0" cellpadding="0" bgcolor="#0b1820" style="padding-bottom:3px; "> <tr> <td align="center"> <table border="0" width="716" cellspacing="0" cellpadding="0" style="margin-top:4px; "> <tr > </tr> </table> <table border="0" width="716" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText" style="color:#456B81; padding:5px 0px;"><?php echo FOOTER_TEXT_BODY; ?> </td> </tr> </table> </td> </tr> </table> </center> there is no </body> tag and i don't know how to modify it. i currently pasted it liike this: .....<table border="0" width="716" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText" style="color:#456B81; padding:5px 0px;"><?php echo FOOTER_TEXT_BODY; ?> </td> </tr> </table> </td> </tr> </table> </center> <?php echo $GLOBALS['dmfooter']; ?> and the flyouts appear under the website. here.. take a look : http://www.dkbike.ro/catalog i need help..pls...fast...:D Quote Link to comment Share on other sites More sharing options...
dimi78 Posted February 23, 2008 Share Posted February 23, 2008 hy there. i have a small problem.. i want to use dynamenu on my webstie BUT....the flyouts keep showing up on the bottom left corner. i know i have to paste Did you paste the css code into your css file? Quote Link to comment Share on other sites More sharing options...
TracyS Posted February 25, 2008 Share Posted February 25, 2008 The first place I would try to do this is in the CSS - this pretty much handles the look/feel of the entire menu :) Ok, I have the horizontal drop down menu and love it. But, I need some help you can view the site at http://www.indianponytack.com/catalog/index.php 1. Does anyone know how to make the columns the same width? 2. Does anyone know how to make the submenu not over lap the menu? Thanks for the help ahead of time! Jen Quote ~Tracy Link to comment Share on other sites More sharing options...
Littlepeople Posted March 11, 2008 Share Posted March 11, 2008 I've got the menu working all fine as a vertical menu, however, how can I hide the empty categories??. It's easy with categories.php but I don't have any idea about with dm_categories.php. Thanks. Quote Link to comment Share on other sites More sharing options...
BoredKender Posted March 13, 2008 Share Posted March 13, 2008 i have tried searching through this thread and searching through all of the files included, and i cannot find how to limit the number of subcatagories that fly out with the dynamic flyout menu feature. i would like to streamline my site to only having a 3-layer menu, and click from there if anyone can help, it would be appreciated. the closest i have found was: if ((isset($table[$key])) AND (($maxlevel > $level + 1) OR ($maxlevel == '0'))) { $output .= tep_make_cat_dmbranch($key,$table,$level + 1,$maxlevel); } i set the maxlevel to 3, but that made the menu stop flying out entirely thank you for any help Quote Link to comment Share on other sites More sharing options...
workn4frags Posted March 14, 2008 Share Posted March 14, 2008 I would like to disable the first catagory in the Vertical fly out: If clicked it opens the category page. Is there a way to do this? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
tastar Posted March 15, 2008 Share Posted March 15, 2008 Hi All, I've looked through this forum and haven't found a similar problem. On my website, on pages that have tabs generated by the Tabbed Product_info Page contribution, my vertical fly out menus become transparent and mix with the product info text (and don't work): Problem page with tabs On pages where no tabs appear, all is good: Good page without tabs Does anyone have any idea of how to solve this problem (other than removing the Dynamenu contribution). I would guess that it is a conflict with the two javascript calls (the onload issue mentioned in this forum?), but since one is called by product_info and the other by dm_categories, I can't guess how they could be merged and don't understand the concept. Also, the pop-up image is also a javascript, but it doesn't cause any problems. Any help would be appreciated! tony Quote Link to comment Share on other sites More sharing options...
dimi78 Posted March 18, 2008 Share Posted March 18, 2008 Hi All, I've looked through this forum and haven't found a similar problem. On my website, on pages that have tabs generated by the Tabbed Product_info Page contribution, my vertical fly out menus become transparent and mix with the product info text (and don't work): Problem page with tabs On pages where no tabs appear, all is good: Good page without tabs Does anyone have any idea of how to solve this problem (other than removing the Dynamenu contribution). I would guess that it is a conflict with the two javascript calls (the onload issue mentioned in this forum?), but since one is called by product_info and the other by dm_categories, I can't guess how they could be merged and don't understand the concept. Also, the pop-up image is also a javascript, but it doesn't cause any problems. Any help would be appreciated! tony sounds like an issue with the z-index, this propertie controls wich layer is ontop of the orthers. in your tab css file .dynamic-tab-pane-control .tab-row { z-index: 1; Their are more instances of the z-index in the file ;) http://www.w3schools.com/css/pr_pos_z-index.asp Quote Link to comment Share on other sites More sharing options...
tastar Posted March 19, 2008 Share Posted March 19, 2008 sounds like an issue with the z-index, this propertie controls wich layer is ontop of the orthers.in your tab css file .dynamic-tab-pane-control .tab-row { z-index: 1; Their are more instances of the z-index in the file ;) http://www.w3schools.com/css/pr_pos_z-index.asp Wow, that was easy - it really helps to understand what is actually going on! Diederik, thank you very much for the fix. Tony Quote Link to comment Share on other sites More sharing options...
ttt2 Posted March 20, 2008 Share Posted March 20, 2008 Hi, I really like this contribution. I had add this contribution to my brother's site also. I would like to know if it is possible to add border frame to vertical fly-out that wrap the category and the fly out menu. see picture. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 20, 2008 Share Posted March 20, 2008 hi, i need help. Im install images in dynamenu. I put in name category this code: <img alt=Parafernalia src=images/boton_parafernalia.jpg imagen border=0> for view image. But, when mouse over the icon it view the code. One image for example... how make this? thanks (sorry for me english, im spanish) Quote Link to comment Share on other sites More sharing options...
mareeya_mae Posted March 28, 2008 Share Posted March 28, 2008 I've got the menu working all fine as a vertical menu, however, how can I hide the empty categories??. It's easy with categories.php but I don't have any idea about with dm_categories.php. Thanks. If this will help: I wanted to hide sub-subcategories from showing, so i would have only main menu tabs, and their sub categories shown (when hover over). in dm_categories.php find this line: $hide_subcategories_of = array(); and enter every category id number that you don't want to show. Follow the instructions, play around and see how it goes. (i entered all of my sub-subcategories here) Cheers Quote A good time for a good time Link to comment Share on other sites More sharing options...
daller Posted March 29, 2008 Share Posted March 29, 2008 (edited) This is a great contribution! Unfortunately, something is malfunctioning a little... See my page: http://preben.vm.bytemark.co.uk The dynamenu loads nicely (though I would like if it didn't expand in the loading process) Try to navigate to another page - cnn.com for example - and press "Back" in your browser. Now the dynamenu is gone, only showing the standard menu. I tested the behaviour on IE7 and Firefox2.0.0.13 - same result. I would also like the expand-menu function to work on the menu-text as well as the plus-sign. (See example here: http://elav.dk) Any ideas? Edited March 29, 2008 by daller Quote Link to comment Share on other sites More sharing options...
daller Posted March 29, 2008 Share Posted March 29, 2008 Hmm... It's caused by the cache-function in osC - if I disable caching, the dynamenu works fine! But disabling caching makes my site horribly slow! Quote Link to comment Share on other sites More sharing options...
daller Posted March 29, 2008 Share Posted March 29, 2008 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. I'm a newbie, so maybe I'm wrong, but that change will make the categorybox make queries against the database at each pageload, instead of using a cached version, wouldn't it? Quote Link to comment Share on other sites More sharing options...
ttt2 Posted April 2, 2008 Share Posted April 2, 2008 is it possible to add background image to this add-on? Quote Link to comment Share on other sites More sharing options...
dimi78 Posted April 2, 2008 Share Posted April 2, 2008 is it possible to add background image to this add-on? I tried that, it's possible but I it still didn't look the way I wanted it. Try the UL categories contribution by the same author. This was my result with that contr. Quote Link to comment Share on other sites More sharing options...
Unwind23 Posted April 4, 2008 Share Posted April 4, 2008 (edited) Hi this may be a really stupid question...I'm VERY new to PHP so be patient with me... I'm going to be using a horizontal menu in my header, so when it says to put "// Output the footer for Dynamenu for osCommerce echo $GLOBALS['dmfooter'];" in the footer.php file...I can't figure out exactly where it goes...here is what my footer.php looks like...can anyone help a newbie out? Thanks in advance! <?php /* $Id: footer.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_INCLUDES . 'counter.php'); ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="footer"> <td class="footer"> <?php echo strftime(DATE_FORMAT_LONG); ?> </td> <td align="right" class="footer"> <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?> </td> </tr> </table> <BR> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td> </tr> </table> Edited April 4, 2008 by Unwind23 Quote Link to comment Share on other sites More sharing options...
Unwind23 Posted April 4, 2008 Share Posted April 4, 2008 Oh and to add...I think the misplacement of that code in my footer is causing the problem I'm having of subcategories not appearing when I hover over the menu...are those things related?? (Sorry for the double post) Quote Link to comment Share on other sites More sharing options...
naiadomare Posted April 8, 2008 Share Posted April 8, 2008 Hi guys, I'm a bit stuck! I'm using the vertical flyout menu. I'll see if I can explain my issues... the site's not live so I can't post a link. I''m trying to build the menu so that it's static on the right hand side of the page. By this I mean that I'm using CSS "fixed" position so that it always stays in one place even if you scroll up and down. Ive got that far but then I have a couple of problems: FIRSTLY: I haven't found anything more than a hint as to how to make the submenus pop up on the left by default. I think that this is something that a lot of people would like to do but I can't find any explanations on how to do it. It's kind of essential if you're going to have the menu on the right or it messes up all kinds of things. I've looked on soundforge following a clue for a patch but I couldn't find anything. SECONDLY: The submenus always open next to where the menu is on page-load. If you scroll down, the menu moves but the submenus still pop-up at the top. I have no idea how I could fix it. I'm not exactly an expert in CSS but I'm determined and have Google (legal note: other search engines are available ;) )!!. I would never have thought of doing this as it's a bit above me but I'm working for the strictest boss of them all - my other half!! Thanks for the excellent contribution and regards to all. I'll let you know if I figure it out. Quote Link to comment Share on other sites More sharing options...
naiadomare Posted April 8, 2008 Share Posted April 8, 2008 OK, I've got the right-to-left menu working so the submenus pop-up on the left. Here's what you do.... In dynamenu/lib/layersmenu.inc.php : Change this: $this->moveLayers .= "\tsetLeft('" . $this->tree[$cnt]['layer_label'] . "', " . $menu_name . "LEFT + " . $menu_name . "WIDTH - menuRightShift);\n"; for this: $this->moveLayers .= "\tsetLeft('" . $this->tree[$cnt]["layer_label"] . "', " . $menu_name . "LEFT - getOffsetWidth('" . $this->tree[$cnt]["layer_label"] . "'));\n"; And then in dynamenu/libjs/layersmenu.js : Change this: if (onRight + width1 > windowWidth + windowXOffset) { for this: if (onLeft > windowXOffset) { That's it!!!! It was actually on here before but I thought it was only part of the code! Now I've just got to figure out how to make the submenus work with my fixed position menu.... well, that and the rest of the site! Regards. :blink: Quote Link to comment Share on other sites More sharing options...
naiadomare Posted April 8, 2008 Share Posted April 8, 2008 This could easily be just plain stupid but... Might this help?.... 1 diff -ru phplayersmenu-3.2.0/example-hormenu.php phplayersmenu-3.2.0.fixedmenu/example-hormenu.php 2 --- phplayersmenu-3.2.0/example-hormenu.php 2004-08-14 23:27:27.000000000 +0200 3 +++ phplayersmenu-3.2.0.fixedmenu/example-hormenu.php 2004-08-17 10:40:59.000000000 +0200 4 @@ -90,6 +90,14 @@ 5 */ 6 ?> 7 8 +<script language="JavaScript" type="text/javascript"> 9 +<!-- 10 +if (!IE) { 11 + document.write('<div class="normal" style="height: 21px;"> </div>'); 12 +} 13 +// --> 14 +</script> 15 + 16 <div class="normalbox"> 17 <div class="normal" align="center"> 18 <b><?php print basename(__FILE__); ?> - a file-based example with a Horizontal Layers Menu</b> 19 diff -ru phplayersmenu-3.2.0/layersmenu-gtk2.css phplayersmenu-3.2.0.fixedmenu/layersmenu-gtk2.css 20 --- phplayersmenu-3.2.0/layersmenu-gtk2.css 2004-08-14 16:39:02.000000000 +0200 21 +++ phplayersmenu-3.2.0.fixedmenu/layersmenu-gtk2.css 2004-08-17 10:50:51.000000000 +0200 22 @@ -2,6 +2,12 @@ 23 color: black; 24 background-color: #dcdad5; 25 border: 2px outset #cecac1; 26 +/* width: 100%; */ 27 +/* position: absolute; */ 28 +/* top: 0px; */ 29 +/* right: 0px; */ 30 +/* left: 0px; */ 31 + position: fixed; 32 } 33 34 .horbaritem { 35 diff -ru phplayersmenu-3.2.0/libjs/layersmenu.js phplayersmenu-3.2.0.fixedmenu/libjs/layersmenu.js 36 --- phplayersmenu-3.2.0/libjs/layersmenu.js 2004-08-16 14:03:38.000000000 +0200 37 +++ phplayersmenu-3.2.0.fixedmenu/libjs/layersmenu.js 2004-08-17 10:37:34.000000000 +0200 38 @@ -179,6 +179,7 @@ 39 } 40 } 41 setLeft(menuName, foobar); 42 + if (!IE) { setTop(menuName, getWindowYOffset() + getOffsetHeight('fixedmenu') - 1); } 43 } 44 45 function layersOverlap(layer, i) 46 diff -ru phplayersmenu-3.2.0/templates/layersmenu-horizontal_menu.ihtml phplayersmenu-3.2.0.fixedmenu/templates/layersmenu-horizontal_menu.ihtml 47 --- phplayersmenu-3.2.0/templates/layersmenu-horizontal_menu.ihtml 2004-07-04 10:59:58.000000000 +0200 48 +++ phplayersmenu-3.2.0.fixedmenu/templates/layersmenu-horizontal_menu.ihtml 2004-08-17 10:35:11.000000000 +0200 49 @@ -23,7 +23,7 @@ 50 <table border="0" cellspacing="0" cellpadding="0"> 51 <tr> 52 <td> 53 -<div class="horbar"> 54 +<div class="horbar" id="fixedmenu"> 55 <table border="0" cellspacing="0" cellpadding="0"> 56 <tr> 57 <!-- BEGIN horizontal_menu_cell --> I found it here: http://www.sfr-fresh.com/unix/www/phplayer...fixedmenu.patch Cheers Quote Link to comment Share on other sites More sharing options...
TracyS Posted April 16, 2008 Share Posted April 16, 2008 Just wondering if there is a way to cause dynamenu to keep & in the html source code rather than changing it to & before outputting it to the browser? We have a couple of Categories and Products with the & symbol. I went through the database and changed the & to & In other infoboxes the HTML is correctly showing & when you view source with the browser, but in the dynamenu footer section it is showing as & :huh: TIA for any ideas! ;) Quote ~Tracy Link to comment Share on other sites More sharing options...
♥FWR Media Posted April 16, 2008 Share Posted April 16, 2008 Just wondering if there is a way to cause dynamenu to keep & in the html source code rather than changing it to & before outputting it to the browser? We have a couple of Categories and Products with the & symbol. I went through the database and changed the & to & In other infoboxes the HTML is correctly showing & when you view source with the browser, but in the dynamenu footer section it is showing as & :huh: TIA for any ideas! ;) htmlspecialchars($this_is_what_im_outputting); Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.