WordPress.org

Forums

Spam Free WordPress - Assistance with Code (5 posts)

  1. miholmes
    Member
    Posted 3 years ago #

    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!

  2. Todd Lahman
    Member
    Posted 3 years ago #

    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.

  3. miholmes
    Member
    Posted 3 years ago #

    PERFECT! Thank you, thank you, THANK YOU! :)

    Appriciate your assistance and your great product!

  4. miholmes
    Member
    Posted 2 years ago #

    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

  5. miholmes
    Member
    Posted 2 years ago #

    [ 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>

Topic Closed

This topic has been closed to new replies.

About this Topic