logo       

Re: Two problems: msg#00027

php.drupal.support

Subject: Re: Two problems

> Yes in the theme_node, use a static of global variable to store the date
> of the last node, and then compare the current nodes date to this and
> decide if you need to display the date.

Eh, I forgot to say that I know nothing of PHP and I'm using phptemplate, I
can just play with it.
The node.tpl.php is like this:

<div class="node<?php print ($static) ? " static" : ""; ?>">
<?php if ($page == 0): ?>
<div class="title">
<?php print $title ?>
</div>
<?php endif; ?>
<?php if ($avatar): ?>
<div class="avatar"><?php print $avatar ?></div>
<?php endif; ?>
<div class="content">
<?php print $content ?>
</div>
<div class="posted">
Posted by <b><?php print $name ?></b> on <?php print $date ?> | <a
href="<?php print $node_url ?>" title="<?php print $title ?>">permalink</a>
| <?php if ($links): ?><?php print $links ?><?php endif; ?>
</div>
</div>

I don't know about anything else, if I need to add something in there I'll
need an example because I have no idea on how to do what you said.

Abalieno

--
[ Drupal support list | http://list.drupal.org/ ]



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise