Forum Replies Created

Viewing 15 replies - 61 through 75 (of 271 total)
  • Thread Starter daisyhead

    (@daisyhead)

    Yep. It’s just that the comment content (the comment form and actual comments) doesn’t show up where I want it in the design.

    Thread Starter daisyhead

    (@daisyhead)

    Ugh. I am at a loss as to what I’m doing wrong. I’ve gone back over my single.php file with a fine tooth come and cannot find why the comments aren’t showing. I’ve adjusted the end of the loop to include all of the code relevant to the comments and still nothing…

    Thread Starter daisyhead

    (@daisyhead)

    Okay. The comments still aren’t showing up after changing the placment of the end of the loop code. Suggestions?

    Thread Starter daisyhead

    (@daisyhead)

    Okay, I read up on the Loop in the Codex and moved:

    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>

    To the end of my file, after ALL of the comment code and still nothing. I will go back over it and see if I’m missing something. The updated code is now uploaded:

    morningsmiles.com/singlephp.txt

    Thread Starter daisyhead

    (@daisyhead)

    PS – please don’t pay any attention to my messy code. I’m in the process of designing a theme from scratch and I’ve yet to work out all the kinks. One problem I’m having is with the footer portion of the layout being fluid and moving down when the middle (or pink section) grows longer. I figure I can fix that AFTER I get the actual code issues fixed. 🙂

    Thread Starter daisyhead

    (@daisyhead)

    If you look at this link, http://www.morningsmiles.com/2006/06/13/movin-on-up/#comments you’ll see that I have the comments form down in the pink section of the page. I want the actual comments themselves to show just to the right of the comment form, in the pink section below the actual blog entry.

    Every time I tried to call comments.php into the single.php page, the comment form and comments both showed wherever I placed the call. I don’t want that.

    Here’s a link to the single.php page,

    http://www.morningsmiles.com/singlephp.txt

    You can see the code to call the actual comments is under “column3” but yet the comments aren’t showing. That’s what I am needing help with.

    Thanks for your patience Moshu!

    Thread Starter daisyhead

    (@daisyhead)

    My bad. I typed the wrong file name. I *am* using the comments.php file with the latest version of WP. My problem is that when I leave the code in to call in the comments.php file, I can’t customize where the comment form and actual comments lay in my layout. I thought I could get around this by taking the “pieces” of the comments.php file and placing them where I want them to be in my layout (single.php) but it doesn’t work right. I am getting the comment form but the actual comments are not showing up.

    I copied and pasted the code from my single.php file above and was wondering if someone could take a look at it and see why the comments aren’t showing up. I would REALLY appreciate it.

    Thread Starter daisyhead

    (@daisyhead)

    Anyone? =(

    Thread Starter daisyhead

    (@daisyhead)

    Okay, since no one is biting, here’s a simple version of what I’m trying to do. I am basically cutting and pasting from my wp-comments.php template and putting that code into my single.php page so I can customize where the comments form and comments are in my layout (code is above). The comment form is showing on my individual entry page, etc., but the actual comments aren’t.

    I’d would really love some help on this issue. Thanks in advance!

    I am trying to do this same thing and am cutting and pasting from my wp-comments.php template and putting that code into my single.php page. The comment form is showing but the actual comments aren’t. I’d love some insight into how you fixed this issue. Thanks!

    Thread Starter daisyhead

    (@daisyhead)

    Okay, I think I figured this out, somewhat. The only problem I’m having is that the actual comments aren’t showing up on my individual pages.

    Example: http://www.morningsmiles.com/2006/06/12/morning-smiles-is-coming-soon/

    Here’s my code:

    <?php get_header(); ?>

    <div id=”container”>

    <div id=”top”>

    <div id=”blog”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <h1 id=”post-<?php the_ID(); ?>”><img src=”http://morningsmiles.com/wp-content/themes/pinkcosmos/images/cosmo2.png”&gt; ” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h1>

    <div class=”entrybody”>
    <div class=”pad”>
    <?php the_content(‘<p class=”serif”>Read the rest of this entry »’); ?>

    </div> <!– end PAD –>
    </div> <!– end ENTRY BODY –>

    <div align=”center”><?php previous_post(‘« %’,”,’yes’) ?> <?php next_post(‘ % »’,”,’yes’) ?></div>

    <?php endwhile; else: ?>

    <?php _e(‘Sorry, no posts matched your criteria.’); ?>

    <?php endif; ?>

    </div> <!– end BLOG –>

    <div id=”image”></div> <!– end IMAGE –>
    </div> <!– end TOP –>

    <br clear=”all”>

    <div id=”middle”>

    <div id=”column1″>
    <h2><img src=”http://morningsmiles.com/wp-content/themes/pinkcosmos/images/bullet.gif”&gt; Leave a Comment <img src=”http://morningsmiles.com/wp-content/themes/pinkcosmos/images/bullet.gif”&gt; </h2>

    <?php // Do not delete these lines
    if (‘comments.php’ == basename($_SERVER[‘SCRIPT_FILENAME’]))
    die (‘Please do not load this page directly. Thanks!’);

    if (!empty($post->post_password)) { // if there’s a password
    if ($_COOKIE[‘wp-postpass_’ . COOKIEHASH] != $post->post_password) { // and it doesn’t match the cookie
    ?>

    <p class=”nocomments”>This post is password protected. Enter the password to view comments.

    <?php
    return;
    }
    }

    /* This variable is for alternating comment background */
    $oddcomment = ‘alt’;
    ?>

    <?php if (‘open’ == $post->comment_status) : ?>

    <?php if ( get_option(‘comment_registration’) && !$user_ID ) : ?>
    You must be /wp-login.php?redirect_to=<?php the_permalink(); ?>”>logged in to post a comment.
    <?php else : ?>

    <form action=”<?php echo get_option(‘siteurl’); ?>/wp-comments-post.php” method=”post” id=”commentform”>

    <?php if ( $user_ID ) : ?>

    Logged in as /wp-admin/profile.php”><?php echo $user_identity; ?>. /wp-login.php?action=logout” title=”Log out of this account”>Logout »

    <?php else : ?>

    <input type=”text” name=”author” id=”author” value=”<?php echo $comment_author; ?>” size=”35″ tabindex=”1″ />
    <label for=”author”><small>Name <?php if ($req) echo “(required)”; ?></small></label>

    <input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” size=”35″ tabindex=”2″ />
    <label for=”email”><small>Mail (will not be published) <?php if ($req) echo “(required)”; ?></small></label>

    <input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” size=”35″ tabindex=”3″ />
    <label for=”url”><small>Website</small></label>

    <?php endif; ?>

    <!–<small>XHTML: You can use these tags: <?php echo allowed_tags(); ?></small>–>

    <textarea name=”comment” id=”comment” cols=”60″ rows=”10″ tabindex=”4″></textarea>

    <input name=”submit” type=”submit” id=”submit” tabindex=”5″ value=”Submit Comment” />
    <input type=”hidden” name=”comment_post_ID” value=”<?php echo $id; ?>” />

    <?php do_action(‘comment_form’, $post->ID); ?>

    </form>

    <?php endif; // If registration required and not logged in ?>

    <?php endif; // if you delete this the sky will fall on your head ?>

    </div>

    <div id=”column2″>
     
    </div>

    <div id=”column3″>
    <h2><img src=”http://morningsmiles.com/wp-content/themes/pinkcosmos/images/bullet.gif”&gt; Comments <img src=”http://morningsmiles.com/wp-content/themes/pinkcosmos/images/bullet.gif”&gt; </h2>
    <?php if ($comments) : ?>
    <h3 id=”comments”><?php comments_number(‘No Responses’, ‘One Response’, ‘% Responses’ );?> to “<?php the_title(); ?>”</h3>

    <?php foreach ($comments as $comment) : ?>

    <cite><?php comment_author_link() ?></cite> Says:
    <?php if ($comment->comment_approved == ‘0’) : ?>
    Your comment is awaiting moderation.
    <?php endif; ?>

    <small class=”commentmetadata”>” title=””><?php comment_date(‘F jS, Y’) ?> at <?php comment_time() ?> <?php edit_comment_link(‘e’,”,”); ?></small>

    <?php comment_text() ?>

    <?php endforeach; /* end for each comment */ ?>

    <?php else : // this is displayed if there are no comments so far ?>

    <?php if (‘open’ == $post->comment_status) : ?>
    <!– If comments are open, but there are no comments. –>

    <?php else : // comments are closed ?>
    <!– If comments are closed. –>
    <p class=”nocomments”>Comments are closed.

    <?php endif; ?>
    <?php endif; ?>
    </div>

    </div> <!– end MIDDLE –>

    <div id=”footer”>

    <?php get_footer(); ?>

    Thread Starter daisyhead

    (@daisyhead)

    Figured it out myself. Apparently I was missing my theme page templates for this old theme of mine. Added them and voila! The WP code is working in my pages.

    Yay me!

    Have you tried this or this file?

    Forum: Plugins
    In reply to: Akismet problem

    Btw, the error that I see is in the Akismet management screen:

    Fatal error: Call to undefined function: get_post() in /xxxxx/xxxxx/public_html/wp-content/plugins/akismet.php on line 256

    Line 256 is:

    $post = get_post($comment->comment_post_ID);

    Any help would be greatly appreciated!

    Forum: Plugins
    In reply to: Akismet problem

    I am having this same problem. Does Akismet not work with V1.5 of WP? Right now it’s catching non-spam related comments and I can’t get them marked as “not spam” so the comments appear on my blog.

    HELP!

Viewing 15 replies - 61 through 75 (of 271 total)