streetjammer
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Fixing WordPress
In reply to: Ajax Comments not workingplugins were not used ,i think the problem is with the theme
i found this code in content.php
<?php if (get_comments_number($post_id) > 6 ) { ?> <a href="<?php the_permalink(); ?>" class="all commentlink">All <?php echo get_comments_number( $post_id ); ?> Comments...</a> <?php } ?> <div class="comments-add"> <form action="<?php bloginfo('wpurl'); ?>/wp-comments-post.php" method="post"> <p class="avatar"> <?php echo get_avatar( $current_user->ID, $size = '30', $default = '' ); ?> </p> <p class="textarea"> <textarea name="comment" rows="5" cols="30" <?php if ( !is_user_logged_in() ) { ?>disabled="disabled"<?php } ?>><?php if ( !is_user_logged_in() ) { ?>Please <a> href="<?php bloginfo('template_url'); ?>/wp-login.php" login </a> or join to add a comment.<?php } ?></textarea> </p> <p class="submit"> <img src=" <?php bloginfo('template_url'); ?>/images/ajax-loader.gif" alt="Loading..." class="loader" /> <input name="submit" type="submit" id="submit" class="comment_submit" value="Comment" /> <input type="hidden" name="comment_post_ID" class="comment_post_ID" value="<?php the_ID(); ?>" /> <input type="hidden" name="comment_author" class="comment_author" value="<?php global $current_user; get_currentuserinfo(); echo $current_user->user_login; ?>" /> </p> <div class="clear"></div> </form> </div>do you see any errors here ?
Viewing 1 replies (of 1 total)