|
Page 1 of 1
|
omarska 
Joined: March 2007
Posts: 129
Location:
|
 Dynamic Menu (again)
Hi all!
How it is possible to add Style selection to dynamic menu like here on Icy Phoenix? I'm aware that for nav_quick_links.tpl there is a option in ACP that shows this selection, but I don't know how to add it to dynamic menu. Do you use nav_quick_links.tpl or dyn menu here on Icy Phoenix?
This is what I want to achieve:
|
#1 Fri 15 Jun, 2007 15:20 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
Zuker 
Joined: August 2006
Posts: 2134
Location:  BA
|
 Re: Dynamic Menu (again)
There is a switch inside ACP for this
Check ACP->Configuration->Icy Phoenix
____________ ? Zuker - EDDB - LPM - Sharefields
|
#2 Fri 15 Jun, 2007 20:48 |
|
omarska 
Joined: March 2007
Posts: 129
Location:
|
 Re: Dynamic Menu (again)
Hi Zuker.
I know about that switch, but it only adds style selection to menus created with nav_quick_links.tpl (nav links block). What I want is to add style selection section to dynamic menu, which is created with CMS (dyn menu block).
That's why I asked how is Main Menu created here on Icy Phoenix - nav links block or dyn menu block, because there IS style selection here.
Hope I made a problem more clear now
Thanx
|
#3 Fri 15 Jun, 2007 21:14 |
|
pepi
Joined: September 2006
Posts: 245
Location:
|
 Style and Language dyn_menu_block.tpl
Hi
Style and Language in dyn_block
OPEN templates/xxxx/blocks/dyn_menu_block.tpl
FIND
ShowHide('menu_cat_{cat_row.CAT_ID}','menu_cat_{cat_row.CAT_ID}_2','menu_cat_{cat_row.CAT_ID}');
}
//-->
</script>
</div>
</td>
</tr>
<!-- END cat_row -->
AFTER ADD
<!-- BEGIN style_select_on -->
<tr>
<th style="cursor:pointer;cursor:hand;" align="left" onclick="ShowHide('style_select','style_select2','style_select');">
<img src="{IMG_NAV_MENU_PALETTE}" alt="{L_SELECT_STYLE}" title="{L_SELECT_STYLE}" />
<a href="javascript:void(0);" title="{L_SELECT_STYLE}" style="vertical-align: top;"><b>{L_SELECT_STYLE}</b></a>
</th>
</tr>
<tr>
<td class="row5">
<div id="style_select2" style="display: none; position: relative; padding-top: 0px; padding-bottom: 0px;">
<table class="forumline-no2" width="100%" cellspacing="0" cellpadding="2" border="0">
<tr>
<td class="genmed" align="center">{STYLE_SELECT_H}</td>
</tr>
</table>
</div>
<div id="style_select" style="display: ''; position: relative;">
<script language="javascript" type="text/javascript">
<!--
tmp = 'style_select';
if(GetCookie(tmp) == '2')
{
ShowHide('style_select','style_select2','style_select');
}
//-->
</script>
</div>
</td>
</tr>
<!-- END style_select_on -->
<!-- BEGIN lang_select_on -->
<tr>
<th style="cursor:pointer;cursor:hand;" align="left" onclick="ShowHide('lang_select','lang_select2','lang_select');">
<img src="{IMG_NAV_MENU_WORLD}" alt="{L_SELECT_LANG}" title="{L_SELECT_LANG}" />
<a href="javascript:void(0);" title="{L_SELECT_LANG}" style="vertical-align: top;"><b>{L_SELECT_LANG}</b></a>
</th>
</tr>
<tr>
<td class="row5">
<div id="lang_select2" style="display: none; position: relative; padding-top: 0px; padding-bottom: 0px;">
<table class="forumline-no2" width="100%" cellspacing="0" cellpadding="2" border="0">
<!-- BEGIN lang_select -->
<tr>
<td width="8" align="left" valign="middle"><img src="{lang_select_on.lang_select.LANG_FLAG}" alt="{lang_select_on.lang_select.LANG_NAME}" /></td>
<td class="genmed" align="left"><a href="{lang_select_on.lang_select.U_LANG_CHANGE}">{lang_select_on.lang_select.LANG_NAME}</a>
</td>
</tr>
<!-- END lang_select -->
</table>
</div>
<div id="lang_select" style="display: ''; position: relative;">
<script language="javascript" type="text/javascript">
<!--
tmp = 'lang_select';
if(GetCookie(tmp) == '2')
{
ShowHide('lang_select','lang_select2','lang_select');
}
//-->
</script>
</div>
</td>
</tr>
<!-- END lang_select_on -->
enable navlinks, but no testet i am not sure thats work
Pepi
|
#4 Fri 15 Jun, 2007 21:43 |
|
omarska 
Joined: March 2007
Posts: 129
Location:
|
 Re: Dynamic Menu (again)
Hi pepi.
Yes , your solution was partially success. Style menu section is now correctly displayed on menu, there is a dropdown list with all available styles listed. But when some style is selected from list, , nothing happens, style doesn't change. Any idea what could be tweaked a little in your code?
Thanx
|
#5 Sat 16 Jun, 2007 00:13 |
|
justin 
Joined: June 2007
Posts: 15
|
 Re: Dynamic Menu (again)
Hi pepi.
Yes , your solution was partially success. Style menu section is now correctly displayed on menu, there is a dropdown list with all available styles listed. But when some style is selected from list, , nothing happens, style doesn't change. Any idea what could be tweaked a little in your code?
Thanx
Yes i also tested it to,
Same problem here, I hope u help us
|
#6 Sat 16 Jun, 2007 19:24 |
|
pepi
Joined: September 2006
Posts: 245
Location:
|
 Re: Dynamic Menu (again)
Oh i have also teste does not work ....... and i have no idea why
I have delete all links except Style and language in nav_quick_links.tpl
see one my Page
this is the only what i can do this moment
Description: |
This is my nav_quick_links.tpl |
 Download |
Filename: |
nav_quick_links.rar |
Filesize: |
1.16 KB |
Downloaded: |
197 Time(s) |
|
#7 Sat 16 Jun, 2007 20:56 |
|
omarska 
Joined: March 2007
Posts: 129
Location:
|
 Re: Dynamic Menu (again)
I cant' use this solution because nav_quick_links.tpl is my forum menu (global block), so by editing this file, i would break it. However, I think I'll create new block with your code in it, and add it to main page.
Thanx for idea, pepi, nice thinking
|
#8 Sat 16 Jun, 2007 21:53 |
|
seldon1965
Joined: January 2007
Posts: 17
|
 Re: Dynamic Menu (again)
|
#9 Sun 17 Jun, 2007 01:18 |
|
justin 
Joined: June 2007
Posts: 15
|
 Re: Dynamic Menu (again)
How can i create a new block where i can put the style in??? I cant read italian  so if u could translate it to english..
edit*
Never mind already found it and it works for me to
|
#10 Thu 21 Jun, 2007 22:54 |
|
pepi
Joined: September 2006
Posts: 245
Location:
|
 Re: Dynamic Menu (again)
How can i create a new block where i can put the style in??? I cant read italian  so if u could translate it to english..
edit*
Never mind already found it and it works for me to 
Hi
nice for you
tell us also how its works
Pepi
|
#11 Fri 22 Jun, 2007 00:59 |
|
seldon1965
Joined: January 2007
Posts: 17
|
 Re: Dynamic Menu (again)
Openlang_cms.php su language/lang_english (
search:
$lang['cms_block_xs_news'] = 'News XS';
add after:
$lang['cms_block_style'] = 'Style';
openl ang_blocks.php
search:
$lang['Title_wordgraph'] = 'Wordgraph';
add after:
$lang['Title_style'] = 'Style';
Upload style_block.tpl in /templates/mg_themes/blocks
Upload blocks_imp_style.php in /blocks
Use CMS functions to add the block Style
Description: |
|
 Download |
Filename: |
style block.rar |
Filesize: |
1.43 KB |
Downloaded: |
161 Time(s) |
|
#12 Fri 22 Jun, 2007 11:01 |
|
pepi
Joined: September 2006
Posts: 245
Location:
|
 Re: Dynamic Menu (again)
THANKS !!
|
#13 Fri 22 Jun, 2007 13:31 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Dynamic Menu (again)
It will be included as default in next version.
Thanks Seldon.
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#14 Wed 27 Jun, 2007 01:45 |
|
|
Page 1 of 1
|
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
|
|
|
|