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 ?
RC2 Help Please - Dynamic Header Menus
Subject: 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".
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!
Code: [Download] [Hide] [Select]
<a href="{FULL_SITE_PATH}{U_PORTAL}">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<!-- BEGIN switch_upi2db_on -->
<span style="vertical-align:top;">{L_POSTS}: </span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align:top;"> • </span>{L_DISPLAY_U}<span style="vertical-align:top;"> • </span>{L_DISPLAY_M}<span style="vertical-align:top;"> • </span>{L_DISPLAY_P} <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_on -->
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_PROFILE}">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onmouseover="dropdownmenu(this,event,menu1,'250px')" onmouseout="delayhidemenu()">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_FAQ}">{L_FAQ}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT2}</a>
<a href="{FULL_SITE_PATH}{U_INDEX}">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<!-- BEGIN switch_upi2db_on -->
<span style="vertical-align:top;">{L_POSTS}: </span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align:top;"> • </span>{L_DISPLAY_U}<span style="vertical-align:top;"> • </span>{L_DISPLAY_M}<span style="vertical-align:top;"> • </span>{L_DISPLAY_P} <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_on -->
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_PROFILE}">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onmouseover="dropdownmenu(this,event,menu1,'250px')" onmouseout="delayhidemenu()">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_FAQ}">{L_FAQ}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- 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!
Subject: 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
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
Subject: Re: RC2 Help Please - Dynamic Header Menus
h**p://icyphoenix.com/viewtopic.php?p=37770#p37770
Page 1 of 1
You cannot post new topicsYou 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
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 1.4803s (PHP: 1% SQL: 99%)
SQL queries: 10 - Debug Off - GZIP Enabled