I have been using Advanced Forum 7.x-2.1 for quite some time now with no problems. Last night I tried installing the latest Dev version (2013-Jun-05). What happened was it broke all of my teasers on the entire site. So I had to revert back to 7.x-2.1.

All of my teasers are customized to be slightly different depending on what node type is being displayed. Below is an example of the Article Teaser (node-article-teaser.tpl.php). This works perfectly until I install the Dev version then everything gets all messed up. The styling gets trashed and I get double titles for each item. I have no idea why this would happen. I didn't change any settings. Reverting back to 7.x-2.1 fixes everything back to normal.

<?php
/**
 * node teaser template
 * if you want to use custom teaser templates based on node types
 * just copy this file and rename it
 * for example: node--page--teaser.tpl.php for page teasers
 */
?>

<article<?php print $attributes; ?>>

  <?php if (!$page && $title): ?>
    <header>
      <div class="article-icon">
        <a href="/articles" title="Articles"></a>
      </div>

      <?php if ($display_submitted): ?>
        <div class="teaser-date">

          <div class="teaser-date-month">
            <?php print t(date('M',$node->created)); ?>
          </div>
          <div class="teaser-date-wrap">
            <div class="teaser-date-day">
              <?php print date('d',$node->created); ?>
            </div>
            <div class="teaser-date-year">
              <?php print date('Y',$node->created); ?>
            </div>
          </div>
        </div>
      <?php endif; ?>

      <?php print render($title_prefix); ?>
      <h2<?php print $title_attributes; ?>><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
      <?php print render($title_suffix); ?>
    </header>
  <?php endif; ?>

  <div<?php print $content_attributes; ?>>
    <?php
      // We hide the comments and links now so that we can render them later.
      hide($content['comments']);
      hide($content['links']);
      print render($content);
    ?>
  </div>

</article>

Comments

troky’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Check CHANGELOG.TXT for changes ffrom 2.1 release and try to find out what commit messed up your template.

wimberb’s picture

It would appear that https://drupal.org/node/2035217 describes the same issue I am having. I am using Views to display the teasers also.

troky’s picture

Category: support » bug
Status: Postponed (maintainer needs more info) » Closed (duplicate)