Hallo, habe es so gemacht wie hier beschrieben und das hat auch 100%tig funktioniert. Nun bekommen ich aber in Der Forum Wartung hunderte von Fehlermeldungen! Hier mal ein kleiner Auszug:
8: Use of undefined constant chat - assumed 'chat'
/www/htdocs/w007775d/forum/Themes/apollo106/index.template.php (eval?)
54
8: Undefined offset: 38
Datei: /www/htdocs/w007775d/forum/Themes/default/Errors.template.php (eval?)
Zeile: 415
Kann mit da jemand behilflich sein?
und dann noch ne Frage. habe leider noch keinen geeigneten Chat button für mein Design gefunden! Weiß jemand wo ich die passenden Buttons herbekommen?
*edit by Dark_Neakro (http://www.simplemachines.org/community/index.php?action=profile;u=18147)*
Theme geteilt. Ursprüngliches Thema: http://www.simplemachines.org/community/index.php?topic=32095.0
Ersetze das:
$txt[chat] = 'Zum Chat';
Mit dem:
$txt['chat'] = 'Zum Chat';
Achso:
Ersetze das:
<a href="zum_chat.php">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt[38] . '" style="margin: 2px 0;" border="0" />' : $txt[chat]), '</a>', $context['menu_separator'], '
durch das:
<a href="zum_chat.php">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt[38] . '" style="margin: 2px 0;" border="0" />' : $txt['chat']), '</a>', $context['menu_separator'], '
Das hatte ich vorher schon gemacht ;-) kommt trotzdem noch die Fehlermeldung.
8: Use of undefined constant chat - assumed 'chat'
/www/htdocs/w007775d/forum/Themes/apollo106/index.template.php (eval?)
54
8: Undefined offset: 38
Datei: /www/htdocs/w007775d/forum/Themes/default/Errors.template.php (eval?)
Zeile: 415
kann mir keiner helfen? :'( :'(
Wenn du es richtig gemacht hast dürfte kein Fehler auftreten. Poste bitte einmal den von dir veränderten Abschnitt +/- 10 Zeilen.
echo '<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" />';
// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];
// How about the [search] button?
if ($context['allow_search'])
echo '
<a href="', $scripturl, '?action=search">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/search.gif" alt="' . $txt[182] . '" style="margin: 2px 0;" border="0" />' : $txt[182]), '</a>', $context['menu_separator'];
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '
<a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 2px 0;" border="0" />' : $txt[2]), '</a>', $context['menu_separator'];
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '
<a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];
// The [calendar]!
if ($context['allow_calendar'])
echo '
<a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];
// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest'])
{
echo '
<a href="', $scripturl, '?action=login">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/login.gif" alt="' . $txt[34] . '" style="margin: 2px 0;" border="0" />' : $txt[34]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=register">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/register.gif" alt="' . $txt[97] . '" style="margin: 2px 0;" border="0" />' : $txt[97]), '</a>';
}
// Otherwise, they might want to [logout]...
else
echo ' [color=red]<a href="http://www.tuerkei-hotline.de/Chat/index.php">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/chat.gif" alt="' . $txt[38] . '" style="margin: 2px 0;" border="0" />' : $txt['chat']), '</a>', $context['menu_separator'], '[/color]
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/logout.gif" alt="' . $txt[108] . '" style="margin: 2px 0;" border="0" />' : $txt[108]), '</a>';
}
?>
Das in rot ist dann quasi die Zeile, die ich oben aus dem Beitrag genommen habe
Und die Sprachdatei?
$txt[24] = '(Kein Betreff)';
$txt[26] = 'Beiträge';
$txt[27] = 'Profil anzeigen';
$txt[28] = 'Gast';
$txt[29] = 'Autor';
$txt[30] = 'am';
$txt[31] = 'Löschen';
$txt[33] = 'Neues Thema beginnen';
$txt[34] = 'Login';
$txt[35] = 'Benutzername';
$txt[36] = 'Passwort';
$txt['chat'] = 'Zum Chat';
$txt[40] = 'Benutzername nicht vorhanden.';
$txt[62] = 'Board Moderator';
$txt[63] = 'Thema löschen';
$txt[64] = 'Themen';
$txt[66] = 'Nachricht ändern';
$txt[68] = 'Name';
$txt[69] = 'E-Mail';
$txt[70] = 'Betreff';
$txt[72] = 'Text';
$txt[79] = 'Profil editieren';
so das ist aus meiner Sprachdatei!!!
Hm... Bist du sicher, dass nicht etwa die Fehlermeldungen im Fehlerprotokoll alt sind?
Übrigens: Ich splitte das Thema hier mal.
ja da bin ich mir ziemlich sicher, lösche den Speicher jeden Tag. Ich habe in 24 Stunden über 1500 Seiten mit den Fehlermeldungen :-(
Kann mir keiner helfenß .-8
Gib einmal einen Link zu deinem Forum.