Drupal is up and running but how do I ...?

Module to check email spam score with Drupal 9/10

Hi,

Looking for the module or script that will check the email spam score before an email is sent to the user. Tried spammaster and akismet contrib modules but they require a license key to configure. akismet gives a free API key but it is configurable with pre-defined forms in Drupal like webform, contact, user login, or register. Checked some other modules but that are not supported to Drupal 10.

Is there any way we can check the spam score before we call mail() function from the custom module?

Thanks,

Getting "Entity:user is required and non present" error for unauth users

My site isn't loading for any unauthenticated users, saying it encountered an unexpected error and the following exception: 

Drupal\Component\Plugin\Exception\ContextException: The 'entity:user' context is required and not present. in Drupal\Core\Plugin\Context\Context->getContextValue() (line 73 of core/lib/Drupal/Core/Plugin/Context/Context.php).

There have been no error messages in the server console. 
My administrative account, which was already logged in before the problem, can access everything fine. 

Resizing external images in Colorbox

I have HTML which embeds an externally hosted image ("image_url"), and loads this image in a colorbox when clicked. This works fine, but the external image is larger than the colorbox iframe. This means that it shows a portion of the image, navigable by vertical and horizontal scroll bars. How do I rescale the image so that it fits within the colorbox iframe?

Additionally, how would I get the colorbox iframe to match the aspect ratio of the external image?

My code is pasted below. Many thanks in advance.

Theme, dimensions

Hi, I am working on the theme to figure out how to make the layout
I have seen that most themes leave 2 vertical spaces to the left and right of the content (same for the header as well). Is there a specific reason or is it out of habit ?
If I view the page with a 13' screen these spaces are no longer there
I would like to have a full screen display and, if the left menu is present, shrink the content (displaying both menu and content)
Is this wrong what I would like to accomplish ?

question about layout builder

I'm using Layout builder, and sometimes I have an error like "The block name is already used." but there is no such block name in the custom block list.

I suspect when I use "create custom block" option in Layout Builder, the name of custom block is added to the system's custom Block list but not shown in the list of custom block.

Any advice?

Drupal 10, Olivero sub-theme

I have Google geofieldlocation, but map does not center to the input location

I have a Geofield field in a content type. It has been working properly. But now I enter an out-of-town location, and the location is shown on the map, but the user must scroll a long way to see it. How do I set the map to center on the selected location?

Fixed this. In the field setting it had force center set to yes.

Pages

Subscribe with RSS Subscribe to RSS - Post installation