Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 1 of 1
 
 
Reply with quote Download Post 
Post RC2 Help Please - Dynamic Header Menus 
 
Hi Guys,

Can someone help here, i want to have the menu at the top of the page just below the banner to change depending on what page ( or section ) of the site i am on.

EG while in forum it may read:-


Home * Section A * section B * etc


and in knowledge base read something like


Home * Places to visit * Things to see * etc


I am using RC2,

can anyone help me ?
 



 
AndyGpySend 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: RC2 Help Please - Dynamic Header Menus 
 
You would need to make as many copies of this for the locations that you want to use them in, and change all the links and names for each "Location".

Code: [Download] [Hide] [Select]
        <a href="{FULL_SITE_PATH}{U_PORTAL}">{L_HOME}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- BEGIN switch_upi2db_off -->
        <a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- END switch_upi2db_off -->
        <!-- BEGIN switch_upi2db_on -->
        <span style="vertical-align:top;">{L_POSTS}:&nbsp;</span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_U}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_M}<span style="vertical-align:top;">&nbsp;•&nbsp;</span>{L_DISPLAY_P}&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- END switch_upi2db_on -->
        <!-- IF S_LOGGED_IN -->
        <a href="{FULL_SITE_PATH}{U_PROFILE}">{L_PROFILE}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- ENDIF -->
        <!-- IF S_HEADER_DROPDOWN -->
        <a href="{FULL_SITE_PATH}{U_SEARCH}" onmouseover="dropdownmenu(this,event,menu1,'250px')" onmouseout="delayhidemenu()">{L_SEARCH}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- ELSE -->
        <a href="{FULL_SITE_PATH}{U_SEARCH}">{L_SEARCH}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- ENDIF -->
        <a href="{FULL_SITE_PATH}{U_FAQ}">{L_FAQ}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- IF not S_LOGGED_IN -->
        <a href="{FULL_SITE_PATH}{U_REGISTER}">{L_REGISTER}</a>&nbsp;&nbsp;<img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />&nbsp;
        <!-- ENDIF -->
        <a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT2}</a>



Paste all of the "New" NAV links menus to the overall_header.tpl (One after the other, and before the default) and then give them all a .php "location" plus if and else if arguments to use specific Nav-Links Menus for various locations, and default back to the original for all other non-specific locations.

Actually it's quite easy once you know exactly what anchors you want, and create the Nav menus for the links go with each location first.

So, if you want five menus, you will need five .php arguments to separate them.

Best of luck!
 
 
 
Back to topPage bottom
Reply with quote Download Post 
Post Re: RC2 Help Please - Dynamic Header Menus 
 
Just seen the jet flying past at 3000 miles per hour, soz lopalong you lost me.

Can you perhaps give a demo of a navlink , .php file and how they relate to each other ?

remember i am not a PHP wizz kid like you LOL

regards
 



 
AndyGpySend private messageVisit poster's website  
Back to topPage bottom
Reply with quote Download Post 
Post Re: RC2 Help Please - Dynamic Header Menus 
 
h**p://icyphoenix.com/viewtopic.php?p=37770#p37770
 
 
 
Back to topPage bottom
Post new topic  Reply to topic  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


  

 

  cron