Forums

ModXBlog theme problem (3 posts)

  1. fireandsalt
    Member
    Posted 2 months ago #

    I have a problem with this theme. When I am logged in, the sidebar displays correctly on a single post view. When I'm logged off, the sidebar for a single post view displays incorrectly below the post. Anyone have any suggestions as to why this would be doing this?

    Code from the single.php reads as follows:

    [code]
    <?php get_header(); ?>

    <div id="content">

    <?php if (class_exists('bcn_breadcrumb'))
    { echo '<div class="breadcrumb">';
    // New breadcrumb object
    $mybreadcrumb = new bcn_breadcrumb;
    // Assemble the breadcrumb
    $mybreadcrumb->assemble();
    // Display the breadcrumb
    $mybreadcrumb->display(); echo '</div>';
    } ?> <div class="postwrap">
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <div class="post" id="post-<?php the_ID(); ?>">
    <div class="posthead">
    <h1>" href="<?php the_permalink() ?>" rel="bookmark">
    <?php the_title(); ?>
    </h1>
    <div class="authorbox">

      <li class="postauthor">Written by
      <?php the_author() ?>
      <?php edit_post_link('Edit'); ?>

      <li class="postdate">Posted <?php the_date(); ?> at <?php the_time(); ?>

    </div>
    </div>
    <div style="clear:left;"></div>
    <div class="postcontent"><?php the_content('Read the rest of this entry »'); ?></div>
    <div class="postinfo">
    <div class="postcat" style="width:560px;">Filed under:
    <?php the_category(', ') ?>
    </div>
    </div>
    </div>
    <br clear="all" />
    <?php
    if (function_exists('similar_posts')) {
    echo ('<h4>Related Posts</h4><div class="rel-posts">');
    similar_posts();
    echo ('</div>');
    }
    ?>
    <ul class="Note">
    <li class="NoteRss">
    <?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post')); ?>

    <?php if ( pings_open() ) : ?>
    <li class="NoteTrackBack">" rel="trackback">
    <?php _e('TrackBack <abbr title="Uniform Resource Identifier">URI</abbr>'); ?>

    <?php endif; ?>
    <?php comments_template(); ?>
    <?php endwhile; else : ?>
    <h2>
    <?php _e('Not Found'); ?>
    </h2>
    <p>
    <?php _e('Sorry, but the page you requested cannot be found.'); ?>
    </p>
    <?php endif; ?>
    </div></div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    [/code]

  2. fireandsalt
    Member
    Posted 2 months ago #

    anyone?

  3. bfs_wordpress
    Member
    Posted 1 month ago #

    The only glaring problem I see with the code as posted is this line:

    <h1>" href="<?php the_permalink() ?>" rel="bookmark">

    should be this:
    <h1><a title="Permanent Link to <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark">

    Otherwise...I had a terrible time getting my single pages to display properly with this theme, but it turned out to be the code in comments.php that was causing the problem.

    Let me know if you're still working on this and I'll try to help you out.

    -B

Reply

You must log in to post.

About this Topic