ja, ich habe jetzt das gästebuch von bueltge eingebaut und angepasst und beim validieren kriege ich jetzt folgenden Fehler:
ZitatSorry, I am unable to validate this document because on line 65, 86 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.
Ich glaube ich stelle hier einfach mal den gesamten Code vom Gästebuch online, vielleicht findet ja jemand etwas...
PHP
<?php
/*
Name: Gästebuch Template
Description: Stellt ein Gästebuch dar, ohne Plugin.
Version: 1.0
Author: Frank Bueltge
Author URI: http://www.bueltge.de/
*/
?>
<?php // Do not delete these lines
if ('guestbook.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">You need a password to write an entry.
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<?php if ('open' == $post->comment_status) : ?>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
You have to be [url="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>"]logged in[/url] to write an entry.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
Logged in as [url="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"]<?php echo $user_identity; ?>[/url]. [url="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout"]Logout »[/url]</p>
<?php else : ?>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author">[size="1"]Name <?php if ($req) echo "(required)"; ?>[/size]</label></p>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email">[size="1"]E-Mail (required, won't be published)[/size]</label></p>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
<label for="url">[size="1"]Website[/size]</label></p>
<?php endif; ?>
<?php if (function_exists('SJB_outputSmilies')) {SJB_outputSmilies();} ?>
<textarea name="comment" id="comment" cols="80" rows="10" tabindex="4"></textarea></p>
<input name="submit" type="submit" id="submit" tabindex="5" value="Send" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
<?php if ($comments) : ?>
<h3 id="comments"><?php comments_number('No entries', '1 entry', '% entries' );?> in the guestbook</h3>
[list=1]
<?php foreach ($comments as $comment) : ?>
<li style="padding-top:10px;" class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<?php comment_author_link() ?>
<?php if ($comment->comment_approved == '0') : ?>
[i]Your entry has to be moderated first.[/i]
<?php endif; ?>
<small class="commentmetadata"><?php comment_date('d. M y') ?> · <?php comment_time('H:i') ?> <?php edit_comment_link('· Editieren','',''); ?></small>
<?php comment_text() ?>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php endforeach; /* end for each comment */ ?>
[/list]
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<?php else : // comments are closed ?>
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
Alles anzeigen