Anonym Posted July 12, 2012 Share Posted July 12, 2012 It seems i can't figure out why dynamic categories doesn't work .I tried to set dynamic off , on over and over but all the time are displayed all categories and subcategories . I want to have that +/- button to expand a category when you click on it. Can anyone help me or suggest me another way to to that . I am using version 1.3.6.0. Thanks Link to comment Share on other sites More sharing options...
Anonym Posted July 12, 2012 Author Share Posted July 12, 2012 anyone any ideas how could i make the catgories dynamic? Link to comment Share on other sites More sharing options...
Anonym Posted July 12, 2012 Author Share Posted July 12, 2012 anyone a little help ? Link to comment Share on other sites More sharing options...
tomerg3 Posted July 13, 2012 Share Posted July 13, 2012 What's the URL of your site? Any JS errors? Link to comment Share on other sites More sharing options...
Anonym Posted July 13, 2012 Author Share Posted July 13, 2012 https://etigara-electronica.ro/ i am newbie , i don,t know to look up for js errors ,all is working fine. Link to comment Share on other sites More sharing options...
tomerg3 Posted July 13, 2012 Share Posted July 13, 2012 Someone really did a sloppy job here 1) There's a JS error which is likely the cause of the issue, can't be sure before it is fixed... Timestamp: 7/13/2012 11:19:37 AM Error: mclosetime is not defined Source File: https://etigara-electronica.ro/ Line: 1 2) See http://screencast.com/t/ce0PZnvlJNU0 it was the first thing I noticed viewing your site's source. Link to comment Share on other sites More sharing options...
Anonym Posted July 13, 2012 Author Share Posted July 13, 2012 I have looked /public_html/modules/blocklanguagesdown/blocklanguagesdown.tpl but the code it's looking well i think <!-- Block languages dropdown module --> <div class="breadcrumb"> <div class="cornerTopLeft"> <div class="cornerTopRight"> <div class="cornerBottomLeft"> <div class="cornerBottomRight"> <div class="width" style="overflow: hidden;"> <table width="95%"> <tr> <td> <div id="nav_flags"> {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code == $lang_iso} <img align="absmiddle" height="20px" id="nav_selected_lang" src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.id_lang}" onmouseover="mopen('nav_languages')" onmouseout="mclosetime()" onload="mclosetime()" /> <b>{$language.name}</b> {/if} {/foreach} </td> <td> {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code != $lang_iso} <a href="http://etigara-electronica.ro{$link->getLanguageLink($language.id_lang, $language.name)}" title="{$language.name}"><img align="absmiddle" height="20px" src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.name}" /> <b>{$language.name}</b></a> {/if} {/foreach} </td> </div> </td> <td> <!-- /Block languages dropdown module --> <!-- Block currencies module --> {foreach from=$currencies key=k item=f_currency} <span style="padding-left:10px;"><strong><a href="javascript:setCurrency({$f_currency.id_currency});">{$f_currency.name}</a></strong></span><br /> {/foreach} <!-- /Block currencies module --> </td></tr></table> </div></div></div></div></div></div> About js error do you have any idea how could i fix it ?I have no idea ... I really appreciate your help. Link to comment Share on other sites More sharing options...
tomerg3 Posted July 13, 2012 Share Posted July 13, 2012 As I mentioned before, you should not have a div between td columns... http://screencast.com/t/VgHfAKdp As for the error, I would look for that variable, and try to disable the code that uses it (mclosetime) Link to comment Share on other sites More sharing options...
Anonym Posted July 13, 2012 Author Share Posted July 13, 2012 <div class="breadcrumb"> <div class="cornerTopLeft"> <div class="cornerTopRight"> <div class="cornerBottomLeft"> <div class="cornerBottomRight"> <div class="width" style="overflow: hidden;"> <table width="95%"> <tr> <td> <div id="nav_flags"> {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code == $lang_iso} <img align="absmiddle" height="20px" id="nav_selected_lang" src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.id_lang}" onmouseover="mopen('nav_languages')" onmouseout="mclosetime()" onload="mclosetime()" /> <b>{$language.name}</b> {/if} {/foreach} </td> <td> {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code != $lang_iso} <a href="http://etigara-electronica.ro{$link->getLanguageLink($language.id_lang, $language.name)}" title="{$language.name}"><img align="absmiddle" height="20px" src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.name}" /> <b>{$language.name}</b></a> {/if} {/foreach} </div> </td> </td> <td> ok i have made the change to the code.i think it's correct. Link to comment Share on other sites More sharing options...
tomerg3 Posted July 13, 2012 Share Posted July 13, 2012 You still have a div that is opened in one td, and closed in another, which is not a good idea.... Link to comment Share on other sites More sharing options...
Anonym Posted July 13, 2012 Author Share Posted July 13, 2012 now it is good i think i closed the div in the td that was opened <div class="breadcrumb"> <div class="cornerTopLeft"> <div class="cornerTopRight"> <div class="cornerBottomLeft"> <div class="cornerBottomRight"> <div class="width" style="overflow: hidden;"> <table width="95%"> <tr> <td> <div id="nav_flags"> {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code == $lang_iso} <img align="absmiddle" height="20px" id="nav_selected_lang" src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.id_lang}" onmouseover="mopen('nav_languages')" onmouseout="mclosetime()" onload="mclosetime()" /> <b>{$language.name}</b> {/if} {/foreach} </div> </td> <td> {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code != $lang_iso} <a href="http://etigara-electronica.ro{$link->getLanguageLink($language.id_lang, $language.name)}" title="{$language.name}"><img align="absmiddle" height="20px" src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.name}" /> <b>{$language.name}</b></a> {/if} {/foreach} </td> </td> <td> Link to comment Share on other sites More sharing options...
tomerg3 Posted July 13, 2012 Share Posted July 13, 2012 That looks better, did you find out the JS error? Link to comment Share on other sites More sharing options...
Anonym Posted July 14, 2012 Author Share Posted July 14, 2012 no this on i have no ida how to find it and fix it do you have an idea? Link to comment Share on other sites More sharing options...
shacker Posted February 26, 2013 Share Posted February 26, 2013 put the script code at the begin of the file {literal} <script type="text/javascript"> var timeout = 250; var closetimer = 10; var ddmenuitem = 0; // open hidden layer function mopen(id) { // cancel close timer mcancelclosetime(); // close old layer if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; // get new layer and show it ddmenuitem = document.getElementById(id); ddmenuitem.style.visibility = 'visible'; } // close showed layer function mclose() { if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; } // go close timer function mclosetime() { closetimer = window.setTimeout(mclose, timeout); } // cancel close timer function mcancelclosetime() { if(closetimer) { window.clearTimeout(closetimer); closetimer = null; } } // close layer when click-out document.onclick = mclose; </script>{/literal} Link to comment Share on other sites More sharing options...
Recommended Posts