Icy Phoenix
Old Support Topics - Closed Dyn Menu Categories - Links?
grafnap [ Thu 27 Aug, 2009 23:56 ]
Post subject: Closed Dyn Menu Categories - Links?
hi all,
i need help as i would like to have my categories links in my dyn menus always closed,
since i have many links in menus, instead of when someone comes to site they see all
opened ... thanks.
spydie [ Fri 28 Aug, 2009 00:18 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
I think that i´ve read something about this issue , but i don´t remember where that was.
Have you tried running a search for nav links block
grafnap [ Fri 28 Aug, 2009 00:41 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
yes, i always search first to avoid looking like a idiot, lol ... sometimes
i spend hours in here just searching, lol...
ok, i think the appropriate term to use is minimizing the dynamic menus
so only the categories are seen and not all the links inside ...
spydie [ Fri 28 Aug, 2009 00:44 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
i think i´ve seen that issue in an template discussion but i´m not shure
grafnap [ Fri 28 Aug, 2009 15:50 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
ok then, since this is very important to me, i will try to keep this opened
because i really would like to solve this problem...
so if this cannot be corrected, then does somebody have
suggestions for another idea? ...
i have seen there was drop down post for nav link, but
i did not find the codes to change and will it work for dynamic menu?
thanks all in advance for all your help.
Chaotic [ Fri 28 Aug, 2009 18:52 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
Are you talking about the drop-down menu for Icy Phoenix?
If so, the block is called global header [Global Header].
spydie [ Fri 28 Aug, 2009 19:15 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
nope.
Talking about Quick_nav_link´s block.
i think i´ve read something here talking about a code change so the block is closed when you entyer the page.
not all open (with all links show´n)
DWho [ Fri 28 Aug, 2009 19:20 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
that's a cookie issue.. with the block...icy1.2 had it closed by default ...
i do not know if MG changed it so it was open for 1.3
i did have a look a little while ago but got distracted with something else...
i think a member here who does templates had it set to close on his templates maybe he will help.. if Mg does not see this first
grafnap [ Fri 28 Aug, 2009 21:33 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
yes, I would like it set closed as default, this is for Dynamic Menus, not Nav_Link Menu ...
DWho, if you could find out the person who had it set to close, i could ask him/her ...
thanx again.
spydie [ Fri 28 Aug, 2009 22:45 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
i think you should ask elpulgas
if i´m not wrong it was him
elpulgas [ Sat 29 Aug, 2009 00:15 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
i think you should ask elpulgas
if i´m not wrong it was him
No, I tried but didn't succeed =(
What I did was take the JavaScript from it to use it on a quicklogin tab. However the tab is open by default even if I don't use the cookie.
Sorry but I can't help much and I'm kind of in the same problem. You can ask Lopalong since he had a working code for something similar

spydie [ Sat 29 Aug, 2009 00:29 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
But i´ve been right , i´ve seen this issue in one of your posts
elpulgas [ Sat 29 Aug, 2009 00:44 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
Well I can only remember that one. Maybe I created a similar topic on how to do it. A question:When you see my site, are they closed or open?
spydie [ Sat 29 Aug, 2009 00:54 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
closed i would say
this is a view

Lopalong [ Sat 29 Aug, 2009 01:06 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
Put this file in the theme folder you are using - Edit it to suit whatever you want to add or remove.
Note: You will no doubt need to change all the old block vars to the new constants used in IP1.3
These for example:
<!-- BEGIN mg_switch_user_is_admin -->
<!-- BEGIN switch_user_logged_in -->
Etc, etc.
elpulgas [ Sat 29 Aug, 2009 14:41 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
closed i would say
this is a view

Ok then I shall try the login tab with that and let you know if that works. Although probably you have a cookie stored?
I'll also check Lppalong's file and try that code. He needs it for dyn menu so that would have to be applied to the block.
grafnap [ Sat 29 Aug, 2009 15:38 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
Thank you so much lopalong, and thanx to all... but excuse my ignorance i still need a little help here...
ok, I am assuming the nav_quick_links.tpl is also for the dynamic menus, (since i am not using the nav menu) ok...
now, to change these variables...
my menus are for everybody ... not just registered user ... and there is nothing for admin either, so ...
i tried to figure out which variable to change it to... only thing i saw was this one:
<!-- BEGIN switch_upi2db_on -->
is this the variable for everybody? should i change all the other variables to this one?
(after reading elpugas, i am so totally lost, lol)
spydie [ Sat 29 Aug, 2009 15:42 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
Nope
that variable has got to do with showing in Header only NEW or show NEW- U-R etc.
That you can change in ACP
Ok then I shall try the login tab with that and let you know if that works. Although probably you have a cookie stored?
Don´t think so. since i´ve cleaned my FF cache a few day´s ago. And i haven´t been to your site in ages
elpulgas [ Sat 29 Aug, 2009 16:48 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
Thank you so much lopalong, and thanx to all... but excuse my ignorance i still need a little help here...
ok, I am assuming the nav_quick_links.tpl is also for the dynamic menus, (since i am not using the nav menu) ok...
now, to change these variables...
my menus are for everybody ... not just registered user ... and there is nothing for admin either, so ...
i tried to figure out which variable to change it to... only thing i saw was this one:
<!-- BEGIN switch_upi2db_on -->
is this the variable for everybody? should i change all the other variables to this one?
(after reading elpugas, i am so totally lost, lol)
LOL I'm sorry I confused you
But you don't have to edit nav_quick_links.tpl if you are using dyn menu. To edit that menu you need a file called dyn_menu.tpl that is inside a folder called blocks. That folder is inside the template's folder or in the default folder. If you don't use the UPI2DB feature then don't worry too much about it.
Nope
that variable has got to do with showing in Header only NEW or show NEW- U-R etc.
That you can change in ACP
Ok then I shall try the login tab with that and let you know if that works. Although probably you have a cookie stored?
Don´t think so. since i´ve cleaned my FF cache a few day´s ago. And i haven´t been to your site in ages
Well then it might be true and they somehow are closed by default. I'll look into it later.
EDIT and most importantly:solution:
Well I've been looking into the code and the JavaScript seems to be the same overall. However I think I may know what the difference is
This code is part of the nav_quick_links.tpl of icy_phoenix templates:
<div id="main_links2" class="nav-menu">
<table class="forumline-no2" width="100%" cellspacing="0" cellpadding="2" border="0">
<!-- IF S_ADMIN -->
<tr>
<td align="left" width="8">{IMG_NAV_MENU_SEP}</td>
<td class="genmed" align="left">{U_ACP}</td>
</tr>
...
And this is the equivalent for KnekZ
<div id="main_links2" style="display:none;position:relative;padding-top:0px;padding-bottom:0px;" class="sidenav_child">
<ul> <!-- IF S_ADMIN -->
<li>{U_ACP}</li>
<li><a href="{U_CMS}">{L_CMS}</a></li>
...
As you can see the div that holds the menu category has display="none" on it. I think that solves it. But you must include it like that because if you were to give the class sidenav child the property of hidden your menu wouldn't work at all.
Resumed:
Change the categories to "<div id="main_links2" class="nav-menu" style="display:none;">" and you're done
grafnap [ Sat 29 Aug, 2009 19:23 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
thanx for the solution elpulgas, but again i am kinda new to all this, so please a little bitty more help,
here is my whole dyn_menu_block.tpl ... please if u can tell me where and what would i change to keep categories closed in menu as default for ALL
<!-- BEGIN style_select_on -->
<script type="text/javascript">
function SetTheme_{MAIN_MENU_ID}()
{
document.ChangeTheme_{MAIN_MENU_ID}.submit();
return true;
}
</script>
<!-- END style_select_on -->
<!-- BEGIN show_hide_switch -->
<script type="text/javascript">
<!--
tmp = 'quick_links';
if(GetCookie(tmp) == '2')
{
ShowHide('quick_links', 'quick_links2', 'quick_links');
setWidth('var_width', 16);
//setWidth('full_width', '100%');
}
//-->
</script>
<!-- END show_hide_switch -->
{IMG_THL}{IMG_THC}
<!-- BEGIN show_hide_switch -->
<img class="max-min-right" style="{SHOW_HIDE_PADDING}" src="{IMG_MINIMISE}" onclick="ShowHide('quick_links', 'quick_links2', 'quick_links'); setWidth('var_width',16); setWidth('full_width', '100%');" alt="{L_HIDE}" />
<!-- END show_hide_switch -->
<span class="forumlink">{MAIN_MENU_NAME}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<!-- IF NAV_MENU_ADS_TOP -->
<tr>
<th style="cursor: pointer;" align="left">
<img src="{IMG_NAV_MENU_SPONSOR}" alt="{L_SPONSORS_LINKS}" title="{L_SPONSORS_LINKS}" />
<a href="#" title="{L_SPONSORS_LINKS}" class="nav-menu-link"><b>{L_SPONSORS_LINKS}</b></a>
</th>
</tr>
<tr><td class="row1">{NAV_MENU_ADS_TOP}</td></tr>
<!-- ENDIF -->
<!-- BEGIN cat_row -->
<tr>
<th style="cursor: pointer;" align="left" onclick="ShowHide('menu_cat_{cat_row.CAT_ID}', 'menu_cat_{cat_row.CAT_ID}_h', 'menu_cat_{cat_row.CAT_ID}');">
{cat_row.CAT_ICON}<a href="#" onclick="return false;" title="{cat_row.CAT_ITEM}" class="nav-menu-link"><b>{cat_row.CAT_ITEM}</b></a>
</th>
</tr>
<tr>
<td>
<div id="menu_cat_{cat_row.CAT_ID}_h" class="nav-menu">
<div class="nav-div" style="padding: 2px;">
<!-- BEGIN menu_row -->
{cat_row.menu_row.MENU_URL}
<!-- END menu_row -->
</div>
</div>
<div id="menu_cat_{cat_row.CAT_ID}" class="js-sh-box">
<script type="text/javascript">
<!--
tmp = 'menu_cat_{cat_row.CAT_ID}';
if(GetCookie(tmp) == '2')
{
ShowHide('menu_cat_{cat_row.CAT_ID}', 'menu_cat_{cat_row.CAT_ID}_h', 'menu_cat_{cat_row.CAT_ID}');
}
//-->
</script>
</div>
</td>
</tr>
<!-- END cat_row -->
<!-- IF NAV_MENU_ADS_BOTTOM -->
<tr>
<th style="cursor: pointer;" align="left">
<img src="{IMG_NAV_MENU_SPONSOR}" alt="{L_SPONSORS_LINKS}" title="{L_SPONSORS_LINKS}" />
<a href="#" title="{L_SPONSORS_LINKS}" class="nav-menu-link"><b>{L_SPONSORS_LINKS}</b></a>
</th>
</tr>
<tr><td class="row1">{NAV_MENU_ADS_BOTTOM}</td></tr>
<!-- ENDIF -->
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
elpulgas [ Sat 29 Aug, 2009 20:09 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
thanx for the solution elpulgas, but again i am kinda new to all this, so please a little bitty more help,
here is my whole dyn_menu_block.tpl ... please if u can tell me where and what would i change to keep categories closed in menu as default for ALL
<!-- BEGIN style_select_on -->
<script type="text/javascript">
function SetTheme_{MAIN_MENU_ID}()
{
document.ChangeTheme_{MAIN_MENU_ID}.submit();
return true;
}
</script>
<!-- END style_select_on -->
<!-- BEGIN show_hide_switch -->
<script type="text/javascript">
<!--
tmp = 'quick_links';
if(GetCookie(tmp) == '2')
{
ShowHide('quick_links', 'quick_links2', 'quick_links');
setWidth('var_width', 16);
//setWidth('full_width', '100%');
}
//-->
</script>
<!-- END show_hide_switch -->
{IMG_THL}{IMG_THC}
<!-- BEGIN show_hide_switch -->
<img class="max-min-right" style="{SHOW_HIDE_PADDING}" src="{IMG_MINIMISE}" onclick="ShowHide('quick_links', 'quick_links2', 'quick_links'); setWidth('var_width',16); setWidth('full_width', '100%');" alt="{L_HIDE}" />
<!-- END show_hide_switch -->
<span class="forumlink">{MAIN_MENU_NAME}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<!-- IF NAV_MENU_ADS_TOP -->
<tr>
<th style="cursor: pointer;" align="left">
<img src="{IMG_NAV_MENU_SPONSOR}" alt="{L_SPONSORS_LINKS}" title="{L_SPONSORS_LINKS}" />
<a href="#" title="{L_SPONSORS_LINKS}" class="nav-menu-link"><b>{L_SPONSORS_LINKS}</b></a>
</th>
</tr>
<tr><td class="row1">{NAV_MENU_ADS_TOP}</td></tr>
<!-- ENDIF -->
<!-- BEGIN cat_row -->
<tr>
<th style="cursor: pointer;" align="left" onclick="ShowHide('menu_cat_{cat_row.CAT_ID}', 'menu_cat_{cat_row.CAT_ID}_h', 'menu_cat_{cat_row.CAT_ID}');">
{cat_row.CAT_ICON}<a href="#" onclick="return false;" title="{cat_row.CAT_ITEM}" class="nav-menu-link"><b>{cat_row.CAT_ITEM}</b></a>
</th>
</tr>
<tr>
<td>
<div id="menu_cat_{cat_row.CAT_ID}_h" class="nav-menu">
<div class="nav-div" style="padding: 2px;">
<!-- BEGIN menu_row -->
{cat_row.menu_row.MENU_URL}
<!-- END menu_row -->
</div>
</div>
<div id="menu_cat_{cat_row.CAT_ID}" class="js-sh-box">
<script type="text/javascript">
<!--
tmp = 'menu_cat_{cat_row.CAT_ID}';
if(GetCookie(tmp) == '2')
{
ShowHide('menu_cat_{cat_row.CAT_ID}', 'menu_cat_{cat_row.CAT_ID}_h', 'menu_cat_{cat_row.CAT_ID}');
}
//-->
</script>
</div>
</td>
</tr>
<!-- END cat_row -->
<!-- IF NAV_MENU_ADS_BOTTOM -->
<tr>
<th style="cursor: pointer;" align="left">
<img src="{IMG_NAV_MENU_SPONSOR}" alt="{L_SPONSORS_LINKS}" title="{L_SPONSORS_LINKS}" />
<a href="#" title="{L_SPONSORS_LINKS}" class="nav-menu-link"><b>{L_SPONSORS_LINKS}</b></a>
</th>
</tr>
<tr><td class="row1">{NAV_MENU_ADS_BOTTOM}</td></tr>
<!-- ENDIF -->
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
OK no problem:
<!-- BEGIN style_select_on -->
<script type="text/javascript">
function SetTheme_{MAIN_MENU_ID}()
{
document.ChangeTheme_{MAIN_MENU_ID}.submit();
return true;
}
</script>
<!-- END style_select_on -->
<!-- BEGIN show_hide_switch -->
<script type="text/javascript">
<!--
tmp = 'quick_links';
if(GetCookie(tmp) == '2')
{
ShowHide('quick_links', 'quick_links2', 'quick_links');
setWidth('var_width', 16);
//setWidth('full_width', '100%');
}
//-->
</script>
<!-- END show_hide_switch -->
{IMG_THL}{IMG_THC}
<!-- BEGIN show_hide_switch -->
<img class="max-min-right" style="{SHOW_HIDE_PADDING}" src="{IMG_MINIMISE}" onclick="ShowHide('quick_links', 'quick_links2', 'quick_links'); setWidth('var_width',16); setWidth('full_width', '100%');" alt="{L_HIDE}" />
<!-- END show_hide_switch -->
<span class="forumlink">{MAIN_MENU_NAME}</span>{IMG_THR}<table class="forumlinenb" width="100%" cellspacing="0" cellpadding="0">
<!-- IF NAV_MENU_ADS_TOP -->
<tr>
<th style="cursor: pointer;" align="left">
<img src="{IMG_NAV_MENU_SPONSOR}" alt="{L_SPONSORS_LINKS}" title="{L_SPONSORS_LINKS}" />
<a href="#" title="{L_SPONSORS_LINKS}" class="nav-menu-link"><b>{L_SPONSORS_LINKS}</b></a>
</th>
</tr>
<tr><td class="row1">{NAV_MENU_ADS_TOP}</td></tr>
<!-- ENDIF -->
<!-- BEGIN cat_row -->
<tr>
<th style="cursor: pointer;" align="left" onclick="ShowHide('menu_cat_{cat_row.CAT_ID}', 'menu_cat_{cat_row.CAT_ID}_h', 'menu_cat_{cat_row.CAT_ID}');">
{cat_row.CAT_ICON}<a href="#" onclick="return false;" title="{cat_row.CAT_ITEM}" class="nav-menu-link"><b>{cat_row.CAT_ITEM}</b></a>
</th>
</tr>
<tr>
<td>
<div id="menu_cat_{cat_row.CAT_ID}_h" class="nav-menu" style="display:none;">
<div class="nav-div" style="padding: 2px;">
<!-- BEGIN menu_row -->
{cat_row.menu_row.MENU_URL}
<!-- END menu_row -->
</div>
</div>
<div id="menu_cat_{cat_row.CAT_ID}" class="js-sh-box">
<script type="text/javascript">
<!--
tmp = 'menu_cat_{cat_row.CAT_ID}';
if(GetCookie(tmp) == '2')
{
ShowHide('menu_cat_{cat_row.CAT_ID}', 'menu_cat_{cat_row.CAT_ID}_h', 'menu_cat_{cat_row.CAT_ID}');
}
//-->
</script>
</div>
</td>
</tr>
<!-- END cat_row -->
<!-- IF NAV_MENU_ADS_BOTTOM -->
<tr>
<th style="cursor: pointer;" align="left">
<img src="{IMG_NAV_MENU_SPONSOR}" alt="{L_SPONSORS_LINKS}" title="{L_SPONSORS_LINKS}" />
<a href="#" title="{L_SPONSORS_LINKS}" class="nav-menu-link"><b>{L_SPONSORS_LINKS}</b></a>
</th>
</tr>
<tr><td class="row1">{NAV_MENU_ADS_BOTTOM}</td></tr>
<!-- ENDIF -->
</table>{IMG_TFL}{IMG_TFC}{IMG_TFR}
I think that's about it

grafnap [ Sat 29 Aug, 2009 21:01 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
yessssssss ... so far that i see, it seems perfect, they are closed in both firefox and IE
thanx so so so much ... kissies to you (not to make your woman jelous tho, lol)

DWho [ Sat 29 Aug, 2009 23:16 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
Thanks for the fix...
very handy..

elpulgas [ Sat 29 Aug, 2009 23:36 ]
Post subject: Re: Closed Dyn Menu Categories - Links?
yessssssss ... so far that i see, it seems perfect, they are closed in both firefox and IE
thanx so so so much ... kissies to you (not to make your woman jelous tho, lol)

Jajaja...
De Nada
Thanks for the fix...
very handy..

You're welcome
