Jump to content

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 == '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() ?>">

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.