Support » Fixing WordPress » Spam Free WordPress – Assistance with Code

  • Good Morning,

    This is a request for help with creating my comments.php correctly. I understand that there is an issue because I am getting the, “Error 1: Click back and type in the password.” when someone attempts to leave a comment.

    I am also not a HUGE coder. So I’m hoping Todd Lahman can help me out as he has done with so many others in the past. 🙂

    I’ve pasted my comments code to pastebin. http://pastebin.com/E9fGzDvE

    If anyone can let me know what I need to change it to that would be WONDERFUL! Thank you for your help and expertise in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 1. Make a backup copy of your comments.php file
    2. Go to this link, http://pastebin.com/fMHWEL65, and use the code in the “RAW Paste Data” section to replace all the code in the comments.php file.

    Thread Starter miholmes

    (@miholmes)

    PERFECT! Thank you, thank you, THANK YOU! 🙂

    Appriciate your assistance and your great product!

    Thread Starter miholmes

    (@miholmes)

    Hello there,

    I recently updated my WP and Spam Free WordPress and now I’m getting the below error. Please let me know if you are able to assist with this issue, and as always what the fee might be to do so. 🙂

    Error:
    Parse error: syntax error, unexpected T_ENDIF in /home/content/13/8557213/html/charismascorner/wp-content/themes/a-little-touch-of-purple/comments.php on line 68

    Thread Starter miholmes

    (@miholmes)

    [ Moderator note: please wrap code in backticks or use the code button. ]

    Nevermind I think I figured it out. The error line was from the last row in the php file. I removed it and it appeared to have fixed the issue. 🙂

    WAS:

    <?php if ($altop_xhtml_tags == "true") { ?>
    	<p class="comment-tags">	<small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s', 'altop'), allowed_tags()); ?> </small> </p>
    	<?php } ?>
    
    			<div>
    			<textarea class="commenttext" name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea>
    			<div id="cancel-comment-reply">	<?php cancel_comment_reply_link() ?> </div>
    			</div>
    
    			<p>
    				<input class="commentsubmit" name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e(__('Submit', 'altop')); ?>" />
    				<?php comment_id_fields(); ?>
    			</p>
    
    			<?php do_action('comment_form', $post->ID); ?>
    			</form>
    			<?php endif; ?>
    			</div>
    
    <?php endif; ?>

    NOW:

    <?php if ($altop_xhtml_tags == "true") { ?>
    	<p class="comment-tags">	<small><strong>XHTML:</strong> <?php printf(__('You can use these tags: %s', 'altop'), allowed_tags()); ?> </small> </p>
    	<?php } ?>
    
    			<div>
    			<textarea class="commenttext" name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea>
    			<div id="cancel-comment-reply">	<?php cancel_comment_reply_link() ?> </div>
    			</div>
    
    			<p>
    				<input class="commentsubmit" name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e(__('Submit', 'altop')); ?>" />
    				<?php comment_id_fields(); ?>
    			</p>
    
    			<?php do_action('comment_form', $post->ID); ?>
    			</form>
    			<?php endif; ?>
    			</div>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Spam Free WordPress – Assistance with Code’ is closed to new replies.