missliz Posted April 23, 2007 Share Posted April 23, 2007 I am a newbie to all of this, but couldn't find the "Newbie Help" that was suggested in the topic to be read before posting, so forgive me if I've posted this in the wrong place. I am having trouble with the Qwilm! template and since I haven't edited it at all, I guess the problem has been there all along. If someone could help me figure out the problem with the code on line 35 I would really appreciate it. Thanks! a) PHP 5 B) DreamHost c) d) Error: Call to undefined function gravatar() in /home/.opie/smosey/godlygals.com/blog/wp-content/themes/Qwilm!/comments.php on line 35 e) <?php // Do not delete these lines if ('comments.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><?php _e("This post is password protected. Enter the password to view comments."); ?><p> <?php return; } } /* This variable is for alternating comment background, thanks Kubrick */ $oddcomment = 'alt'; ?> <!-- You can start editing here. --> <?php if ($comments) : ?> <?php foreach ($comments as $comment) : ?> <?php $isByAuthor = false; if($comment->comment_author_email == 'tu@mail.com') { $isByAuthor = true; } ?> <div class="comentarios<?php if($isByAuthor ) { echo "-autor"; } ?>"> <div class="gravatar"> <img src="<?php gravatar("R", 40); ?>" alt="Gravatar" /> </div> <div class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.