Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter eastsidepatch

    (@eastsidepatch)

    Thanks for that jkovis!
    Worked a treat.
    ESP.

    So I am in the typogrid-home php looking for the place to put the:

    <?php
    $withcomments = “1”;
    comments_template();
    ?>
    Text..the problem is, or I am blind I do not see the </div>
    <?php endwhile ?> anywhere? Can someone help me as to where this code needs to be positioned?

    Here is my code…

    <?
    php
    global $post;
    $typoptions = get_option(‘typogrid_options’);

    if ($typoptions[‘lnkad1’] == ”)
    $typoptions[‘lnkad1’] = ‘#’;

    if ($typoptions[‘lnkad2’] == ”)
    $typoptions[‘lnkad2’] = ‘#’;

    if ($typoptions[‘lnkad3’] == ”)
    $typoptions[‘lnkad3’] = ‘#’;

    function string_limit_words($string, $word_limit, $section) {
    $words = explode(‘ ‘, $string, ($word_limit +1));
    if(count($words) > $word_limit) {
    array_pop($words);
    if ($section == ‘latest’) {
    $words[25] .= ‘…’;
    } elseif ($section == ‘popular’) {
    $words[45] .= ‘…’;
    }
    }
    return implode(‘ ‘, $words);
    }

    ?>
    <div id=”content” class=”hfeed”>
    <h3 class=”typoblock <?php echo $typoptions[‘colorfeatured’]; ?>”><span><?php if ($typoptions[‘titlefeatured’] == ”) { echo ‘Featured’; } else { echo $typoptions[‘titlefeatured’]; } ?></span></h3>
    <div class=”typoline”></div>
    <div id=”featured”>
    <?php
    if ($typoptions[‘catfeatured’] == ”) {
    $catfeat = ‘featured’;
    } else {
    $catfeat = $typoptions[‘catfeatured’];
    }

    if ($typoptions[‘numfeatured’] == ”) {
    $numfeatposts = 3;
    } else {
    $numfeatposts = $typoptions[‘numfeatured’];
    }

    query_posts(‘category_name=’.$catfeat.’&showposts=’.$numfeatposts);
    $feat_post_count = 0;

    while (have_posts()) {
    the_post();
    $feat_post_count++;

    $feat_image_url = get_post_meta($post->ID, ‘thesis_post_image’, true);

    ?>
    <div class=”post post_box” id=”post-<?php echo $post->ID; ?>”>
    <div class=”featured_image” style=”background:url(‘<?php echo $feat_image_url; ?>’) no-repeat;”>
    <div class=”headline_featured”>
    <h2 class=”entry-title”>” rel=”bookmark” title=”Permanent link to <?php the_title(); ?>”><?php the_title(); ?></h2>
    </div>
    </div>
    <div class=”headline_area”>
    <p class=”headline_meta”><abbr class=”published” title=”2009-06-06″><?php the_time(‘F jS, Y’); ?></abbr> · <span>” rel=”nofollow”><?php comments_number(‘0 Comments’,’1 Comment’,’% Comments’); ?></span></p>
    </div>
    <div class=”format_text entry-content”>
    <?php the_excerpt(); ?>
    </div>
    </div>
    <?php
    }
    ?>
    </div><!–end featured–>
    </div><!–end content–>

    <div id=”popular”>
    <h3 class=”typoblock <?php echo $typoptions[‘colorpopular’]; ?>”><span><?php if ($typoptions[‘titlepopular’] == ”) { echo ‘Popular’; } else { echo $typoptions[‘titlepopular’]; } ?></span></h3>
    <div class=”typoline”></div>
    <?php
    if ($typoptions[‘catpopular’] == ”) {
    $catpop = ”;
    } else {
    $catpop = $typoptions[‘catpopular’];
    }

    $typocatidpop = get_cat_ID( $catpop );
    if ( $typocatidpop != ” ) {
    $typocatlink = get_category_link( $typocatidpop );
    } else {
    $typocatlink =’#’;
    }

    query_posts(‘category_name=’.$catpop.’&showposts=2′);
    $popular_post_count = 0;

    while (have_posts()) {
    the_post();
    $popular_post_count++;

    $popular_image_url = get_post_meta($post->ID, ‘thesis_post_image’, true);
    $popular_image[‘alt’] = get_post_meta($post->ID, ‘thesis_post_image_alt’, true);

    if ($popular_image_url != ”) {
    $popular_local_path = explode($_SERVER[‘SERVER_NAME’], $popular_image_url);
    $popular_image[‘url’] = THESIS_SCRIPTS_FOLDER . ‘/thumb.php?src=’ . $popular_local_path[1] . ‘&w=209&h=145&zc=0&q=100’;
    }

    $popular_excerpt = get_the_excerpt();
    ?>
    <div class=”post post_box <?php if ($popular_post_count == 2) echo ‘ last’; ?>” id=”post-<?php echo $post->ID; ?>”>
    <div class=”headline_area”>
    <?php if ($popular_image[‘url’] != ”) { ?>
    <img src=”<?php echo $popular_image[‘url’]; ?>” alt=”<?php echo $popular_image[‘alt’]; ?>”/>
    <?php } ?>
    <h2 class=”entry-title”>” rel=”bookmark” title=”Permanent link to <?php the_title(); ?>”><?php the_title(); ?></h2>
    <p class=”headline_meta”><abbr class=”published” title=”2009-06-06″><?php the_time(‘F jS, Y’); ?></abbr> · <span>” rel=”nofollow”><?php comments_number(‘0 Comments’,’1 Comment’,’% Comments’); ?></span></p>
    </div>
    <div class=”format_text entry-content”>
    <p><?php echo string_limit_words($popular_excerpt,45,’popular’); ?> ” rel=”bookmark” class=”typoreadmore<?php echo $typoptions[‘colorpopular’]; ?>”>More</p>
    </div>
    </div>

    <?php
    $popular_image[‘url’] = ”;
    $popular_image[‘alt’] = ”;
    }
    ?>
    </div><!–end popular–>

    <div id=”featured_nav”>
    <div class=”prev_next”>
    <?php if ($numfeatposts != 1) { ?>
    <p id=”typoprev” class=”previous floated”>Previous</p>
    <p id=”typonext” class=”next”>Next</p>
    <?php } ?>
    </div>
    <div class=”popular_section_meta”>
    <p class=”typogrid_section_meta”>“>browse category</p>
    </div>
    </div><!–end featured_nav–>

    </div><!–end content_box–>
    </div><!–end page–>
    </div><!–end content_area–>

    <div id=”welcome_area” class=”full_width”>
    <div class=”page”>
    <div id=”welcome”>
    <div id=”welcome_txt”>
    <p class=”typogrid_headline”><?php if ($typoptions[‘titlewelcome’] == ”) { echo ‘Welcome’; } else { echo $typoptions[‘titlewelcome’]; } ?></p>
    <div class=”format_text”>
    <p class=”middleblock”><?php if ($typoptions[‘txtwelcome’] == ”) { echo ‘Welcome visitors to your site with a warm and friendly message. You can change the heading and the text for this section in the Typogrid Options page.’; } else { echo $typoptions[‘txtwelcome’]; } ?></p>
    </div>
    </div>

    <div id=”typogrid_ads_home”>
    <ul id=”ads_125x125″>

    • <?php if ($typoptions[‘imgad1’] != ”) { echo ‘<img src=”‘.THESIS_CUSTOM_FOLDER.’/images/ads/’.$typoptions[‘imgad1’].'” />‘; } else { echo ‘<p><span class=”txt_white”>Ad Spot</span>
      125 x 125</p>’; } ?>
    • <?php if ($typoptions[‘imgad2’] != ”) { echo ‘<img src=”‘.THESIS_CUSTOM_FOLDER.’/images/ads/’.$typoptions[‘imgad2’].'” />‘; } else { echo ‘<p><span class=”txt_white”>Ad Spot</span>
      125 x 125</p>’; } ?>
    • <?php if ($typoptions[‘imgad3’] != ”) { echo ‘<img src=”‘.THESIS_CUSTOM_FOLDER.’/images/ads/’.$typoptions[‘imgad3’].'” />‘; } else { echo ‘<p><span class=”txt_white”>Ad Spot</span>
      125 x 125</p>’; } ?>
    • </div><!–end typogrid_ads_home–>
      </div><!–end welcome–>
      </div><!–end page–>
      </div><!–end welcome_area–>

      <div id=”latest_area” class=”full_width”>
      <div class=”page”>
      <div id=”latest”>
      <h3 class=”typoblock <?php echo $typoptions[‘colorlatest’]; ?>”><span><?php if ($typoptions[‘titlelatest’] == ”) { echo ‘Latest’; } else { echo $typoptions[‘titlelatest’]; } ?></span></h3>
      <div class=”typoline”></div>
      <?php
      $typocatidfeat = get_cat_ID( $catfeat );
      $latestcatexclude = array($typocatidfeat,$typocatidpop);
      query_posts(array(‘category__not_in’=>$latestcatexclude,’showposts’=>4));
      $latest_post_count = 0;

      while (have_posts()) {
      the_post();
      $latest_post_count++;

      $latest_image_url = get_post_meta($post->ID, ‘thesis_post_image’, true);
      $latest_image[‘alt’] = get_post_meta($post->ID, ‘thesis_post_image_alt’, true);

      if ($latest_image_url != ”) {
      $latest_local_path = explode($_SERVER[‘SERVER_NAME’], $latest_image_url);
      $latest_image[‘url’] = THESIS_SCRIPTS_FOLDER . ‘/thumb.php?src=’ . $latest_local_path[1] . ‘&w=209&h=145&zc=0&q=100’;
      }

      $latest_excerpt = get_the_excerpt();
      ?>
      <div class=”latest_box<?php if ($latest_post_count == 4) echo ‘ last’; ?>” id=”post-<?php echo $post->ID; ?>”>
      <div class=”headline_area”>
      <?php if ($latest_image[‘url’] != ”) { ?>
      <img src=”<?php echo $latest_image[‘url’]; ?>” alt=”<?php echo $latest_image[‘alt’]; ?>”/>
      <?php } ?>
      <h2 class=”entry-title”>” rel=”bookmark” title=”Permanent link to <?php the_title(); ?>”><?php the_title(); ?></h2>
      <p class=”headline_meta”><abbr class=”published” title=”2009-06-06″><?php the_time(‘F jS, Y’); ?></abbr> · <span>” rel=”nofollow”><?php comments_number(‘0 Comments’,’1 Comment’,’% Comments’); ?></span></p>
      </div>

      <div class=”format_text entry-content”>
      <p><?php echo string_limit_words($latest_excerpt,25,’latest’); ?> ” rel=”bookmark” class=”typoreadmore<?php echo $typoptions[‘colorlatest’]; ?>”>More</p>
      </div>
      </div>
      <?php
      $latest_image[‘url’] = ”;
      $latest_image[‘alt’] = ”;
      }
      ?>
      </div><!–end latest–>
      <?php
      $typoarchivelnk = $typoptions[‘lnkarchives’];
      if ( $typoarchivelnk == ” )
      $typoarchivelnk = ‘#’;
      ?>
      <div id=”latest_nav”>
      <div class=”archive_section_meta”>
      <p class=”typogrid_section_meta”>“>view archives</p>
      </div>

    I have this issue. No way to comment unless you actually click on the individual blog title, then at the bottom of the post is the comment box. How do I add the comment box to the bottom of all my posts?
    You can see what I mean here:

    https://www.eastsidepatch.com/

    (I am running Thesis with the Type Pad skin)

    Please can anyone help me – I am going crazy. I love my new blog but this isue will kill it!
    ESP.

Viewing 3 replies - 16 through 18 (of 18 total)