• Hi, I am trying to install Matt’s asides on my blog. Everytime I change my php, save the file, and go to my page, I get a blank screen.
    I tried the hints in this post: https://www.ads-software.com/support/topic/115785?replies=6 and it didn’t help.
    Can someone please take a look and see where I might be going wrong?
    Thanks!
    I am putting in bold the changes that I added, as according to the Asides tutorial.

    <?php
    get_header();
    ?>
    <?php include “leftmenu.php”; ?>
    <?php get_sidebar(); ?>
    <div id=”content”>
    <?php //if (have_posts()) : while (have_posts()) :
    <?php
    if ($posts)
    {
    function stupid_hack($str)
    {
    return preg_replace(‘|\s*<ul class=”linklog”>|’, ”, $str);
    }
    ob_start(‘stupid_hack’);
    foreach($posts as $post)
    {
    the_post();
    ?>

    the_post(); ?>
    <div>
    <h1 class=”storytitle” id=”post-<?php the_ID(); ?>”>” rel=”bookmark”><?php the_title(); ?></h1>
    <?php the_date(‘F j, Y’, ‘<div class=”date”>’, ‘</div>’); ?>
    <?php if ( in_category(14) && !is_single() ) : ?>
    <ul class=”linklog”>
    <li id=”p<?php the_ID(); ?>”><?php echo wptexturize($post->post_content); ?>
    <span><?php comments_popup_link(‘(0)’, ‘(1)’,
    ‘(%)’)?>
    title=”Permalink: <?php echo
    wptexturize(strip_tags(stripslashes($post->post_title), ”)); ?>”
    rel=”bookmark”>#
    <?php edit_post_link(‘(e)’); ?></span>

    <?php else: // If it’s a regular post or a permalink page ?>
    <div class=”story”>
    <?php the_content(__(‘Continue reading →’)); ?>
    </div>
    <div class=”feedback”>
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/folder.gif” alt=”filed” class=”icon” /> <?php _e(‘Filed under:’); ?> <?php the_category(‘, ‘) ?> <?php _e(‘by’); ?> <?php the_author(); ?>
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/comment.gif” alt=”comment” class=”icon” />
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__(‘ Would you like to be the first to leave a comment?’), __(‘1 Comment’), __(‘% Comments’)); ?>
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/permalink.gif” alt=”permalink” class=”icon” /> “>Link directly to this entry
    </div>
    </div>
    <?php comments_template(); // Get wp-comments.php template ?>
    <?php endif; // end if in category ?>
    <?php
    }
    }
    else
    {
    echo ‘<p>Sorry no posts found.</p>’;
    }
    ?>

    <div class=”meta”><?php posts_nav_link(‘ · ‘, __(‘« Previous Page’), __(‘Next Page »’)); ?></div>
    <?php get_footer(); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    You’re getting a blank page because there is a php error.

    See the line that goes

    <?php //if (have_posts()) : while (have_posts()) :
    <?php  <-- remove this one

    Remove the second <?php on line 8. Then remove the second ?> in line 18

    ?>  <--this one goes too
    the_post(); ?>

    That’s a start and there might be more. Once you get a non-blank page then work it from there.

    Give AsideShop a try! ??

    andriaandco,

    Email me (miro [at] apollo [dot] lv) if you have troubles getting it done with AsideShop.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Asides issue’ is closed to new replies.