Got tired of waiting for you to fix comments, so I fixed them myself!
-
It has been many months now since I brought to your attention WPSmart’s inability to work with plug-ins that interact with the comment form, including many anti-spam plug-ins. So knowing that my main theme worked fine, I plugged in various bits of code from its comments form into yours, to see what worked and what didn’t. In the end, I found that I had to add the following code from my main theme at line 67 in base-comments.php:
<?php comment_id_fields(); ?>
I also had to replace the following code:
<input type="hidden" name="comment_post_ID" value="<?php the_ID() ?>" id="comment_post_ID"> <input type="hidden" name="comment_parent" id="comment_parent" value="0"> <input type="hidden" name="comment_redirect" value="<?php echo get_permalink( $id ); ?>"/>
With this code:
<div class="response-extras"> <?php do_action('comment_form', get_the_ID()); ?> </div>
Please note that I don’t have much idea what any of this actually does (I don’t have any knowledge of PHP programming, or any programming at all for that matter) – I just arrived at this through trial and error. It is disappointing that you haven’t been able to fix this after so many months, leaving a novice like me to spend a day figuring it out.
Anyway, I’m sure you will know what this all means, and will presumably apply a more elegant solution to the next version of the plug-in. I should point out that the comments list doesn’t work with plug-ins that interact with it either, but at least now mobile users can post comments on my sites. I would hope that you can fix the issues with the comments list without me having to spend another day figuring them out too.
- The topic ‘Got tired of waiting for you to fix comments, so I fixed them myself!’ is closed to new replies.