Comment box not showing at all or with problems (messed up surrounding layout)

Hi guys!

My system is:
Wordpress 3.3.1
Manifesto theme from WPZoom
Around 20 plugins active, including Akismet, Hypercache,...

The problem that I have is that the form is not showing at all on default settings, pretty sure because of the hooks inside comments.php. I have attached:

This is the original comments.php: http://pastebin.com/RZvCbNXv
Result: form not visible, comments stay the same

This is modified comments.php with info found in older threads: http://pastebin.com/hSbHjVk
Result: form visible, but column for widgets moved below and footer messed up. Comments not modified in style.
http://imageshack.us/photo/my-images/694/layoutyn.jpg/

I tried alternative hook names but none lead to the solution.

URL of the example post:

I'm sure I can count on your help ;).

    Timothy

    Hey there!! :-)

    I get an invalid Paste id on http://pastebin.com/hSbHjVk so I can't see what your code looks like now.

    You can add the following before the comments code:

    <?php do_action("comment_form_before");?>

    And the following after the comments code:

    <?php do_action("comment_form_after");?>

    Then make sure in your Comments Plus admin that you set these for the hooks (they should match in other words :-) :

    wp-admin/options-general.php?page=wdcp

    I mention this as I wonder if it didn't close the form or in the right place as it seems in your image to affect a div. A link would help as I could look in developer tools :-)

    Let me know how you get on.

    Darco
    • 15
    • #8,112

    Hi Timothy!

    Thanks for your help and sorry about invalid link.

    I added code as you suggested, the comments.php now look like this: http://pastebin.com/RaBQDUqB

    However, the problem remain. Older comments are still formatted as they used to and are only visible when I am on Wordpress tab - on others comments simply are hidden. I've also discovered that when I connect and try to post through my Facebook account, the comment has right picture and link but I am mentioned as Anonymous.

    I kept this settings live on my website so you can check it out: http://hdtelevizija.com/2012/01/13/ces-2012-video-obilazak-samsungovog-standa-uz-carlu/#commentspost

    Timothy

    Is this theme up to date? Has the author released recently?

    Anyway...

    Your code:

    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    <?php if ( $user_ID ) : ?>
    
    <p><?php _e('Logged in as', 'wpzoom'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account"><?php _e('Log out', 'wpzoom'); ?> &raquo;</a></p>
    
    <?php else : ?>
    <div id="formLabels">
    <label for="author"><?php _e('Name', 'wpzoom'); ?> <?php if ($req) _e('required', 'wpzoom'); ?>:</label>
    <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /><br />
    
    <label for="email"><?php _e('E-Mail', 'wpzoom'); ?> <?php if ($req) _e('required', 'wpzoom'); ?>:</label>
    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /><br />
    
    <label for="url"><?php _e('Website', 'wpzoom'); ?>:</label>
    <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /><br />
    </div>
    <?php endif; ?>
    <div id="formContent">
    <label for="comment"><?php _e('Comment', 'wpzoom'); ?>:</label>
    <textarea name="comment" id="comment" tabindex="4" cols="140" rows="8"></textarea><br />
    <input name="submit" type="submit" id="submit" value="<?php _e('Add Comment', 'wpzoom'); ?>" />
    <!--<p><strong>XHTML:</strong> You can use these tags: <br /><code><?php echo allowed_tags(); ?></code></p>-->
    </div>
    <div class="cleaner">&nbsp;</div>
    <?php comment_id_fields(); ?>
    <?php do_action("comment_form_after"); ?>
    </form>

    The comment_form_before is way before this code and covers the comments themselves. You only need to cover the form. You aso en the comment_form_after before the closure of the form tag.

    Try this:

    <?php do_action("comment_form_before");?>
    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    
    <?php if ( $user_ID ) : ?>
    
    <p><?php _e('Logged in as', 'wpzoom'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account"><?php _e('Log out', 'wpzoom'); ?> &raquo;</a></p>
    
    <?php else : ?>
    <div id="formLabels">
    <label for="author"><?php _e('Name', 'wpzoom'); ?> <?php if ($req) _e('required', 'wpzoom'); ?>:</label>
    <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /><br />
    
    <label for="email"><?php _e('E-Mail', 'wpzoom'); ?> <?php if ($req) _e('required', 'wpzoom'); ?>:</label>
    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /><br />
    
    <label for="url"><?php _e('Website', 'wpzoom'); ?>:</label>
    <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" /><br />
    </div>
    <?php endif; ?>
    <div id="formContent">
    <label for="comment"><?php _e('Comment', 'wpzoom'); ?>:</label>
    <textarea name="comment" id="comment" tabindex="4" cols="140" rows="8"></textarea><br />
    <input name="submit" type="submit" id="submit" value="<?php _e('Add Comment', 'wpzoom'); ?>" />
    <!--<p><strong>XHTML:</strong> You can use these tags: <br /><code><?php echo allowed_tags(); ?></code></p>-->
    </div>
    <div class="cleaner">&nbsp;</div>
    <?php comment_id_fields(); ?>
    </form>
    <?php do_action("comment_form_after"); ?>

    Let me know how you get on. :-)

    Timothy

    Hey again.

    Looks like a CSS issue. Looks ok in my Chrome and Safari though. Does this only happen in one browser or them all?

    Darco
    • 15
    • #8,112

    Hey Tim,

    Yes, this happens in IE, Firefox and Chrome (reply issue). Here is a copy of css file: http://pastebin.com/V9sQmqTy

    This CSS is the original that came with the theme, haven't modified it.

    Timothy

    Looks good in my Firefox as well. I notice though you are logged in. Could you please create me a sample account. Just needs to be a subscriber role so you could post it here and then remove that account after we have finished.

    Take care.

    Timothy

    I've logged in and tested as well, both in FF and Chrome. Still looks all fine to me. I wondered if there was something extra on the page when logged in.

    See screen shots.

    You could set a manual width for the div in css, the ID is "comment-providers" to ensure the theme does not make it to small.

    I also note in developer tools that you have the following:

    Failed to load resource: the server responded with a status of 404 (Not Found)
    http://hdtelevizija.com/wp-content/themes/manifesto/faq-custom.cssFailed to load resource: the server responded with a status of 404 (Not Found)
    http://hdtelevizija.com/wp-content/themes/manifesto/custom.cssFailed to load resource: the server responded with a status of 404 (Not Found)
    http://hdtelevizija.com/wp-content/themes/manifesto/faq-custom.cssFailed to load resource: the server responded with a status of 404 (Not Found)

    I'll ask some of the other guys if they can look on their Windows computers, I'm on Mac. My windows machines are boxed away at the moment due to room constraints whilst our new office is being built (when I get better, warmer weather. :-).

    Darco
    • 15
    • #8,112

    Thank you Tim for your assistance! I've activated Custom Comments Template add-on plugin and now comments show almost exactly like on WPMU.org. Now other things bother me like unsuccessful login to Twitter and Google, but that is another topic.

    Thanks and hope you get nicer weather soon ;).

    Timothy

    Hey again. :-)

    Thank you Tim for your assistance! I've activated Custom Comments Template add-on plugin and now comments show almost exactly like on WPMU.org.

    Sorry, are you saying it is now working?

    I should have suggested trying that also. It uses a different stylesheet I believe.

    Now other things bother me like unsuccessful login to Twitter and Google, but that is another topic.

    I just noticed your other thread on this, I'll pop over there shortly.

    Take care.

Join 376575 happy members

Get access to our entire collection of epic plugins, astonishing themes & genius support

Become a member