• Using wp 3.1.4 due to server restraints of global upgrades: PHP

    Pretty straightforward 3 column fixed layout with ‘dynamic sidebars’ as per css rules. However, the template being used (and about 6 hours of troubleshooting) at this site: http://SubmitArticleArticleDirectory.net right is ok EXCEPT on posts page.

    Another modified version of same theme: http://ArticleArea.com

    Works, but this is two column. The 3 column fixed has always had the sidebar dropping issue. Other layouts not so.

    Here is the deal. I check the little XML Fixer checkbox under the settings tab. I deleted all the posts and right sidebar widgets… Just added ‘Test’ to one post and one Text sidebar.

    The side bar continues to drop to bottom in three column layout.

    Going to have to setup a development environment and do hours of testing to fight this one. Site doesn’t pass w3c validation however, checked code and it not same as the errors they say are there. And I can’t make heads or tails of results.

    Any ideas folks? I think it is CSS however, this is going to be some work digging into – the file is huge.

Viewing 2 replies - 1 through 2 (of 2 total)
  • in single.php, there is somewhere a </div> missing, before the call of the right sidebar – this could be in the comment section (?) or just in the code.

    is there a difference between single posts with or without comments?

    Thread Starter Frich

    (@nssinc)

    Did a php -l single.php

    Fixed one error – duplicate ?php declaration…. but still no go…

    Here is single.php

    <?php get_header(); ?>
    <?php
    if($_POST[‘sendact’]==’email_frnd’)
    {
    require_once (TEMPLATEPATH . ‘/library/includes/send_to_friend/email_friend_frm.php’);exit;
    }
    ?>
    <?php if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Page Content Above’)){?>
    <!– <div class=”allinone”> </div> all in one #end –>
    <?php } else {?> <?php }?>

    <?php templ_set_breadcrumbs_navigation();?>

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

    <h1 class=”singleh1″><?php the_title(); ?></h1>

    <div class=”post-meta-single”>
    <?php if($_REQUEST[‘sendtofrnd’]==’success’){?>
    <p class=”sucess_msg”><?php _e(‘Email to Friend sent successfully’,’templatic’);?></p>
    <?php }?>

    <?php
    if($_SERVER[‘HTTP_REFERER’] == ” || !strstr($_SERVER[‘HTTP_REFERER’],$_SERVER[‘REQUEST_URI’]))
    {
    $question_viewed_count = get_post_meta($post->ID,’post_viewed_count’,true);
    update_post_meta($post->ID,’post_viewed_count’,$question_viewed_count+1);
    }
    ?>

    <?php if(get_option(‘ptthemes_details_author’)==’Yes’ || get_option(‘ptthemes_details_author’)==”){?>
    <span class=”post-author”>

    <?php _e(‘ Posted by’,’templatic’);?> ” title=”Posts by <?php the_author(); ?>”><?php the_author(); ?>,
    </span>
    <?php } ?>

    <?php if(get_option(‘ptthemes_details_date’)==’Yes’ || get_option(‘ptthemes_details_date’)==”){?>
    <span class=”post-date”><?php the_time(templ_get_date_format()) ?></span>
    <?php } ?>

    <?php if(get_option(‘ptthemes_details_category’)==’Yes’ || get_option(‘ptthemes_details_category’)==”){?>
    <span class=”single_cate”><?php the_category(‘, ‘); ?></span>
    <?php } ?>

    <?php if(get_option(‘ptthemes_details_comment’)==’Yes’ || get_option(‘ptthemes_details_comment’)==”){?>
    <span class=”single_comments”><?php comments_popup_link(__(‘No Comments’,’templatic’), __(‘1 Comment’,’templatic’), __(‘% Comments’,’templatic’), ”, __(‘Comments Closed’,’templatic’)); ?></span>
    <?php } ?>

    <span class=”single_fav”><?php echo templ_get_post_like_count($post->ID);?></span>
    <span class=”single_views”><?php _e(‘Views’,’templatic’);?> : <?php echo user_post_visit_count($post->ID);?></span>
    <span class=”single_print”><?php _e(‘Print’,’templatic’);?></span>

    </div>

    <!– Content 2 column – Right Sidebar –>
    <div class=”content left”>

    <div class=”entry”>

    <div <?php post_class(‘single clear’); ?> id=”post_<?php the_ID(); ?>”>

    <div class=”post-content”><?php the_content(); ?></div>

    <div class=”like_this”><?php
    if(get_option(‘ptthemes_tweet_button’)==’Yes’ || get_option(‘ptthemes_tweet_button’)==”){
    templ_show_twitter_button();
    }
    if(get_option(‘ptthemes_facebook_button’)==’Yes’ || get_option(‘ptthemes_facebook_button’)==”){
    templ_show_facebook_button();
    }
    ?> </div>

    <div class=”single_bottom”>
    <span class=”i_email”><?php _e(‘Send to Friend’);?></span>

    <div class=”addthis_toolbox addthis_default_style”>
    <?php _e(‘Share’);?>
    </div>
    <script type=”text/javascript” src=”http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4c873bb26489d97f”></script&gt;

    <?php if(get_option(‘ptthemes_details_tags’)==’Yes’ || get_option(‘ptthemes_details_tags’)==”){?>
    <?php the_tags(‘<span class=”single-post-tags”>’, ‘, ‘, ‘</span>’); ?>
    <?php } ?>
    </div>

    </div>

    <div class=”post-navigation clear”>
    <?php
    $prev_post = get_adjacent_post(false, ”, true);
    $next_post = get_adjacent_post(false, ”, false); ?>
    <?php if ($prev_post) : $prev_post_url = get_permalink($prev_post->ID); $prev_post_title = $prev_post->post_title; ?>
    “>Previous post<span><?php echo $prev_post_title; ?></span>
    <?php endif; ?>
    <?php if ($next_post) : $next_post_url = get_permalink($next_post->ID); $next_post_title = $next_post->post_title; ?>
    “>Next post<span><?php echo $next_post_title; ?></span>
    <?php endif; ?>

    </div>
    </div>

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

    <?php if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Single Page Post Below’)){?>
    <!– <div class=”allinone”> </div> all in one #end –>
    <?php } else {?> <?php }?>

    <?php comments_template(); ?>

    <?php if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(‘Page Content Below’)){?>
    <!– <div class=”allinone”> </div> all in one #end –>
    <?php } else {?> <?php }?>

    </div> <!– /Content –>

    <div class=”sidebar right”>
    <?php
    if(!templ_check_post_like($post->ID))
    {?>
    <div id=”addlike”>ID;?>’);” ><?php _e(‘Like This Article’);?> </div>
    <?php
    }else{?>
    <?php _e(‘You Like This’);?>
    <?php }?>
    <?php get_related_posts($post);?>

    </div> <!– sidebar #end –>
    <!–Page 2 column – Right Sidebar #end –>

    <script type=”text/javascript” language=”javascript” >
    var root_path_js = ‘<?php echo get_option(‘siteurl’).”/”;?>’;
    </script>
    <script type=”text/javascript” language=”javascript” src=”<?php bloginfo(‘template_directory’); ?>/library/js/article_detail.js” ></script>
    <?php include_once (TEMPLATEPATH . ‘/library/includes/send_to_friend/popup_frms.php’);?>
    <?php get_footer(); ?>

    Dug through it pretty thoroughly. I am almost certain that the issue is in .php code somewhere…. php -l a number of files… ok.

    CSS works for home page, archives, index…. not on single post – so that is probably where the hidden culprit is… going to keep digging….

    help… 🙁

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Very tricky Right Side Bar Drops Issue’ is closed to new replies.