I'm dying, hoping and praying that someone can help me with this issue.
I've attempted to implement Cforms to replace WP comment functionality. I have followed the tutorials/post instructions and replaced or commented out the <form> to </form> code.
It seems the form is correctly being implemented (i think), yet I'm experiencing a formatting issue. The form renders way off to the right for whatever reason.
See here: http://www.manaliandterry.com/?p=165
What could be the issue? Is it CSS issue? I've looked high and low to no avail.
Praying my hopes are lifted with your benevolent reply!
==========Here is the modified code for my Comments.php=========
<?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
?>
<h2><?php _e("This post is password protected. Enter the password to view comments."); ?></h2>
<?php
return;
}
}
$oddcomment = '-alt';
?>
<div id="comments-template">
<?php include (TEMPLATEPATH . '/paginate.php'); ?>
<?php
global $bm_comments;
global $bm_trackbacks;
split_comments( $comments );
$aemail = get_the_author_email();
?>
<?php if ( $comments ) : ?>
<?php
$trackbackcounter = count( $bm_trackbacks );
$commentcounter = count( $bm_comments );
?>
<h4 id="comments"><?php echo $commentcounter; ?> Users Response In This Post</h4>
<?php foreach ($bm_comments as $comment) : ?>
<?php if ($comment->comment_author_email == $aemail) { ?>
<div class="com-box" id="comment-<?php comment_ID() ?>">
<div class="com-avatar">
<?php $mywp_version = get_bloginfo('version'); ?><?php if ($mywp_version >= '2.5') : ?>
<?php echo get_avatar( $comment, 48 ); ?>
<?php else : ?>
<?php if(function_exists("MyAvatars")) : ?> <?php MyAvatars(); ?><?php else: ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/mygif.gif" alt="mygif"/>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="com-wrp-author">
<div class="com-content-author">
<div class="com-author"><?php comment_author_link(); ?></div>
<div class="com-date">
<?php comment_date('F jS Y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a> <?php edit_comment_link('edit','',''); ?>
</div>
<div class="com-text">
<?php if ($comment->comment_approved == '0') : ?>
<strong>Your Comment Is Under Moderation </strong>
<?php else: ?>
<?php comment_text(); ?>
<?php endif; ?>
</div>
</div>
<div class="com-bottom-author"></div>
</div>
</div>
<?php } else { ?>
<div class="com-box" id="comment-<?php comment_ID() ?>">
<div class="com-avatar">
<?php $mywp_version = get_bloginfo('version'); ?><?php if ($mywp_version >= '2.5') : ?>
<?php echo get_avatar( $comment, 48 ); ?>
<?php else : ?>
<?php if(function_exists("MyAvatars")) : ?> <?php MyAvatars(); ?><?php else: ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/mygif.gif" alt="mygif"/>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="com-wrp<?php echo $oddcomment; ?>">
<div class="com-content">
<div class="com-author"><?php comment_author_link(); ?></div>
<div class="com-date">
<?php comment_date('F jS Y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a> <?php edit_comment_link('edit','',''); ?>
</div>
<div class="com-text">
<?php if ($comment->comment_approved == '0') : ?>
<strong>Your Comment Is Under Moderation </strong>
<?php else: ?>
<?php comment_text(); ?>
<?php endif; ?>
</div>
</div>
<div class="com-bottom"></div>
</div>
</div>
<?php } ?>
<?php if ('-alt' == $oddcomment) $oddcomment = ''; else $oddcomment = '-alt'; ?>
<?php endforeach; ?>
<?php if ( count( $bm_trackbacks ) > 0 ) { ?>
<h4><?php echo $trackbackcounter; ?> Pingback & Trackback On This Post</h4>
<?php foreach ($bm_trackbacks as $comment) : ?>
<div class="com-box" id="comment-<?php comment_ID() ?>">
<div class="com-avatar">
<?php $mywp_version = get_bloginfo('version'); ?><?php if ($mywp_version >= '2.5') : ?>
<?php echo get_avatar( $comment, 48 ); ?>
<?php else : ?>
<?php if(function_exists("MyAvatars")) : ?> <?php MyAvatars(); ?><?php else: ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/mygif.gif" alt="mygif"/>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="com-wrp<?php echo $oddcomment; ?>">
<div class="com-content">
<div class="com-author"><?php comment_author_link(); ?></div>
<div class="com-date">
<?php comment_date('F jS Y') ?> at <a href="#comment-<?php comment_ID() ?>"><?php comment_time() ?></a> <?php edit_comment_link('edit','',''); ?>
</div>
<div class="com-text">
<?php if ($comment->comment_approved == '0') : ?>
<strong>Your Comment Is Under Moderation </strong>
<?php else: ?>
<?php comment_text(); ?>
<?php endif; ?>
</div>
</div>
<div class="com-bottom"></div>
</div>
</div>
<?php if ('-alt' == $oddcomment) $oddcomment = ''; else $oddcomment = '-alt'; ?>
<?php endforeach; ?>
<?php } ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<?php if (get_option('comment_registration') && !$user_ID) : ?>
<h2>Sorry you must register to comments in this post</h2>
<?php else : ?>
<?php insert_cform('Comment Form'); ?>
<h4>Post Your Comment…</h4>
<–
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if (!$user_ID) : ?>
<label>Name: <!– <span>*required</span> –></label>
<p><input name="author" type="text" class="comfield" value="<?php echo $comment_author; ?>"/></p>
<label>Email Address: <!– <span>*required</span> –></label>
<p><input name="email" type="text" class="comfield" value="<?php echo $comment_author_email; ?>"/></p>
<label>Homepage:</label>
<p><input name="url" type="text" class="comfield" value="<?php echo $comment_author_url; ?>"/></p>
<?php endif; ?>
<!–
<label><?php comments_rss_link('Comments RSS'); ?> | <a href="<?php trackback_url(); ?>">Trackback URI</a></label>
–>
<?php if(function_exists("wp_grins")) { ?>
<p><?php wp_grins(); ?></p>
<?php } ?>
<p>
<script type='text/javascript'>
quicktagsL10n = {
quickLinks: "(Quick Links)",
wordLookup: "Enter a word to look up:",
dictionaryLookup: "Dictionary lookup",
lookup: "lookup",
closeAllOpenTags: "Close all open tags",
closeTags: "close tags",
enterURL: "Enter the URL",
enterImageURL: "Enter the URL of the image",
enterImageDescription: "Enter a description of the image"
}
</script>
<script type="text/javascript">edToolbar()</script>
</p>
<p>
<textarea name="comment" cols="50%" rows="8" id="comment" class="comarea"></textarea>
<script type="text/javascript">var edCanvas = document.getElementById('comment');</script>
</p>
<p><input name="s" type="submit" class="submit-button" id="s" value="Submit my comment"/><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p>
</form>
–>
<p id="respond"><?php do_action('comment_form', $post->ID); ?></p>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
</div>