ich habe für mein Board das Solaristheme in eine deutsche Version übersetzt und im Header noch einige Buttons hinzugefügt. Das Solaris ermöglicht eine automatische Auswahl der benötigten Buttons anhand der eingestellten Sprache. Diese Funktion wollte ich nun auch für meine neuen Buttons übernehmen und habe dem entsprechend in der overall_header.tpl meine Ergänzungen gemacht. Dummerweise klappt das ganze nicht und somit werden nur immer die englischen Buttons angezeigt.
Code: Alles auswählen
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/Solaris/{T_HEAD_STYLESHEET}" type="text/css">
<!--
NOTICE
Solaris template, originally custom designed for alternativeSuns forums (http://forum.alternativesuns.com).
Template created by Jakob Persson (http://www.jakob-persson.com), see my website for more free templates
and samples of my work.
This template is in no way associated or affiliated with the film by the same name released in 2002, directed
by Steven Soderbergh and distributed by 20th Century Fox.
No trademark infringement intended. Choice of name solely meant as a tribute to the science-fiction novel
by the same name by author Stanislaw Lem (http://www.cyberiad.info).
This template is publicly available for use with the phpBB forum software (http://www.phpbb.com).
This template is copyright (c) Jakob Persson 2003.
Template ID: EkjAk9vYSF2dpi3LiBJR2Vq8jW9NX9pSYAxMfPGy
Removal or alteration of this notice is strongly prohibited.
-->
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body>
<table width="750" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td valign="top" class="maintable">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50%" valign="top"><a href="{U_INDEX}" class="nav"><img src="templates/Solaris/images/forumlogo.jpg" width="253" height="98" border="0" /></a></td>
<td width="50%" valign="top">
<table border="0" align="right" cellpadding="0" cellspacing="1">
<tr>
<td></td>
<td></td>
<td><img src="templates/Solaris/images/spacer.gif" width="10" height="9" /></td>
</tr>
<tr>
<td><a href="{U_FAQ}" name="topnavurl0"><img src="templates/Solaris/images/lang_english/topimg_faq-e.jpg" alt="{L_FAQ}" name="topnavimg0" border="0" /></a></td>
<td><a href="{U_LOGIN_LOGOUT}" name="topnavurl1"><img src="templates/Solaris/images/lang_english/topimg_login-logout-e" alt="{L_LOGIN_LOGOUT}" name="topnavimg1" border="0" /></a></td>
<td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
</tr>
<tr>
<td><a href="{U_SEARCH}" name="topnavurl2"><img src="templates/Solaris/images/lang_english/topimg_search-e.jpg" width="80" height="15" alt="{L_SEARCH}" name="topnavimg2" border="0" /></a></td>
<td><a href="{U_PROFILE}" name="topnavurl3"><img src="templates/Solaris/images/lang_english/topimg_profile-d.jpg" width="80" height="15" alt="{L_PROFILE}" name="topnavimg3" border="0" /></a></td>
<td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
</tr>
<tr>
<td><a href="{U_MEMBERLIST}" name="topnavurl4"><img src="templates/Solaris/images/lang_english/topimg_members-d.jpg" width="80" height="15" alt="{L_MEMBERLIST}" name="topnavimg4" border="0" /></a></td> <!-- onLoad="this.src=topnavimg_4;" -->
<td><a href="{U_GROUP_CP}" name="topnavurl5"><img src="templates/Solaris/images/lang_english/topimg_groups-e.jpg" width="80" height="15" alt="{L_USERGROUPS}" name="topnavimg5" border="0" /></a></td>
<td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
</tr>
<tr>
<td><a href="{U_ALBUM}" name="topnavurl8"><img src="templates/Solaris/images/lang_english/topimg_album-e.jpg" width="80" height="15" alt="{L_ALBUM}" name="topnavimg8" border="0" /></a></td> <!-- onLoad="this.src=topnavimg_4;" -->
<td><a href="javascript:void(0);" name="topnavurl9" onClick="window.open('{S_JOIN_CHAT}','{CHATSPOT_NAME}','scrollbars=no,resizable=yes,width=640,height=550')"><img src="templates/Solaris/images/lang_english/topimg_chat-e.jpg" width="80" height="15" border="0" alt="Chat" name="topnavimg9" /></a></td>
<td><img src="templates/Solaris/images/spacer.gif" width="10" height="10" /></td>
</tr>
<tr>
<td colspan="2"><a href="{U_PRIVATEMSGS}" name="topnavurl6"><img src="templates/Solaris/images/lang_english/topimg_pms-d.jpg" width="161" height="15" alt="{PRIVATE_MESSAGE_INFO}" name="topnavimg6" border="0" /></a></td>
<td><img src="templates/Solaris/images/spacer.gif" width="10" height="15" /></td>
</tr>
</table>
<script language="Javascript" type="text/javascript">
<!--
//declaring variables and arrays
var privmsg_image_path = "{PRIVMSG_IMG}", current_lang = "";
//extract the current language string
current_lang = privmsg_image_path.match(/lang_[a-z]*/);
if (current_lang != ""){
<!-- BEGIN switch_user_logged_out -->
//assign image paths
document.images["topnavimg0"].src = "templates/Solaris/images/" + current_lang + "/topimg_faq-e.jpg"; //faq
document.images["topnavimg1"].src = "templates/Solaris/images/" + current_lang + "/topimg_login-e.jpg"; //login/logout
document.images["topnavimg2"].src = "templates/Solaris/images/" + current_lang + "/topimg_search-e.jpg"; //search
document.images["topnavimg3"].src = "templates/Solaris/images/" + current_lang + "/topimg_profile-d.jpg"; //profile
document.images["topnavimg4"].src = "templates/Solaris/images/" + current_lang + "/topimg_members-e.jpg"; //memberlist
document.images["topnavimg5"].src = "templates/Solaris/images/" + current_lang + "/topimg_groups-e.jpg"; //usergroups
document.images["topnavimg6"].src = "templates/Solaris/images/" + current_lang + "/topimg_pms-d.jpg"; //private messages/new private messages
document.images["topnavimg7"].src = "templates/Solaris/images/" + current_lang + "/topimg_register-e.jpg"; //register
document.images["topnavimg8"].src = "templates/Solaris/images/" + current_lang + "/topimg_album-e.jpg"; //album
document.images["topnavimg9"].src = "templates/Solaris/images/" + current_lang + "/topimg_chat-e.jpg"; //register
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
//parse strings
loginlogout = "{U_LOGIN_LOGOUT}";
stringIndex = loginlogout.indexOf("amp");
loginlogout2 = loginlogout.slice(0,stringIndex);
loginlogout2 += loginlogout.slice(stringIndex+4);
//assign image paths
document.images["topnavimg0"].src = "templates/Solaris/images/" + current_lang + "/topimg_faq-e.jpg"; //faq
document.images["topnavimg1"].src = "templates/Solaris/images/" + current_lang + "/topimg_logout-e.jpg"; //login/logout
document.images["topnavimg2"].src = "templates/Solaris/images/" + current_lang + "/topimg_search-e.jpg"; //search
document.images["topnavimg3"].src = "templates/Solaris/images/" + current_lang + "/topimg_profile-e.jpg"; //profile
document.images["topnavimg4"].src = "templates/Solaris/images/" + current_lang + "/topimg_members-e.jpg"; //memberlist
document.images["topnavimg5"].src = "templates/Solaris/images/" + current_lang + "/topimg_groups-e.jpg"; //usergroups
document.images["topnavimg6"].src = "{PRIVMSG_IMG}"; //private messages/new private messages
document.images["topnavimg7"].src = "templates/Solaris/images/" + current_lang + "/topimg_register-d.jpg"; //register
document.images["topnavimg8"].src = "templates/Solaris/images/" + current_lang + "/topimg_album-e.jpg"; //album
document.images["topnavimg9"].src = "templates/Solaris/images/" + current_lang + "/topimg_chat-e.jpg"; //register
<!-- END switch_user_logged_in -->
}
//-->
</script>
</td>
</tr>
<tr valign="top">
<td colspan="2"><img src="templates/Solaris/images/bg_top_border.jpg" width="750" height="51" /></td>
</tr>
<tr>
<td colspan="2">
<table width="720" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td class="mainforumcell">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="1%"><img src="templates/Solaris/images/spacer.gif" width="10" /></td>
<td width="98%">
Code: Alles auswählen
<td><a href="{U_ALBUM}" name="topnavurl8"><img src="templates/Solaris/images/lang_english/topimg_album-e.jpg" width="80" height="15" alt="{L_ALBUM}" name="topnavimg8" border="0" /></a></td> <!-- onLoad="this.src=topnavimg_4;" -->
<td><a href="javascript:void(0);" name="topnavurl9" onClick="window.open('{S_JOIN_CHAT}','{CHATSPOT_NAME}','scrollbars=no,resizable=yes,width=640,height=550')"><img src="templates/Solaris/images/lang_english/topimg_chat-e.jpg" width="80" height="15" border="0" alt="Chat" name="topnavimg9" /></a></td>
Code: Alles auswählen
document.images["topnavimg8"].src = "templates/Solaris/images/" + current_lang + "/topimg_album-e.jpg"; //album
document.images["topnavimg9"].src = "templates/Solaris/images/" + current_lang + "/topimg_chat-e.jpg"; //chat
Nur sehe ich nun einfach nicht, woran es liegen könnte und brauche etwas hilfe.