php - enable active/current state on forum menu/nav -
the current issue @ hand enabling current/active state on forum menu..enabling active/current state on forum css wont trick...my basic understanding of is...create php ,jquery script pulls page id...and nail down jquery..which i'm not sure how do..any ideas?
using phpbb3 forum template
css
#underlinemenu{ margin: 0; padding: 0; height:80px; font-size:14px; background-color:#f6f6f6; } #underlinemenu ul{ margin: 0; margin-bottom: 1em; padding-left: 0; float: right; font-weight: bold; width: 100%; } * html #underlinemenu ul{ /*ie rule. delete margin-bottom*/ margin-bottom: 0; } #underlinemenu ul li{ display: inline; } #underlinemenu ul li a{ float: right; color: gray; font-weight: bold; padding: 38px 13px 24px 13px; text-decoration: none; background: #f6f6f6 url(images/menudivide.png) top right repeat-y; background: #f6f6f6 url(images/menudivide.png) top left repeat-y; } #underlinemenu ul orphan item bullet a{ color: black; background-color: #f3f3f3; border-top: 4px solid black; padding-top: 34px; } #underlinemenu ul li a:hover{ color: black; background-color:#f6f6f6; border-top: 4px solid black; padding-top: 34px; }
div
<div id="floatmenu"><div id="underlinemenu"> <!-- if s_allow_jmenu --> <ul> <li{u_index_style}><a class="orphan item bullet" href="{u_index}" accesskey="h"><span>{l_index}</span></a></li> <li{u_profile_style}><a class="orphan item bullet" href="{u_profile}" title="{l_profile}" accesskey="u"><span>{l_profile}</span></a></li> <!-- if s_display_pm --><li{u_privatemsgs_style}><a class="orphan item bullet" href="{u_privatemsgs}"><span>{private_message_info}</span></a></li><!-- endif --> <!-- endif --> <li{u_faq_style}><a class="orphan item bullet" href="{u_faq}" title="{l_faq_explain}"><span>{l_faq}</span></a></li> <!-- if not s_is_bot --> <!-- if not s_user_logged_in --><li{u_register_style}><a class="orphan item bullet" href="{u_register}"><span>{l_register}</span></a></li><!-- endif --> <li{u_login_logout_style}><a class="orphan item bullet" href="{u_login_logout}" title="{l_login_logout}" accesskey="l"><span>{l_login_logout}</span></a></li> <!-- endif --> </ul> </div></div> enter code here
problem solved using code
<li<!-- if script_name eq 'faq' --> id="current1" <!-- endif -->><a class="orphan item bullet" href="{u_faq}" title="{l_faq_explain}"><span>{l_faq}</span></a></li>
Comments
Post a Comment