Yawasp – Undo changes in comments.php

— Anleitung in Deutsch —
scroll down for instructions in english

Zunächst solltest du versuchen die Änderungen über die automatische Funktion rückgängig zu machen. Diese findest du unter Einstellungen -> Yawasp. Sollte dies nicht funktionieren ist eine manuelle Änderung nötig. Öffne dazu die comments.php und suche nach dem Anfang des Kommentarformulars. Hier wurde bisher über Yawasp das versteckte Feld eingefügt.

<?php if (class_exists('Yawasp')) { Yawasp::getName('blank'); } ?>

Diesen Code vollständig entfernen.

Anschließend müssen die Namen der einzelnen Kommentar-Felder zurückgesetzt werden. Zu ändern sind die Felder für author, email, url und comment.

Feld author – Suchen nach

name="<?php if (class_exists('Yawasp')) { Yawasp::getName('author'); } else { echo "author"; } ?>"

Ersetzen durch

name="author"

Feld email – Suchen nach

name="<?php if (class_exists('Yawasp')) { Yawasp::getName('email'); } else { echo "email"; } ?>"

Ersetzen durch

name="email"

Feld url – Suchen nach

name="<?php if (class_exists('Yawasp')) { Yawasp::getName('url'); } else { echo "url"; } ?>"

Ersetzen durch

name="url"

Feld comment – Suchen nach

name="<?php if (class_exists('Yawasp')) { Yawasp::getName('comment'); } else { echo "comment"; } ?>"

Ersetzen durch

name="comment"

— Instructions in English —

First you should try to undo the changes using the automatic function. You’ll find this function in settings -> yawasp. If this does not work, you have to undo the changes manuelly. Therefore, open your comment.php and search for the beginning of your comment form. This is the place, were we placed the hidden yawasp field.

<?php if (class_exists('Yawasp')) { Yawasp::getName('blank'); } ?>

Delete this code completly.

Now we have to change the names of the form fields back to their original values. These fields are author, email, url and comment.

Field author – Search for

name="<?php if (class_exists('Yawasp')) { Yawasp::getName('author'); } else { echo "author"; } ?>"

Replace with

name="author"

Field email – Search for

name="<?php if (class_exists('Yawasp')) { Yawasp::getName('email'); } else { echo "email"; } ?>"

Replace with

name="email"

Field url – Search for

name="<?php if (class_exists('Yawasp')) { Yawasp::getName('url'); } else { echo "url"; } ?>"

Replace with

name="url"

Field comment – Search for

name="<?php if (class_exists('Yawasp')) { Yawasp::getName('comment'); } else { echo "comment"; } ?>"

Replace with

name="comment"

3 Kommentare

  1. Crazy Girl sagt:

    Wenn Yawasp durch NoSpamNX ersetzt wurde, kann dann auch die Tabelle _yawasp aus der Datenbank gelöscht werden?

  2. Crazy Girl sagt:

    Danke Sven :-)

Hinterlasse einen Kommentar