comment_author_url; $email = $comment->comment_author_email; $nickname = $comment->comment_author; if($email == "") { $url = explode("/",$url); $url = "http://" . $url[2]; $nickname = ""; } if($url != "" && $url != "http://") $mybloglog_URL = "http://www.mybloglog.com/buzz/co_redir.php?t=&href=" . $url . "&n=". $nickname; else $mybloglog_URL = "http://www.mybloglog.com/buzz/co_redir.php?t="; if($url != "" && $url != "http://") $mybloglog_IMG = "http://pub.mybloglog.com/coiserv.php?href=" . $url . "&n=". $nickname; else $mybloglog_IMG = get_option("avatar_default"); echo ""; echo " 48) { this.width = 48; this.height = 48; } if (this.width < 48) { this.src='".get_option("avatar_default")."'; this.onload=void(null); }\" alt=\"4Avatars\" />"; echo ""; } elseif (get_option('avatar_site') == 'gravatar') { global $comment; $mail = $comment->comment_author_email; echo ""; } elseif (get_option('avatar_site') == 'avatars') { global $comment; $mail = $comment->comment_author_email; echo ""; } } function foravatars_options() { if (!empty($_POST['avatar_site'])) { // Małe zabezpieczenie if (!in_array($_POST['avatar_site'], array('mybloglog', 'gravatar', 'avatars'))) { $_POST['avatar_site'] = 'mybloglog'; } update_option('avatar_site', $_POST['avatar_site']); } if (!empty($_POST['avatar_default'])) { update_option('avatar_default', $_POST['avatar_default']); } if ($_SERVER['REQUEST_METHOD'] == 'POST') { ?>

Options saved!

4Avatars Options

Paste <?php foravatars(); ?> in comments.php to avatars appeared.

Choose site: > MyBlogLog
> Gravatar
> Avatars.pl
Default avatar:
URL to default avatar!