Articles index » phpBB 3.0 » [prosilver] Menu from tabs

[prosilver] Menu from tabs

How to add a nice menu to prosilver based styles.

Submitted by Kamahl on 02 Jun 2008, 13:20

This code adds a new nice menu from tabs to prosilver based styles.

Screen: Image

Open : styles/prosilver/template/overall_header.html

Find :
Code: Select all
<div class="navbar">



Add before :
Code: Select all
<div id="tabs">
       <ul>
          <li<!-- IF SCRIPT_NAME == 'index' or SCRIPT_NAME == 'viewforum' or SCRIPT_NAME == 'viewtopic' --> class="activetab"<!-- ENDIF -->><a href="{U_INDEX}"><span>{L_INDEX}</span></a></li>
          <!-- IF S_DISPLAY_SEARCH --><li<!-- IF SCRIPT_NAME == 'search' --> class="activetab"<!-- ENDIF -->><a href="{U_SEARCH}" title="{L_SEARCH_ADV_EXPLAIN}"><span>{L_SEARCH}</span></a></li><!-- ENDIF -->
          <!-- IF S_DISPLAY_MEMBERLIST --><li<!-- IF SCRIPT_NAME == 'memberlist' --> class="activetab"<!-- ENDIF -->><a href="{U_MEMBERLIST}" title="{L_MEMBERLIST_EXPLAIN}"><span>{L_MEMBERLIST}</span></a></li><!-- ENDIF -->
          <li<!-- IF SCRIPT_NAME == 'faq' --> class="activetab"<!-- ENDIF -->><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}"><span>{L_FAQ}</span></a></li>
       </ul>
</div>


These are only basic links. You can also add your own tabs.
 

Changelog:

by RBCP on 22 Jun 2008, 19:08: Fixed typo in last line. Thanks Liammac.
by Mr. Bond on 02 Jul 2009, 02:51: Use the SCRIPT_NAME variable.

License:

All articles in the knowledge base are licensed under the phpbbmodders beerware-nc license.

Back to category


Articles index » phpBB 3.0 » [prosilver] Menu from tabs