22.11.2008, 01:31
|
#4 (permalink)
|
| PostRank: 10
Registriert seit: 09.07.2006 Ort: Nettetal
Beiträge: 6.948
| Habe ich da was vergessen??? Dann füge mal unter Code: <?php } // if function_exists... ?> noch folgendes hinzu Zitat: |
Die Funktion muss davor stehen? Wenn diese in der functions.php steht klappt garnix mehr...
| Wie gesagt gehört der Code in die comments.php. Wo er dort steht, bzw. wo das Feld zur Eingabe der Lösung nachher erscheinen soll, bleibt vollkommen Dir überlassen. Ich hab´s bei mir nach dem URL Feld und vor dem großen Textfeld eingefügt. Beispiel: Code: <p><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url"><small>Website</small></label></p>
<?php
/****** Math Comment Spam Protection Plugin ******/
if ( function_exists('math_comment_spam_protection') ) {
$mcsp_info = math_comment_spam_protection();
?> <p><input type="text" name="mcspvalue" id="mcspvalue" value="" size="22" tabindex="4" />
<label for="mcspvalue"><small>Spam-Schutz: Summe von <?php echo $mcsp_info['operand1'] . ' + ' . $mcsp_info['operand2'] . ' ? (erforderlich)' ?></small></label>
<input type="hidden" name="mcspinfo" value="<?php echo $mcsp_info['result']; ?>" />
</p>
<?php } // if function_exists... ?>
<?php endif; ?>
<!--<p><small>Erlaubte <strong>XHTML Tags:</strong> <?php echo allowed_tags(); ?></small></p>-->
<textarea name="comment" id="comment" cols="60" rows="10" tabindex="4"></textarea>
__________________ mf | So ist das halt: Mal biste Hund, mal biste Baum...
|
| |