Stumble across this module. looks awesome, smoother than of using theme_node_submitted. But I have some questions.

First, is it possible to use time ago instead of a date with this module? Maybe its possible with another module that works with this?

Lastly would it be possible to use this on comment submit for different node types as well?

Comments

NancyDru’s picture

Hmm, I have added a [last-edit-since] token for the node created date, but not a [comment-since]. I guess I should work on that.

Yes, you can specify different formats for each content type. As a matter of fact, you have to go to admin/content/node-type (Content type admin page) to set it up. There is a separate setting for both the node and the comment appearance.

NancyDru’s picture

Status: Active » Fixed

Committed to -dev.

detot’s picture

isnt [last-edit-since] changed when the node is resaved? looking for something link [node-created-since]

NancyDru’s picture

[created-since] committed to -dev.

It would help a lot if you would encourage the Token maintainers to add these things where they belong.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

HongPong’s picture

Status: Closed (fixed) » Active

Would it be possible to get this token for [created-since] to work on the Submitted By line -- so that we can have the "last comment X time ago" in the main node teaser submitted_by line? Please close if this is not feasible, but it would be helpful.

HongPong’s picture

Status: Active » Closed (fixed)

I was able to get this working in node.tpl.php with

<?php if ($node->comment_count != '0') {echo t(' - Last comment !interval ago', array('!interval' => format_interval(time() - $node->last_comment_timestamp)));} ?>

I documented snippet at http://drupal.org/node/1795072 . Thanks