|
Page 2 of 2
|
elpulgas
Joined: June 2009
Posts: 106
Location:
|
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.
____________ KnekZ
* html body {display:none;}
|
#16 Sat 29 Aug, 2009 14:41 |
|
Sponsors
|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
grafnap
Joined: July 2009
Posts: 31
Location:
|
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)
|
#17 Sat 29 Aug, 2009 15:38 |
|
spydie
Joined: December 2008
Posts: 1796
Location: In the Boxes
|
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
____________ Out of Order
|
#18 Sat 29 Aug, 2009 15:42 |
|
elpulgas
Joined: June 2009
Posts: 106
Location:
|
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
____________ KnekZ
* html body {display:none;}
|
#19 Sat 29 Aug, 2009 16:48 |
|
grafnap
Joined: July 2009
Posts: 31
Location:
|
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}
|
#20 Sat 29 Aug, 2009 19:23 |
|
elpulgas
Joined: June 2009
Posts: 106
Location:
|
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
____________ KnekZ
* html body {display:none;}
|
#21 Sat 29 Aug, 2009 20:09 |
|
grafnap
Joined: July 2009
Posts: 31
Location:
|
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)
|
#22 Sat 29 Aug, 2009 21:01 |
|
DWho
Joined: August 2006
Posts: 1307
Location: hampshire
|
Re: Closed Dyn Menu Categories - Links?
Thanks for the fix...
very handy..
____________ Mods and themes for Icy Phoenix 1.3
IcyPhoenix UK is off-line permanently due to lack of time to update mods.
if anyone is interested in my templates I will upgrade them to Icy 2.0.
|
#23 Sat 29 Aug, 2009 23:16 |
|
elpulgas
Joined: June 2009
Posts: 106
Location:
|
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
____________ KnekZ
* html body {display:none;}
|
#24 Sat 29 Aug, 2009 23:36 |
|
|
Page 2 of 2
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|