Support » Themes and Templates » ModXBlog theme problem

  • 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]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fireandsalt

    (@fireandsalt)

    anyone?

    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

    Did anyone find a fix for this theme yet? I have the same issue. Logged in shows the post just fine but loggout and the post is distorted. What was the comments.php fix if you don’t mind me asking?

    FYI, I deleted everything in the comments.php page and uploaded it. Granted I can’t post comments but it fixed the distorted issue. Now I suppose i need to work backwards. Anyone have a quicker fix?

    It’s a lovely looking theme but has big problems with individual posts breaking out of the div container and screwing up the whole layout. Sadly NO support from the developer which is SAD because this theme has potential, I simply do not have time to go and find out what’s causing it to break out of the container but at the end of the day it just comes down to bad coding and not sticking to CSS rules properly. Back to a different theme for now, maybe one day the will release a fixed version or I will find time to fix it msyelf.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ModXBlog theme problem’ is closed to new replies.