Really like this module, it has almost everything I need. One thing that would be real useful for my needs was if it was possible to add a token that will replace the date with "Today", "Yesterday", "x days ago" where x can be both a number or word (three...fifty...) and so on. Or optionally "Today", "Yesterday" and then date when older.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 375887-token-date-since-small.patch | 10.33 KB | dave reid |
| #11 | 375887-token-date-since-D6.patch | 10.33 KB | dave reid |
| #8 | 375887-token-date-since-D6.patch | 3.12 KB | dave reid |
Comments
Comment #1
nancydruThis needs to be in the Token queue, but DO won't let me move it at the moment.
Comment #2
nancydruMoving to Token
Comment #3
tommytom commentedso is this possible to do ?
Comment #4
nancydruViews does it, so it must be.
Comment #5
tommytom commentedI added this to template.php (garland theme):
and it works like on youtube -> user name (x days ago)
Comment #6
nancydruThe technique would be similar, but needs to be made as a token (or two).
Comment #7
sadist commentedtommy, i'd tried the code. but it only works for comments and not for nodes' (on it's page or front-page list). any idea for that?
and how can i translate the 'days, weeks, hours, etc.'?
Comment #8
dave reidPatch that adds a 'since' date token. For nodes it's [since] and [mod-since], for comments its [comment-since], etc.
Comment #9
dave reidComment #10
nancydruThanks, Dave. I would suggest one change:
Comment #11
dave reidRevised patch that adds a '-small' date prefix, uses standard date tokens for user login and creation (while still supporting the legacy tokens).
Comment #12
dave reidRe-uploading for the bot
Comment #13
dave reidCommitted to CVS.
http://drupal.org/cvs?commit=377474