Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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=”https://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 1 replies (of 1 total)