Guest Posted June 5, 2004 Share Posted June 5, 2004 Ok, got everything installed, but I can't get it to fit into the box. Could someone tell me where I went wrong! Thanks! Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2004 Share Posted June 5, 2004 Does no-one bother to read through this forum. The reason there are 66 pages, is because it is being clogged up with people asking the same questions time and time again instead of doing the logical thing and reading through the items. Yes its a pain looking through so many pages, but adding the same questions is making it worse. Have some common sense ! Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2004 Share Posted June 5, 2004 So, you don't know the answer! LOL I'm just kidding! Ok, I'll try reading through all of the pages again! I was hoping that it was a simple adjustment that someone could have quickly posted, but I guess not! Quote Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2004 Share Posted June 5, 2004 Ok, I have found what I was looking for and I have everything placed properly. Now I'm going to chance it again and ask how do I change the infobox title from coolmenu to Products or categories or whatever. I have no sense of navigation when it comes to trying to figure this out. I hope someone will be nice enough to let me know! Quote Link to comment Share on other sites More sharing options...
hjp Posted June 6, 2004 Share Posted June 6, 2004 you can do it in ..../boxes/coolmenu.php Quote Link to comment Share on other sites More sharing options...
niknakgroup Posted June 7, 2004 Share Posted June 7, 2004 Hi, nice for me to be able to answer some questions rather than be constantly asking them, and I dont even know if anybody has asked these yet! :) I am currently optimising my store for the search engines, and a couple of points were made in relation to the coolMenu contrib we have running, and I think I have solved them both: 1st problem - Some search engines will only read so many characters of the source of your page before moving on to the next page; as we have so many categories running, the coolMenu JavaScript, although ignored by the engines, used up a great big chunk of this quota, and possible meant tha the actual content of my pages was not being indexed or assessed by the engines.... 1st solution - instead of having <?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?> right after the <body> tag in each of my files in the catalog folder, I just put it once into the footer folder, as the very last statement. Not only does this put all the JavaScript at the bottom of the page, it also means that the menu loads at the same time as the rest of the page, rather than hovering over a blank screen while the page loads as it used to.....there must be a reason why this sint recommended, but surely it makes for a much quicker install to use this method anyway??? any ideas? 2nd problem - Search engines cannot read JavScript, so ignore it. This means that Search engines were completely unable to drill down into my products within the site. I do have the allprods contrib installed, but it doesnt seem to ahve the desired effects..... 2nd solution - I modified the includes/boxes/categories.php file to display horizontally by removing the <br> command. I then placed the call to categories.php into my footer file (just above the call to coolmenu.php). Result? The categories still have basic html links to them which the search engines can follow. I only did this two days ago, and I have had three engines busily beavering away in my site constantly since - before they stayed a maximum of 20 minutes, so one can only presume the desired result has been acheived... I'll let you know if it helps my rankings any! Just thought some people might like to know - if you didn't, tough, you've already read the post so you know anyway!! :D Quote Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem.... Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums..... if (stumped == true) { return(square_one($start_over) } else { $random_query = tep_fetch_answer($forum_query) } Link to comment Share on other sites More sharing options...
yozzie Posted June 7, 2004 Share Posted June 7, 2004 Hi, I'm using your dhtml coolmenu only do i have one problem, the page is centered in the browser and the menu should be dynamicaly placed. I can't get this to work for the on load. I'm using an action onresize like this. oCMenu.onresize="oCMenu.fromLeft=getocmenux()-6;oCMenu.fromTop=getocmenuy()-11" and this works fine but a user has to resize it's browser to see the menu in the right place. Is there some way to do this for onLoad. thanks. Quote Link to comment Share on other sites More sharing options...
hjp Posted June 7, 2004 Share Posted June 7, 2004 Hi, I'm using your dhtml coolmenu only do i have one problem, the page is centered in the browser and the menu should be dynamicaly placed. I can't get this to work for the on load. I'm using an action onresize like this. oCMenu.onresize="oCMenu.fromLeft=getocmenux()-6;oCMenu.fromTop=getocmenuy()-11" and this works fine but a user has to resize it's browser to see the menu in the right place. Is there some way to do this for onLoad. thanks. try: oCMenu.onresize="location.reload()" Quote Link to comment Share on other sites More sharing options...
yozzie Posted June 8, 2004 Share Posted June 8, 2004 hi, oCMenu.onresize="oCMenu.fromLeft=getocmenux()-6;oCMenu.fromTop=getocmenuy()-11" works fine but i need something for onload, when i open the page the location of the menu is incorrect. When i resize oCMenu.onresize is executed and the menu is in the right place. I need something to poition the menu onload Quote Link to comment Share on other sites More sharing options...
XCTuning Posted June 9, 2004 Share Posted June 9, 2004 :P Hello... Sorry i'm use CoolMenu in my site... i'm read the installation procedure but it don't work. Please can you help???? ;) mi site is... http://www.XCTuning.com/tienda Realy i don't understand, my friend's have that and it work, but i can't. Thanks. :blink: Quote Link to comment Share on other sites More sharing options...
hjp Posted June 9, 2004 Share Posted June 9, 2004 coolmenu doesn't work without it's stylesheet Quote Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2004 Share Posted June 9, 2004 Yozzie, in response to your e-mail, heres the solution that worked for me (a little long winded I'm afraid). Firstly, backup all of your files to make sure that if anything goes wrong, you can quickly restore from your backup. Follow these steps: 1) Open the includes\coolmenu.php file. 2) Add the following script before the line : //Menu object creation <script language="JavaScript" type="text/JavaScript"> function SubRiallinea(avvio){ larghezza=11; // from left of column setting agt = navigator.userAgent.toLowerCase(); is_gecko = (agt.indexOf('gecko') != -1); if (document.all) { if (document.body.clientWidth>800) oCMenu.fromLeft=((document.body.clientWidth-800)/2)+larghezza; if (document.body.clientWidth<=800) oCMenu.fromLeft=larghezza; oCMenu.fromTop=200 } else if (is_gecko) { if (window.outerWidth>800) oCMenu.fromLeft=((window.outerWidth-800)/2)+(larghezza-15); if (window.outerWidth<=800) oCMenu.fromLeft=(larghezza-11); oCMenu.fromTop=210 } else { if (avvio==1){ if (window.outerWidth>800) oCMenu.fromLeft=((window.outerWidth-800)/2)+larghezza; if (window.outerWidth<=800) oCMenu.fromLeft=larghezza; oCMenu.fromTop=200 } else { document.reload; } } } function Riallinea() { SubRiallinea(1); oCMenu.construct(1); } 3) Replace the following lines: oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname //Menu properties oCMenu.pxBetween=0 oCMenu.fromLeft=10 oCMenu.fromTop=240 with oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname //Menu properties oCMenu.pxBetween=0 SubRiallinea(1); window.onresize=Riallinea; 4)Open the Menu_animation.js file. Rem out the lines (near the end of the file): if(bw.ns4||bw.op5||bw.op6)setTimeout('window.resize=new Function("'+c.name+'.resized()")',500) else window.onresize=new Function(c.name+".resized()") c.resized=cm_resized; if(bw.op5||bw.op6) document.onmousemove=new Function(c.name+".resized()") This is what I did and the menu worked for me. Remember to set the "oCMenu.fromTop" to the correct values for your page. Experiment with the larghezza=11 value. 11 is ideal for my page and puts the menu nice and neat in the category box. I've tested the pages with both IE5, IE6 and Netscape 6 and everything worked fine including the resizing of paged. :D Quote Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2004 Share Posted June 9, 2004 :P Hello... Sorry i'm use CoolMenu in my site... i'm read the installation procedure but it don't work. Please can you help???? ;) mi site is... http://www.XCTuning.com/tienda Realy i don't understand, my friend's have that and it work, but i can't. Thanks. :blink: By the looks of it, you haven't copied the stylesheet for the menu into your shops stylesheet. The menu can not be placed correctly without the stylesheet. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 16, 2004 Share Posted June 16, 2004 Yozzie, in response to your e-mail, heres the solution that worked for me (a little long winded I'm afraid). Firstly, backup all of your files to make sure that if anything goes wrong, you can quickly restore from your backup. Follow these steps: 1) Open the includes\coolmenu.php file. 2) Add the following script before the line : //Menu object creation <script language="JavaScript" type="text/JavaScript"> function SubRiallinea(avvio){ larghezza=11; // from left of column setting agt = navigator.userAgent.toLowerCase(); is_gecko = (agt.indexOf('gecko') != -1); if (document.all) { if (document.body.clientWidth>800) oCMenu.fromLeft=((document.body.clientWidth-800)/2)+larghezza; if (document.body.clientWidth<=800) oCMenu.fromLeft=larghezza; oCMenu.fromTop=200 } else if (is_gecko) { if (window.outerWidth>800) oCMenu.fromLeft=((window.outerWidth-800)/2)+(larghezza-15); if (window.outerWidth<=800) oCMenu.fromLeft=(larghezza-11); oCMenu.fromTop=210 } else { if (avvio==1){ if (window.outerWidth>800) oCMenu.fromLeft=((window.outerWidth-800)/2)+larghezza; if (window.outerWidth<=800) oCMenu.fromLeft=larghezza; oCMenu.fromTop=200 } else { document.reload; } } } function Riallinea() { SubRiallinea(1); oCMenu.construct(1); } 3) Replace the following lines: oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname //Menu properties oCMenu.pxBetween=0 oCMenu.fromLeft=10 oCMenu.fromTop=240 with oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname //Menu properties oCMenu.pxBetween=0 SubRiallinea(1); window.onresize=Riallinea; 4)Open the Menu_animation.js file. Rem out the lines (near the end of the file): if(bw.ns4||bw.op5||bw.op6)setTimeout('window.resize=new Function("'+c.name+'.resized()")',500) else window.onresize=new Function(c.name+".resized()") c.resized=cm_resized; if(bw.op5||bw.op6) document.onmousemove=new Function(c.name+".resized()") This is what I did and the menu worked for me. Remember to set the "oCMenu.fromTop" to the correct values for your page. Experiment with the larghezza=11 value. 11 is ideal for my page and puts the menu nice and neat in the category box. I've tested the pages with both IE5, IE6 and Netscape 6 and everything worked fine including the resizing of paged. :D I can not for the life of me see where you are refering to.... here is my coolmenu.php file.... <?php /* ------------------------------------------------ coolMenu for osCommerce author: Andreas Kothe url: http://www.oddbyte.de Released under the GNU General Public License ------------------------------------------------ */ // --- CONFIG --- define('SHOW_COUNT','false'); define('SUB_CATEGORIES','4'); if (MAX_MANUFACTURERS_LIST < 2) { $cat_choose = array(array('id' => '', 'text' => BOX_CATEGORIES_CHOOSE)); } else { $cat_choose = ''; } ?> <!-- Copyright 2002 www.dhtmlcentral.com -- modified for PHP and osCommerce by Andreas Kothe - www.oddbyte.de --> <script> oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname //Menu properties oCMenu.pxBetween=0 oCMenu.fromLeft=10 oCMenu.fromTop=100 oCMenu.rows=0 oCMenu.menuPlacement="left" oCMenu.offlineRoot="" oCMenu.onlineRoot="" oCMenu.resizeCheck=1 oCMenu.wait=500 oCMenu.fillImg="cm_fill.gif" oCMenu.zIndex=0 //Background bar properties oCMenu.useBar=1 oCMenu.barWidth="menu" oCMenu.barHeight="menu" oCMenu.barClass="clBar" oCMenu.barX="menu" oCMenu.barY="menu" oCMenu.barBorderX=0 oCMenu.barBorderY=0 oCMenu.barBorderClass="" oCMenu.level[0]=new cm_makeLevel() oCMenu.level[0].width=150 oCMenu.level[0].height=28 oCMenu.level[0].regClass="clLevel0" oCMenu.level[0].overClass="clLevel0over" oCMenu.level[0].borderX=1 oCMenu.level[0].borderY=1 oCMenu.level[0].borderClass="clLevel0border" oCMenu.level[0].offsetX=0 oCMenu.level[0].offsetY=0 oCMenu.level[0].rows=0 oCMenu.level[0].arrow="images/arrow.gif" oCMenu.level[0].arrowWidth=11 oCMenu.level[0].arrowHeight=11 oCMenu.level[0].align="right" oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.8)" <?php for ($i=1; $i<SUB_CATEGORIES; $i++) { echo' oCMenu.level[' . $i . ']=new cm_makeLevel() oCMenu.level[' . $i . '].width=250 oCMenu.level[' . $i . '].height=14 oCMenu.level[' . $i . '].regClass="clLevel1" oCMenu.level[' . $i . '].overClass="clLevel1over" oCMenu.level[' . $i . '].borderX=1 oCMenu.level[' . $i . '].borderY=1 oCMenu.level[' . $i . '].align="right" oCMenu.level[' . $i . '].offsetX=0 oCMenu.level[' . $i . '].offsetY=0 oCMenu.level[' . $i . '].borderClass="clLevel1border" oCMenu.level[' . $i . '].align="right" oCMenu.level[' . $i . '].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)" '; } // end for // --- function blank_length($text) { $count = 0; while(substr($text, 0,12) == " ") { $text = substr($text, 12); $count++; } return $count; } // --- function print_menu_line($categories, $depth_size,$depth_parentid, $depth) { $size=0; for($i=0; $depth_size[$i]!=0; $i++) { $size++; } echo "oCMenu.makeMenu('"; if ($depth == 0) { echo "top" . '_'.$depth_size[0] . "','','"; } else if ($depth == 1) { echo "sub" .'_'.$depth_size[0] .'_'. $depth_size[1] . "','top" .'_'. $depth_size[0] . "','"; } else { // $depth < 1 echo "sub"; for ($i=0; $i<$size; $i++) { echo ($depth_size[$i] != 0) ? '_'.$depth_size[$i] : '_'; } echo "','sub"; for ($i=0; $i<$size-1; $i++) { echo ($depth_size[$i] != 0) ? '_'.$depth_size[$i] : '_'; } echo "','"; } echo $categories['text']; if (SHOW_COUNT == 'true') { $products_in_category = tep_count_products_in_category($categories['id']); if ($products_in_category > 0) { echo "<FONT COLOR=\"#c0c0c0\"> (" . $products_in_category . ")</FONT>"; } } $cPathNew = "cPath="; for ($i=0; $i<$size-1; $i++) { $cPathNew .= ($depth_size[$i] != 0) ? $depth_parentid[$i].'_':''; } $cPathNew .= $categories['id']; echo "','" . tep_href_link(FILENAME_DEFAULT,$cPathNew) . "')\n"; } // --- $categories = tep_get_categories(''); $height.= 2.65*count($categories); $depth=0; $blank_length; $depth_size; $depth_parentid; for($i=0; $i<count($categories); $i++) { // don't insert 1st entry ("please choose ...") $blank_length = blank_length($categories[$i]['text']); if($blank_length == $depth) { $categories[$i]['depth'] = $depth; $depth_size[$depth]++; } else if ($blank_length > $depth) { $depth++; $categories[$i]['depth'] = $depth; $depth_size[$depth]++; } else if ($blank_length < $depth) { for ($j=$depth; $j>$blank_length; $j--) { $depth_size[$j] = 0; $depth--; } $categories[$i]['depth'] = $depth; $depth_size[$depth]++; } $depth_parentid[$categories[$i]['depth']] = $categories[$i]['id']; // remove blanks $categories[$i]['text'] = substr($categories[$i]['text'], 12*$blank_length); print_menu_line($categories[$i], $depth_size,$depth_parentid, $depth); } ?> // create menu oCMenu.construct() <!-- Copyright 2002 www.dhtmlcentral.com -- modified for PHP and osCommerce by Andreas Kothe - www.oddbyte.de --> </SCRIPT> Please let me know if I'm missing something... My Info boxes are resizing themselves & I'm sure like everyone elese, I find it very annoying. Thanks a lot! Quote Link to comment Share on other sites More sharing options...
Guest Posted June 19, 2004 Share Posted June 19, 2004 <?php /* ------------------------------------------------ ?coolMenu for osCommerce ? ?author: Andreas Kothe ?url: ?http://www.oddbyte.de ?Released under the GNU General Public License ? ?------------------------------------------------ */ // --- CONFIG --- define('SHOW_COUNT','false'); define('SUB_CATEGORIES','4'); if (MAX_MANUFACTURERS_LIST < 2) { ? ?$cat_choose = array(array('id' => '', 'text' => BOX_CATEGORIES_CHOOSE)); } else { ? ?$cat_choose = ''; } ?> ? ?<!-- ?Copyright 2002 www.dhtmlcentral.com ?-- ?modified for PHP and osCommerce by Andreas Kothe - www.oddbyte.de --> ?<script> PUT JAVASCRIPT IN HERE This is the section to replace. oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname //Menu properties oCMenu.pxBetween=0 oCMenu.fromLeft=10 oCMenu.fromTop=100 ?oCMenu.rows=0 ?oCMenu.menuPlacement="left" ?oCMenu.offlineRoot="" ?oCMenu.onlineRoot="" ?oCMenu.resizeCheck=1 ?oCMenu.wait=500 ?oCMenu.fillImg="cm_fill.gif" ?oCMenu.zIndex=0 ?//Background bar properties ?oCMenu.useBar=1 ?oCMenu.barWidth="menu" ?oCMenu.barHeight="menu" ?oCMenu.barClass="clBar" ?oCMenu.barX="menu" ?oCMenu.barY="menu" ?oCMenu.barBorderX=0 ?oCMenu.barBorderY=0 ?oCMenu.barBorderClass="" ?oCMenu.level[0]=new cm_makeLevel() ?oCMenu.level[0].width=150 ?oCMenu.level[0].height=28 ?oCMenu.level[0].regClass="clLevel0" ?oCMenu.level[0].overClass="clLevel0over" ?oCMenu.level[0].borderX=1 ?oCMenu.level[0].borderY=1 ?oCMenu.level[0].borderClass="clLevel0border" ?oCMenu.level[0].offsetX=0 ?oCMenu.level[0].offsetY=0 ?oCMenu.level[0].rows=0 ?oCMenu.level[0].arrow="images/arrow.gif" ?oCMenu.level[0].arrowWidth=11 ?oCMenu.level[0].arrowHeight=11 ?oCMenu.level[0].align="right" ?oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.8)" <?php for ($i=1; $i<SUB_CATEGORIES; $i++) { ?echo' ? oCMenu.level[' . $i . ']=new cm_makeLevel() ? oCMenu.level[' . $i . '].width=250 ? oCMenu.level[' . $i . '].height=14 ? oCMenu.level[' . $i . '].regClass="clLevel1" ? oCMenu.level[' . $i . '].overClass="clLevel1over" ? oCMenu.level[' . $i . '].borderX=1 ? oCMenu.level[' . $i . '].borderY=1 ? oCMenu.level[' . $i . '].align="right" ? oCMenu.level[' . $i . '].offsetX=0 ? oCMenu.level[' . $i . '].offsetY=0 ? oCMenu.level[' . $i . '].borderClass="clLevel1border" ? oCMenu.level[' . $i . '].align="right" ? oCMenu.level[' . $i . '].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)" ? ? ?'; } // end for // --- function blank_length($text) { ?$count = 0; ?while(substr($text, 0,12) == " ") { ? $text = substr($text, 12); ? $count++; ?} ?return $count; } // --- function print_menu_line($categories, $depth_size,$depth_parentid, $depth) { ?$size=0; ?for($i=0; $depth_size[$i]!=0; $i++) { ? $size++; ?} ?echo "oCMenu.makeMenu('"; ?if ($depth == 0) { ? echo "top" . '_'.$depth_size[0] . "','','"; ?} else if ($depth == 1) { ? echo "sub" .'_'.$depth_size[0] .'_'. $depth_size[1] . "','top" .'_'. $depth_size[0] . "','"; ?} else { // $depth < 1 ? echo "sub"; ? for ($i=0; $i<$size; $i++) { ? ?echo ($depth_size[$i] != 0) ? '_'.$depth_size[$i] : '_'; ? } ? echo "','sub"; ? for ($i=0; $i<$size-1; $i++) { ? ?echo ($depth_size[$i] != 0) ? '_'.$depth_size[$i] : '_'; ? } ? echo "','"; ?} ?echo $categories['text']; ?if (SHOW_COUNT == 'true') { ? $products_in_category = tep_count_products_in_category($categories['id']); ? if ($products_in_category > 0) { ? ?echo "<FONT COLOR=\"#c0c0c0\"> (" . $products_in_category . ")</FONT>"; ? } ?} ? ? ? ? ?$cPathNew = "cPath="; ?for ($i=0; $i<$size-1; $i++) { ? $cPathNew .= ($depth_size[$i] != 0) ? $depth_parentid[$i].'_':''; ? ? ? ?} ? ? ? ?$cPathNew .= $categories['id']; ?echo "','" . tep_href_link(FILENAME_DEFAULT,$cPathNew) . "')\n"; } // --- $categories = tep_get_categories(''); $height.= 2.65*count($categories); $depth=0; $blank_length; $depth_size; $depth_parentid; for($i=0; $i<count($categories); $i++) { // don't insert 1st entry ("please choose ...") ?$blank_length = blank_length($categories[$i]['text']); ?if($blank_length == $depth) { ? $categories[$i]['depth'] = $depth; ? $depth_size[$depth]++; ?} else if ($blank_length > $depth) { ? $depth++; ? $categories[$i]['depth'] = $depth; ? $depth_size[$depth]++; ?} else if ($blank_length < $depth) { ? for ($j=$depth; $j>$blank_length; $j--) { ? ?$depth_size[$j] = 0; ? ?$depth--; ? } ? $categories[$i]['depth'] = $depth; ? $depth_size[$depth]++; ?} ? ? ? ? $depth_parentid[$categories[$i]['depth']] = $categories[$i]['id']; ?// remove blanks ?$categories[$i]['text'] = substr($categories[$i]['text'], 12*$blank_length); ?print_menu_line($categories[$i], $depth_size,$depth_parentid, $depth); } ?> ?// create menu ?oCMenu.construct() ? ?<!-- ?Copyright 2002 www.dhtmlcentral.com ?-- ?modified for PHP and osCommerce by Andreas Kothe - www.oddbyte.de --> ?</SCRIPT> As always make sure you backup all of your files before amending, the amendments that I posted worked for me. Use them yourself at your own risk. Quote Link to comment Share on other sites More sharing options...
TimP Posted June 29, 2004 Share Posted June 29, 2004 Has anyone got this menu working with Linda's centershop, if so let me know which page out of the 67 this info is on........ tim Quote Link to comment Share on other sites More sharing options...
hjp Posted June 29, 2004 Share Posted June 29, 2004 Has anyone got this menu working with Linda's centershop, if so let me know which page out of the 67 this info is on........ tim I have made a solution here: http://www.oscommerce.com/forums/index.php?sho...90entry308916 Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2004 Share Posted July 2, 2004 ok guys my site.. www.winksonline.com/catalog I have teh page centered with div tags in header and footer.. I have meta tag's for search engines in the index.php file I uploaded this a few months ago before there was a solution to mount it and it worked fine. Since it just floated.. I deleted it. Now, I am putting it back up and I have followed all the instructions in the first file.. but now nothing comes up when i turn it on but a humongous blank box. any help would be great.. if you want to IM me it's WinksCustoms Thanks Chris Quote Link to comment Share on other sites More sharing options...
hjp Posted July 2, 2004 Share Posted July 2, 2004 ok guys my site.. www.winksonline.com/catalog I have teh page centered with div tags in header and footer.. I have meta tag's for search engines in the index.php file I uploaded this a few months ago before there was a solution to mount it and it worked fine. Since it just floated.. I deleted it. Now, I am putting it back up and I have followed all the instructions in the first file.. but now nothing comes up when i turn it on but a humongous blank box. any help would be great.. if you want to IM me it's WinksCustoms Thanks Chris Firstly, you have made the classical error of using quotes in your categories and product names. IF you want to use quotes you will have to backslash them, else they will interfere with the coolmenu javascript function call. E.g. : some places you write Floor Mat's WRONG you must write Floor Mat\'s to get it to work Also you seem to have an error in your Floor categori Quote Link to comment Share on other sites More sharing options...
Guest Posted July 2, 2004 Share Posted July 2, 2004 ok, I did the above and then it worked.. I then added the script HJP posted on page 50 to all 3 files, now it disappeared again. any help?? thanks chris Quote Link to comment Share on other sites More sharing options...
hjp Posted July 3, 2004 Share Posted July 3, 2004 ok, I did the above and then it worked.. I then added the script HJP posted on page 50 to all 3 files, now it disappeared again. any help??thanks chris That is because you did not follow the instructions. You are mixing up the soluitions. If you wish to use my solution, then do it fully if you want it to work. Else use other solutions. Quote Link to comment Share on other sites More sharing options...
Jordan_Dexter Posted July 3, 2004 Share Posted July 3, 2004 From Niknakgroup's post on page 66: I am currently optimising my store for the search engines, and a couple of points were made in relation to the coolMenu contrib we have running, and I think I have solved them both: 1st problem - Some search engines will only read so many characters of the source of your page before moving on to the next page; as we have so many categories running, the coolMenu JavaScript, although ignored by the engines, used up a great big chunk of this quota, and possible meant tha the actual content of my pages was not being indexed or assessed by the engines.... 1st solution - instead of having <?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?> right after the <body> tag in each of my files in the catalog folder, I just put it once into the footer folder, as the very last statement. Not only does this put all the JavaScript at the bottom of the page, it also means that the menu loads at the same time as the rest of the page, rather than hovering over a blank screen while the page loads as it used to.....there must be a reason why this sint recommended, but surely it makes for a much quicker install to use this method anyway??? any ideas? 2nd problem - Search engines cannot read JavScript, so ignore it. This means that Search engines were completely unable to drill down into my products within the site. I do have the allprods contrib installed, but it doesnt seem to ahve the desired effects..... 2nd solution - I modified the includes/boxes/categories.php file to display horizontally by removing the <br> command. I then placed the call to categories.php into my footer file (just above the call to coolmenu.php). Result? The categories still have basic html links to them which the search engines can follow. I only did this two days ago, and I have had three engines busily beavering away in my site constantly since - before they stayed a maximum of 20 minutes, so one can only presume the desired result has been acheived... Has anyone else tried these optimizations? Seems like it would be very useful... JD Quote "There is no such thing as failure....there is only quitting too soon." - Albert Sabin Link to comment Share on other sites More sharing options...
vmaster Posted July 3, 2004 Share Posted July 3, 2004 I have tested numerous coolmenu sites at anybrowser.com, and most simply display a blank white box with the javascript disabled. However, the coolmenu author's site (www.geraeteland.de) somehow manages to dispaly coolmenu even with anybrowser. Any ideas how that can be achieved ? Quote Link to comment Share on other sites More sharing options...
Guest Posted July 4, 2004 Share Posted July 4, 2004 I duid everything it said HJP. Do I need to install linda's center shop also? I'll take a closer look at it here. I'm stumped right now Quote Link to comment Share on other sites More sharing options...
hjp Posted July 4, 2004 Share Posted July 4, 2004 (edited) I duid everything it said HJP. Do I need to install linda's center shop also? I'll take a closer look at it here. I'm stumped right now No, as I said, you must be mixing things. If I look at the source code from your site I see that coolmenu is still included right after the body tag. REMOVE it from there or put // in front. As I describe, it must only be included in footer.php. And you don't have to install Linda's center shop. But my solution is intended to work with centered shops also, because the coolmenu is fixed to a box, and therefore moves with the box on browser resize. You can see it at work on http://cinter.biz/ where it is also used in the information box. Edited July 4, 2004 by hjp Quote 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.