Active
Project:
Views Custom Field
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2012 at 17:07 UTC
Updated:
9 Mar 2012 at 17:07 UTC
I have tried both
$node_author = user_load($node->uid);
$author_created_time = $node_author->created;
$four_weeks_ago = time() - (28 * 24 * 60 * 60);
if ( $author_created_time >= $four_weeks_ago) {
$this_user_is_new="new";
print $this_user_is_new
}
and
$author_created_time->user_created;
$four_weeks_ago = time() - (28 * 24 * 60 * 60);
if ( $author_created_time >= $four_weeks_ago) {
$this_user_is_new = "new";
print $this_user_is_new
}
How can I retrieve the created time of the node author ?