[Plugin: Spam Free WordPress] Cant get display on theme…
-
Having trouble getting the spamblocker to show on my theme.. Below is the code from my “comments.php”
<?php // Do not delete these lines
if (isset($_SERVER[‘SCRIPT_FILENAME’]) && ‘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 class=”nocomments”><?php _e(‘Enter your password to view comments.’); ?></p>
<?php
return;
}
}/* This variable is for alternating comment background */
$oddcomment = ‘ alt’;
?><!– You can start editing here. –>
<?php if(have_comments()) : ?>
<div class=”box-left clearfix”>
<h4 class=”content-title” id=”comments”><?php comments_number(__(‘No Comments’), __(‘1 Comment’), __(‘% Comments’)); ?> to <?php the_title(); ?></h4>
<div class=”commentlist”>
<?php wp_list_comments(array(‘avatar_size’=>64, ‘reply_text’=>’Reply’)); ?>
</div><div class=”navigation”>
<div class=”alignleft”><?php previous_comments_link() ?></div>
<div class=”alignright”><?php next_comments_link() ?></div>
</div></div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if (‘open’ == $post->comment_status) : ?>
<!– No comments yet –>
<?php endif; ?>
<?php endif; // endif comments ?>
<?php if (‘open’ == $post->comment_status) : ?>
<div class=”box-left”>
<h4 class=”content-title”><?php comment_form_title(‘Leave a Reply’, ‘Leave a Reply to %s’); ?></h4>
<?php if ( get_option(‘comment_registration’) && !$user_ID ) : ?>
<p class=”alert”><?php printf(__(‘You must be logged in to post a comment.’), get_option(‘siteurl’).”/wp-login.php?redirect_to=”.urlencode(get_permalink()));?></p>
</div><!– end box-left –>
<?php else : ?><fieldset id=”commentfieldset”>
<div id=”respond”>
<div id=”cancel-comment-reply”>
<?php cancel_comment_reply_link(‘Cancel reply’) ?>
</div><div id=”commentform”>
<form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post”>
<?php if ( $user_ID ) : ?>
<p><?php printf(__(‘Logged in as %s.’), ‘‘.$user_identity.’‘); ?> /wp-login.php?action=logout” title=”<?php _e(‘Log out of this account’) ?>”><?php _e(‘Log out »’); ?></p>
<?php else : ?>
<label for=”author”><?php _e(‘Name’); ?> <?php if ($req) _e(‘(required)’); ?></label>
<input type=”text” name=”author” id=”name” class=”text” value=”<?php echo $comment_author; ?>” size=”22″ tabindex=”1″ /><label for=”email”><?php _e(‘Mail (will not be published)’);?> <?php if ($req) _e(‘(required)’); ?></label>
<input type=”text” name=”email” id=”email” class=”text” value=”<?php echo $comment_author_email; ?>” size=”22″ tabindex=”2″ /><label for=”url”><?php _e(‘Website’); ?></label>
<input type=”text” name=”url” id=”website” class=”text” value=”<?php echo $comment_author_url; ?>” size=”22″ tabindex=”3″ /><?php endif; ?>
<label for=”message”><?php _e(‘Message’); ?></label>
<textarea name=”comment” id=”message” tabindex=”4″></textarea><p><input name=”submit” type=”submit” class=”button” tabindex=”5″ value=”<?php echo attribute_escape(__(‘Submit’)); ?>” /></p>
<?php comment_id_fields(); ?>
<?php do_action(‘comment_form’, $post->ID); ?>
</form>
</div><!– end commentform –>
</div><!– end respond –>
</fieldset>
</div><!– end box-left –>
<?php endif; // If registration required and not logged in ?>
<?php endif; // if you delete this the sky will fall on your head ?>
The topic ‘[Plugin: Spam Free WordPress] Cant get display on theme…’ is closed to new replies.