I am setting up a 6.5 website (to convert to from 5.11). In my 5.11 production site I have rounded edges around the articles I have published, just as shown on the demo pages. But with my 6.5 website the rounded edges do not appear. Only a separator line is displayed between the messages. This is only the case for the stories, the other blocks do have rounded edges and shadows.

Am I overlooking anything?

CommentFileSizeAuthor
#8 node-og-group-post.tpl_.php_.txt3.43 KBedvanleeuwen

Comments

Jeff Burnz’s picture

Sure your in the right place here? There is no 5.x version for Pixture Reloaded (old Pixture theme yes, Reloaded version - no).

Can't really help you without a link.

edvanleeuwen’s picture

You're right, jmburnz. Sorry for the mixup. I use Pixture for my 5.11 site, but want to use Pixture Reloaded with my new 6.5 site.

You can look at it on http://ds9.hobby-site.org/rsv/drupal-6.5

Jeff Burnz’s picture

Check if there is a file called node.tpl.php in the theme folder, and that is on the web server. It looks like the node.tpl.php file that comes with Pixture Reloaded is missing.

If there is a node.tpl.php file in your theme folder, please paste the file here so I can look at it.

If there is no such file, download the theme again and try again.

edvanleeuwen’s picture

Here are the contents of the file which resides in /themes/pixture_reloaded. The file date is 9-9-2008.

<?php // $Id: node.tpl.php,v 1.3 2008/09/09 13:14:22 jmburnz Exp $
/**
 * @file
 *  node.tpl.php
 *
 * Theme implementation to display a node.
 *
 * @see template_preprocess()
 * @see template_preprocess_node()
 */
?>
<div class="node <?php print $node_classes; ?> <?php if (is_front) { print 'front-node'; } ?>" id="node-<?php print $node->nid; ?>">
  <div class="node-inner-0"><div class="node-inner-1">
    <div class="node-inner-2"><div class="node-inner-3">

      <?php if ($page == 0): ?>
        <h2 class="title"><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
      <?php endif; ?>

      <?php if ($unpublished): ?>
        <h4 class="unpublished"><?php print t('Unpublished'); ?></h4>
      <?php endif; ?>

      <?php if (!empty($picture)) print $picture; ?>

      <?php if (!empty($submitted)): ?>
        <div class="submitted"><abbr title="<?php print format_date($node->created, 'custom', "l, F j, Y - H:i"); ?>">
	      <?php print format_date($node->created, 'custom', "F j, Y"); ?></abbr> <?php print t('by'); ?> <em><?php print $name; ?></em>
        </div>
      <?php endif; ?>

      <?php if (count($taxonomy)): ?>
        <div class="taxonomy"><?php print t('Posted in ') . $terms; ?></div>
      <?php endif; ?>

      <div class="content clearfix">
        <?php print $content; ?>
      </div>

      <?php if (!empty($links)): ?>
        <div class="actions clearfix"><?php print $links; ?></div>
      <?php endif; ?>

    </div></div>
  </div></div>
</div> <!-- /node -->

Jeff Burnz’s picture

Yes, but is it on the server?

Did you try simply uploading that file again?

What is happening is that Drupal is pulling its own default node.tpl.php file (from the node module) instead of using the node.tpl.php file provided by the Pixture Reloaded theme. That tends to tell me that PR's node.tpl.php is not actually on the server.

You need to look on the server to double check its actually been uploaded to the server (use FTP to look at what files are on the server inside the Pixture Reloaded theme folder).

If its there, or you upload it again and it still doesnt work, you may need to go to Performance settings and clear the cached data.

edvanleeuwen’s picture

I think I have figured out what happens. I inserted tags into all tpl.php files. Then I saw that the nodes of type 'story' are og-group-posts. When I replaced the node-og-group-post.tpl.php in the og modules directory with the node.tpl.php from the theme, the rounded edges appeared.

So I am able to solve this by copying the node template to other template files. But I am not sure whether this is a solution or just a workaround.

Jeff Burnz’s picture

You can probably copy node-og-group-post.tpl.php into your theme folder and upload it from there, make a small change in it to see if it gets pulled. At least then you upgrade OG later with no worries about over-writing your node template.

Glad you solved it - well done!

edvanleeuwen’s picture

StatusFileSize
new3.43 KB

I have attached the template file for possible inclusion in the theme if needed. Issue may be closed.

Jeff Burnz’s picture

Status: Active » Fixed

Good stuff, I wont include it in the theme but really good you posted it here for others if they need it. Cheers.

Jeff Burnz’s picture

Status: Fixed » Closed (fixed)
eff_shaped’s picture

subscribing