hi... untenstehendes hat sich inzwischen mehr oder weniger erledigt.
Hab jetzt auf die Pluginlos Variante zurück gegriffen.
Einziges Problem jetzt noch. Wir erreiche ich, dass die vom Kommentierenden angegebene Website als Link auf dem Gravatar liegt.
Derzeitiger Code:
Danke für eure Hilfe!!
Fix (http://www.studinights.com - der Party Blog)
ZitatAlles anzeigen<?php if ($comments) : ?>
<h3 class="comments"><?php comments_number('Kein Kommentar', '1 Kommentar', '% Kommentare' );?> zu “<?php the_title(); ?>”</h3>
<ol class="commentList">
<?php $gravatar_default="http://www.studinights.com/wp-content/gravatardef.gif"; ?>
<?php foreach ($comments as $comment) : ?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"><div class="commentHead"><?php $gravatar_url = "http://www.gravatar.com/avatar.php?gravatar_id=" . md5(get_comment_author_email()) . "&default=" . urlencode($gravatar_default) . "&size=40"; ?>
<img class="gravatar" src="<?php echo $gravatar_url ?>" alt="Gravatar of <?php comment_author() ?>" /><?php comment_author_link() ?>
</cite>
<?php if ($comment->comment_approved == '0') : ?>
<em>Dein Kommentar wartet auf Moderation.</em>
<?php endif; ?>
<small class="commentMeta">
<span class="date"><?php comment_date('j. F Y') ?></span>
<span class="time"><?php comment_time() ?></span>
<span class="edit"><?php edit_comment_link('edit','',''); ?></span>
</small>
</div>
hi...
ich brauche dringen Hilfe sonst fliegt mein Laptop gleich aus dem Fenster . Steh vermutlich wie der Ochs vorm Berg aber ich brings einfach nicht hin :confused:
Hab das wp_gravatar Plugin installiert und aktiviert.
Hab WP Version 2.3. (ja nicht die neuste ich weiß)
Theme s-fels' Iconis-Triple 3.0 by
in die comment.php muss doch jetzt soweit ich das sehe etwa folgendes rein:
Zitat<?php gravatar("R", "http://www.studinights.com/wp-conten/gravatardef.gif"); ?>
aber wo???
hier mal der Code:
ZitatAlles anzeigen<div id="comments">
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Bitte diese Seite nicht direkt laden. Danke!');
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="error">Dieser Eintrag ist Passwort geschützt. Gib bitte das Passwort ein um die Kommentare zu lesen.<p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'alt';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<h3 class="comments"><?php comments_number('Kein Kommentar', '1 Kommentar', '% Kommentare' );?> zu “<?php the_title(); ?>”</h3>
<ol class="commentList">
<?php foreach ($comments as $comment) : ?>
<li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
<cite><?php comment_author_link() ?></cite>
<div class="commentHead">
<cite class="author"><?php comment_author_link() ?></cite>
<?php if ($comment->comment_approved == '0') : ?>
<em>Dein Kommentar wartet auf Moderation.</em>
<?php endif; ?>
<small class="commentMeta">
<span class="date"><?php comment_date('j. F Y') ?></span>
<span class="time"><?php comment_time() ?></span>
<span class="edit"><?php edit_comment_link('edit','',''); ?></span>
</small>
</div><?php comment_text() ?>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="error">Kommentare sind (zur Zeit) nicht möglich.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<h3 id="response">Kommentar hinterlassen</h3>
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>Du musst <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">angemeldet</a> sein um einen Kommentar abzugeben.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentForm">
<?php if ( $user_ID ) : ?>
<p>Angemeldet als <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php" class="author"><?php echo $user_identity; ?></a><span class="exit"><a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Abmelden">Abmelden</a></span></p>
<?php else : ?>
<p>
<input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
<label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label>
</p>
<p>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
<label for="email"><small>eMail (wird nicht veröffentlicht) <?php if ($req) echo "(erforderlich)"; ?></small></label>
</p>
<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 endif; ?>
<p><small><strong><abbr title="eXtensible Hypertext Markup Language">XHTML</abbr>:</strong> Du kannst folgende Tags nutzen:<br /><code><?php echo allowed_tags(); ?></code></small></p>
<p><textarea name="comment" id="comment" cols="80%" rows="10" tabindex="4"></textarea></p>
<p>
<input name="submit" type="submit" id="submit" tabindex="5" value="Kommentar abschicken" />
<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 ?>
</div>
Bin echt auf Hilfe angewiesen.
Vielen Dank schonmal.
Gruß Fix