Hide images older than two weeks

I have a news website built on Drupal 7. I need to hide all images on this website's articles, if the articles are older, than two weeks. I believe a solution would look like one line of PHP code, that you need to add to these articles' template. The line would check a date of the article and then add probably "display:none" into styles of all images. Unfortunately, I don't know PHP. Could someone please help me with the line?

How to to increase the memory_limit of php_value

We have chosen Drupal as a solution for content management system in one of Stellantis Portal,and it's since 2017.
Now we are looking for a support from Drupal team in fixing an memory issue in Drupal web server, need to increase the memory_limit of php_value to handle the current content size.Error details below.

* Connecte[Wed Aug 31 15:28:52.533667 2022] [php7:error] [pid 25637] [client 151.171.116.54:34652] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes)

Can memory_limit of php_value made 512M

Adding NID to Webform?

Hi

D7

I use just one Webform for all nodes, and there are quite a few of them as I present products. I add the webform the the nodes by using Context.

Is it possible to have the NID printed in the webform when the client answer? People take it for granted that I can see on what page they where when they answered, but if they don' give any reference I cant figure out what product they want info about.

Any idea about how to arrange this?

Drupal 7 missing from the file system: choices

Drupal 7.91

I am attempting to migrate a site and it is functioning correctly until I attempt to login as administrator.

I am trying to recover a backup that I created by Backup and Restore in Nov 2020 (I have more recent backups but one also failed restore)

I set $update_free_access = TRUE; but when it attempt to update I get this message:

The following module is missing from the file system: choices.

I can't find any documentation about a choices module.

What is causing this error?

Render the Term Reference Tree node view identically to the node admin version

The Term Reference Tree module renders a nice checkbox tree on the node admin page but renders differently on the node view page (See pic).  I'm sure there is a fairly easy way to make it render identically but I can't figure out how to do it.  If any of you CSS whizzes know how I would really appreciate the help.

Thanks for your thoughts.

link to image 

Drupal 7 problem editing pages - get overlay that blocks edit

I am attempting to migrate a site to a test site, and it is working except when I am administering  but when I attempt to edit a page the page gets an overlay which prevents me from editing.

I am using ckeditor although I have disabled it and it made no difference.

I have cleared caches and tried a different browser.

Any suggestions to what I have done wrong will be appreciated.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x