Ich habe mir bei mir im Forum eine Tab-Navigation gebastelt. Soweit funktioniert auch alles einwandfrei, ausgenommen ich bin auf der Download-Übersichts Seite und möchte dann zum phpBB Statistics Mod wechseln. Da wird mir dann immer die Statistik-Übersicht der Download Mod angezeigt.
Code: Alles auswählen
<div id="tabs">
<ul class="rightside">
<!-- IF U_PORTAL -->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == '/portal.php' --> class="activetab"<!-- ENDIF -->><a href="{U_PORTAL}"><span>{L_PORTAL}</span></a></li>
<!-- ENDIF -->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == '/index.php' or $_SERVER['SCRIPT_NAME'] == '/viewforum.php' or $_SERVER['SCRIPT_NAME'] == '/viewtopic.php' or $_SERVER['SCRIPT_NAME'] == '/posting.php' or $_SERVER['SCRIPT_NAME'] == '/mcp.php' --> class="activetab"<!-- ENDIF -->><a href="{U_INDEX}"><span>{L_FORUM}</span></a></li>
<li<!-- IF $_SERVER['SCRIPT_NAME'] == '/gallery/index.php' or $_SERVER['SCRIPT_NAME'] == '/gallery/album.php' or $_SERVER['SCRIPT_NAME'] == '/gallery/image_page.php' or $_SERVER['SCRIPT_NAME'] == '/gallery/posting.php' or $_SERVER['SCRIPT_NAME'] == '/gallery/mcp.php' or $_SERVER['SCRIPT_NAME'] == '/gallery/search.php' --> class="activetab"<!-- ENDIF -->><a href="{U_GALLERY_MOD}"><span>{L_GALLERY}</span></a></li>
<!-- IF S_SHOW_DL_LINK -->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == "/downloads.php" --> class="activetab"<!-- ENDIF -->><a href="{U_DOWNLOADS}"><span>{L_DOWNLOADS}</span></a></li>
<!-- ENDIF -->
<!-- IF S_MOD_DISPLAY-->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == "/modsdb.php" --> class="activetab"<!-- ENDIF -->><a href="{U_MODS_DB}"><span>{L_MODS_DB}</span></a></li>
<!-- ENDIF -->
<!-- IF S_CONTACT_ENABLED and not S_USER_LOGGED_IN -->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == "/contact.php" --> class="activetab"<!-- ENDIF -->><a href="{U_CONTACT}"><span>{L_CONTACT_BOARD_ADMIN_SHORT}</span></a></li>
<!-- ENDIF -->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == "/guestbook.php" --> class="activetab"<!-- ENDIF -->><a href="{U_GUESTBOOK}"><span>{L_GUESTBOOK}</span></a></li>
<!-- IF S_VIEW_STATS -->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == "/stats.php" --> class="activetab"<!-- ENDIF -->><a href="{U_STATS}"><span>{L_STATS}</span></a></li>
<!-- ENDIF -->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == "/faq.php" --> class="activetab"<!-- ENDIF -->><a href="{U_FAQ}"><span>{L_FAQ}</span></a></li>
<!-- IF S_DISPLAY_SEARCH -->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == "/search.php" --> class="activetab"<!-- ENDIF -->><a href="{U_SEARCH}"><span>{L_SEARCH}</span> {S_SEARCH_HIDDEN_FIELDS}</a></li>
<!-- ENDIF -->
<!-- IF not S_IS_BOT -->
<!-- IF S_DISPLAY_MEMBERLIST --><li<!-- IF $_SERVER['SCRIPT_NAME'] == "/memberlist.php" --> class="activetab"<!-- ENDIF -->><a href="{U_MEMBERLIST}"><span>{L_MEMBERLIST}</span></a></li><!-- ENDIF -->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == "/impressum.php" --> class="activetab"<!-- ENDIF -->><a href="{U_IMPRESSUM}"><span>{L_IMPRESSUM_TITLE}</span></a></li>
<!-- IF not S_USER_LOGGED_IN and S_REGISTER_ENABLED --><li<!-- IF $_SERVER['SCRIPT_NAME'] == "/ucp.php" --> class="activetab"<!-- ENDIF -->><a href="{U_REGISTER}">{L_REGISTER}</a></li><!-- ENDIF -->
<li<!-- IF $_SERVER['SCRIPT_NAME'] == "/ucp.php" --> class="activetab"<!-- ENDIF -->><a href="{U_LOGIN_LOGOUT}"><span>{L_LOGIN_LOGOUT}</span></a></li>
<!-- ENDIF -->
</ul>
</div>
lg,
Wile