Jump to content

Problem with comments.php - Qwilm!


missliz

Recommended Posts

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 == '[email protected]') {
				$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() ?>">

Link to comment
https://forums.phpfreaks.com/topic/48244-problem-with-commentsphp-qwilm/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.