• Hello,

    I am modifying my BLOG and everytime I try to click an older post in the next page both to other right columns move from theri original positions under the comments.

    http://blog.fieri.com

    and here is what happen when I click: http://blog.fieri.com/?p=14 as you will see all goes under one columns and 2 other one are empty.

    Any one knows the solutions to this?

    Best regards,
    Indrit

Viewing 15 replies - 1 through 15 (of 17 total)
  • your comments template haven’t been closed properly. when users have to login to comment, the comments template is using the “You must login…” message and different comments template footer.

    – go in the comments.php file
    – find something like:

    <p>You must login...</p>

    – add:

    </div> right after </p>

    my guess is, there’s nothing wrong with the comments template when it doesn’t have to display the Login to Comment message.

    Thread Starter indrit

    (@indrit)

    Hm.., I think you I have this problem whatever I click. IN my opinion the template structure should NOT change. It is a 3-column template and it is not suppose to bring all columns under aricle in the article page like it does?

    Thread Starter indrit

    (@indrit)

    I will explain this:

    http://blog.fieri.com if you go there and click any of the topics under “Shkrimet e Fundit” or even any topic it self you will see that there is a problem. All other columns go on the left, all the way in the bottem.

    If you click any of the content of “Kategorite” or “Arkiva” the 2 right columns stay put and everything is fine.

    What can I do to fix the problem when I try to click on the Shkrimet e Fundit” Links.

    Indrit – Have you tried what I suggested? I tracked down your problem. It’s in the comments template.

    Although there’s nothing wrong with the regular comments template which simply displays comments and allow you to post comments through the comments form, there might be something wrong with the part of the comments template that has to display, “You must be logged in to post a comment.”

    If you don’t require people to log in to comment, I’m pretty sure your sidebars will return to their normal position for single post pages.

    The problem is you’re using a different part of the comments template that has been neglected and haven’t been closed properly. Follow my original instruction.

    Thread Starter indrit

    (@indrit)

    YES I did and nothing changed. I am not sure what else I need to do to fix this. 🙁

    here in my comment file I found this:

    <p>You must be /wp-login.php?redirect_to=<?php the_permalink(); ?>”>logged in to post a comment.</p>

    so right after that I addedwhat you told me and nothing changed.

    Thread Starter indrit

    (@indrit)

    I dont know If I am explaining my self clear and if not I apologise but here we are again:

    Try please to click the “Read More” Link and you will see for your self how right columns disappear and go on the left side all the way down.

    NOTE: By the way in my BLOG Read More = “Lexo me shume” so please click on the LEXO ME SHUME link under every topics.

    Thread Starter indrit

    (@indrit)

    Ah……, I found it my freind. I just did a troubleshooting and It was a file called signles.php that caoused all the prob. Now it is all good.

    Thanks for your help

    Greetings,
    Indrit

    Indrit, I must be seeing something different, to me it is not fixed, the two right columns are still under the content when I click more.
    I think it is in the #inner and #outer rule, they both say float left and that is just what they are doing.
    There is less content on the more page and this allows the inner and outer to do what their rule says to do, float left. That needs to be changed so they stay on the right in the right position.
    Hope this helps a tad.

    Thread Starter indrit

    (@indrit)

    …and YES my friend you are so right. I still have problems with this. How can I solve this problem. Can someone please jump from out there and help me a little. If you want i can send the whole template and you can tested in your server.

    Ah.., by the way, I must say if you try to register (which is FREE by the way) and than click “Read more” (Lexo me shume) or any other topics everything is fine. The 2 right columns don’t jump to the left as they do when you visit my blog as a guest.

    Please advice

    I don’t know if this existed before my first post or not. I now see a missing closing tag for your container.
    Add it. It should be on your single post page.

    BTW I still can’t figure out why you want 2 columns on the right with a float left rule.
    Oh well, maybe I prefer things simple.

    Thread Starter indrit

    (@indrit)

    don’t know if this existed before my first post or not. I now see a missing closing tag for your container.
    Add it. It should be on your single post page.

    I have not changed a thing. What is it that you see now? What is this missing TAG?

    BTW I still can’t figure out why you want 2 columns on the right with a float left rule.

    Actually, I dont want 2-columns to float on the left. I just want them to stay on the right all the time no matter what I do>

    Can you help?

    Ah.., by the way, I must say if you try to register (which is FREE by the way) and than click “Read more” (Lexo me shume) or any other topics everything is fine. The 2 right columns don’t jump to the left as they do when you visit my blog as a guest.

    That’s what I’ve been trying to point out all along. The “log in” message of the comments template was not closed properly.

    If you can post your comments.php template file here, then maybe I and others can track down the bug.

    If you can post your comments.php template file here,
    Never say that!!! 😉

    use a pastebin service like http://wordpress.pastebin.ca

    Thread Starter indrit

    (@indrit)

    <?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.<p>

    <?php
    return;
    }
    }

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

    <!– You can start editing here. –>

    <div id=”commentblock”>
    <?php if ($comments) : ?>
    <p id=”comments”><b><?php comments_number(‘No Responses’, ‘One Response’, ‘% Responses’ );?> to “<?php the_title(); ?>”</b></p>

    <ol class=”commentlist”>

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

    <li class=”<?php echo $oddcomment; ?>” id=”comment-<?php comment_ID() ?>”>
    <?php comment_author_link() ?> on
    <?php if ($comment->comment_approved == ‘0’) : ?>
    Your comment is awaiting moderation.
    <?php endif; ?>
    <?php comment_date(‘F jS, Y’) ?> <?php comment_time() ?> <?php edit_comment_link(‘edit’,”,”); ?>

    <div class=”commenttext”>
    <?php comment_text() ?>
    </div>

    <?php
    if (‘alt’ == $oddcomment) $oddcomment = ”;
    else $oddcomment = ‘alt’;
    ?>

    <?php endforeach; ?>

    <?php else : ?>

    <?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.</p></div>

    <?php endif; ?>
    <?php endif; ?>

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

    <p id=”respond”><b>Leave a Reply</b></p>

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

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

    <?php if ( $user_ID ) : ?>

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

    <?php else : ?>

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

    <p><label for=”email”>Email Address<?php if ($req) echo “(required)”; ?></label>
    <input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” size=”40″ tabindex=”2″ /></p>

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

    <?php endif; ?>

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

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

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

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

    </form>
    </div>

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

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

    my mistake moshu. won’t happen again.

    indrit – my guess was right. you need a </div> after `to post a comment.
    `

    you said that you followed the instruction and that didn’t fix it. based on your comments.php file, you didn’t make the fix at all!

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Template 2-right columns go under comment’ is closed to new replies.