Show block if node is older than 2 year

WordPress has a module to do this and it should be easy in Drupal 7. But i'm not very good with PHP .. 

I want to show a text when the node is older than a year (or so). Best way to do this, is to always show the block, but determine if the creation-date is older than 2 years. Like,

If creation date = older than 2 years then { text }

else { nothing }

The if .. else is not a problem for me, but how can i get the node-creation date and compare it to current date? 

Drupal and Ontraport combined (instead of Mailchimp)

Hi Drupalers, 

a client wants to integrate Ontraport with a Drupal site (still it´s not sure if it will be D7 or D8). Has anyone experience with this? (I googled it, but absolutely nothing could be found

How do you connect Ontraport & Drupal? https://ontraport.com/

Change default on login url

How do I change Drupal's default on login url from /user/<uid> to /user/<uid>/edit so that a user gets to there right after they log in?

EDITED

Tried Rules:

Events: User has logged in.

Condition: User has role.

Actions: Page redirect to user/[current-user:uid]/edit

For some reason it doesn't work.

How to prevent the use of the site if the user has not created a content

Hi guys,
i want to prevent the use of the site If the authenticated user has not created a specific content type.

So, if user click on any link It should be redirected to the creation of that content.

Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x