Advertisement:

Problem beim Hinzufügen eines Buttons (1.0.x)

Aloittaja Bobby1983, marraskuu 17, 2006, 07:20:41 AP

« edellinen - seuraava »

Bobby1983

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*
Theme geteilt. Ursprüngliches Thema: http://www.simplemachines.org/community/index.php?topic=32095.0

dieter4


dieter4

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'], '

Bobby1983

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


dieter4

Wenn du es richtig gemacht hast dürfte kein Fehler auftreten. Poste bitte einmal den von dir veränderten Abschnitt +/- 10 Zeilen.

Bobby1983



        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

dieter4


Bobby1983



$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!!!

dieter4

Hm... Bist du sicher, dass nicht etwa die Fehlermeldungen im Fehlerprotokoll alt sind?

Übrigens: Ich splitte das Thema hier mal.

Bobby1983

ja da bin ich mir ziemlich sicher, lösche den Speicher jeden Tag. Ich habe in 24 Stunden über 1500 Seiten mit den Fehlermeldungen :-(

Bobby1983


dieter4


Advertisement: