Simple Machines Community Forum

SMF Support => Language Specific Support => Hilfe zu SMF (German) => Aiheen aloitti: Bobby1983 - marraskuu 17, 2006, 07:20:41 AP

Otsikko: Problem beim Hinzufügen eines Buttons (1.0.x)
Kirjoitti: Bobby1983 - marraskuu 17, 2006, 07:20:41 AP
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
Otsikko: Re: [Tutorial] Wie füge ich dem Menü einen Button hinzu? (Version 1.0.x)
Kirjoitti: dieter4 - marraskuu 17, 2006, 11:35:29 AP
Ersetze das:

$txt[chat] = 'Zum Chat';


Mit dem:

$txt['chat'] = 'Zum Chat';

Otsikko: Re: [Tutorial] Wie füge ich dem Menü einen Button hinzu? (Version 1.0.x)
Kirjoitti: dieter4 - marraskuu 18, 2006, 10:21:52 AP
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'], '
Otsikko: Re: [Tutorial] Wie füge ich dem Menü einen Button hinzu? (Version 1.0.x)
Kirjoitti: Bobby1983 - marraskuu 18, 2006, 10:40:46 AP
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
Otsikko: Re: [Tutorial] Wie füge ich dem Menü einen Button hinzu? (Version 1.0.x)
Kirjoitti: Bobby1983 - marraskuu 21, 2006, 01:45:56 IP
kann mir keiner helfen?  :'(  :'(
Otsikko: Re: [Tutorial] Wie füge ich dem Menü einen Button hinzu? (Version 1.0.x)
Kirjoitti: dieter4 - marraskuu 22, 2006, 02:37:51 IP
Wenn du es richtig gemacht hast dürfte kein Fehler auftreten. Poste bitte einmal den von dir veränderten Abschnitt +/- 10 Zeilen.
Otsikko: Re: [Tutorial] Wie füge ich dem Menü einen Button hinzu? (Version 1.0.x)
Kirjoitti: Bobby1983 - marraskuu 22, 2006, 02:48:14 IP


        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
Otsikko: Re: [Tutorial] Wie füge ich dem Menü einen Button hinzu? (Version 1.0.x)
Kirjoitti: dieter4 - marraskuu 23, 2006, 11:56:37 AP
Und die Sprachdatei?
Otsikko: Re: [Tutorial] Wie füge ich dem Menü einen Button hinzu? (Version 1.0.x)
Kirjoitti: Bobby1983 - marraskuu 23, 2006, 12:06:04 IP


$txt[24] = '(Kein Betreff)';
$txt[26] = 'Beitr&auml;ge';
$txt[27] = 'Profil anzeigen';
$txt[28] = 'Gast';
$txt[29] = 'Autor';
$txt[30] = 'am';
$txt[31] = 'L&ouml;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&ouml;schen';
$txt[64] = 'Themen';
$txt[66] = 'Nachricht &auml;ndern';
$txt[68] = 'Name';
$txt[69] = 'E-Mail';
$txt[70] = 'Betreff';
$txt[72] = 'Text';

$txt[79] = 'Profil editieren';


so das ist aus meiner Sprachdatei!!!
Otsikko: Re: [Tutorial] Wie füge ich dem Menü einen Button hinzu? (Version 1.0.x)
Kirjoitti: dieter4 - marraskuu 23, 2006, 12:39:49 IP
Hm... Bist du sicher, dass nicht etwa die Fehlermeldungen im Fehlerprotokoll alt sind?

Übrigens: Ich splitte das Thema hier mal.
Otsikko: Re: Problem beim Hinzufügen eines Buttons (1.0.x)
Kirjoitti: Bobby1983 - marraskuu 23, 2006, 02:41:58 IP
ja da bin ich mir ziemlich sicher, lösche den Speicher jeden Tag. Ich habe in 24 Stunden über 1500 Seiten mit den Fehlermeldungen :-(
Otsikko: Re: Problem beim Hinzufügen eines Buttons (1.0.x)
Kirjoitti: Bobby1983 - marraskuu 28, 2006, 12:57:02 IP
Kann mir keiner helfenß .-8
Otsikko: Re: Problem beim Hinzufügen eines Buttons (1.0.x)
Kirjoitti: dieter4 - marraskuu 29, 2006, 10:00:12 AP
Gib einmal einen Link zu deinem Forum.