Servus zusammen,
versuche gerade die Benutzerbilder (Avatare) mit dem dazugehörigen Benutzer-Profil zu verlinken.
Der unverlinkte Avatar-Code ist ja bekannt:
PHP
<?php if(function_exists(cmd_show_avatar)) cmd_show_avatar(avatar); ?>
<?php
if (function_exists('gravatar')) {
if ('' != get_comment_author_url()) {
// the commenter supplied a website URL
echo "<a href='$comment->comment_author_url' title='Visit $comment->comment_author'>";
} else {
// the commenter did not supply a website, so link to gravatars.com
echo "<a href='http://www.gravatar.com' title='Create your own gravatar at gravatar.com!'>";
}
echo "<img src='";
if ('' == $comment->comment_type) {
// this is a regular comment, so use the commenter's email address
echo gravatar($comment->comment_author_email);
} elseif ( ('trackback' == $comment->comment_type) || ('pingback' == $comment->comment_type) ) {
// this is a pingback or trackback, so use the commenter's website URL
echo gravatar($comment->comment_author_url);
}
echo "' alt='' /></a>";
} ?>
Alles anzeigen
Und der muss jetzt, wenn ich das richtig sehe, mit der Funktion
verknüpft werden?!
Da kam bei mir aber nur murx raus.
Hat jemand eine Idee?