Icy Phoenix

     
 


Post new topic  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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:
menu_1181913210_719839
 




____________
Omarska online
 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Dynamic Menu (again) 
 
There is a switch inside ACP for this
Check ACP->Configuration->Icy Phoenix
 




____________
? Zuker - EDDB - LPM - Sharefields
 
ZukerSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 




____________
Omarska online
 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Style and Language dyn_menu_block.tpl 
 
Hi

Style and Language in dyn_block

OPEN templates/xxxx/blocks/dyn_menu_block.tpl
FIND
Code: [Download] [Hide] [Select]
    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
Code: [Download] [Hide] [Select]
<!-- 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}" />&nbsp;
                <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}" />&nbsp;
                <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
 



 
pepiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 




____________
Omarska online
 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Dynamic Menu (again) 
 
omarska wrote: [View Post]
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
 



 
justinSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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

nav_quick_links.rar
Description: This is my nav_quick_links.tpl 
Download
Filename: nav_quick_links.rar
Filesize: 1.16 KB
Downloaded: 197 Time(s)

 



 
pepiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 




____________
Omarska online
 
omarskaSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Dynamic Menu (again) 
 
A  style block ...

http://www.icyphoenix.it/viewtopic.php?t=120
 



 
seldon1965Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Dynamic Menu (again) 
 
seldon1965 wrote: [View Post]
A  style block ...

http://www.icyphoenix.it/viewtopic.php?t=120


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
 



 
justinSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Dynamic Menu (again) 
 
justin wrote: [View Post]
seldon1965 wrote: [View Post]
A  style block ...

http://www.icyphoenix.it/viewtopic.php?t=120


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
 



 
pepiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Dynamic Menu (again) 
 
Openlang_cms.php su language/lang_english (
search:
Code: [Download] [Hide] [Select]
$lang['cms_block_xs_news'] = 'News XS';


add after:

Code: [Download] [Hide] [Select]
$lang['cms_block_style'] = 'Style';


openl ang_blocks.php
search:

Code: [Download] [Hide] [Select]
$lang['Title_wordgraph'] = 'Wordgraph';


add after:

Code: [Download] [Hide] [Select]
$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

style block.rar
Description:  
Download
Filename: style block.rar
Filesize: 1.43 KB
Downloaded: 161 Time(s)

 



 
seldon1965Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Dynamic Menu (again) 
 
THANKS !!
 



 
pepiSend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
Post new topic  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
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