πŸ‡ΊπŸ‡ΈUnited States @jsidigital

Account created on 22 June 2011, about 13 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Agreed.
I have been searching for said alternatives and cannot find anything.
No similar modules that are more secure, no tutorials or guides to create a custom module, no PHP twig implementation guide, no custom token PHP implementation guide... nothing.

So what are those "better alternatives"?

πŸ‡ΊπŸ‡ΈUnited States jsidigital

jsidigital β†’ created an issue.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Thank you for the reply @goodboy

Not sure if I follow...

So basically I set my settings to use REGEXP, then use this?
foo%/%foo%.%foo%.%foo%.%foo%

This would cover any link that ends in an IP address?

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Any updates on this?

πŸ‡ΊπŸ‡ΈUnited States jsidigital

I am having the same problem.
[error] File not found: /home/mysite/public_html/web/modules/contrib/mobile_detect/lib/mobiledetect-mobiledetectlib/v2.8.37/Mobile_Detect.php.

Anyone find a solution yet?

πŸ‡ΊπŸ‡ΈUnited States jsidigital

I noticed User Email Verification has a rules integration but has bugs since rules is very unstable.

This module creates a table in the database called "user_email_verification"
In that table there is a "state" column. If cell contains "1", email is verified.
So basically all is needed is ECA to have a condition plugin that reads the current user's UID and see if that user has a status of "1" in the user_email_verification table.

Can you provide the link to the ECA channel of Drupal Slack? I could not find it.
I want to see if anyone is able and willing to make this happen and if so, how much that would cost.

Thank you.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

I tried using this for rules but get errors.
I want to add a rule on user login (event), that if email is verified (condition), add role "verified" (action).

However, I get an error everytime.

Is the problem this module or the Rules module?

Since ECA is much more stable, can we add the "Email is Verified" condition to ECA? Willing to pay for that integration if anyone is able to do that.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

No wonder so many people are hating on Rules... it has been over 9 months and still no release.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

@sandipta,

The Rules module patch seems to have fixed both issues with Context and the Block.
Although I am confused as to why there is even a Rules module integration when Rules is so unstable.

Perhaps instead of Rules integration, an ECA module integration is better since that is stable?

This is bitter sweet.
It is good that this problem is solved with that patch...
However, it is bad because I am left with same problem I had to begin with.
I cannot create actions based on conditions in context module or eca module.

I was trying to use context (or ECA) to create a condition and action...
If current user is verified, then remove "not verified" role.

And another condition and action...
If current user is not verified, display message with link to resend verification email when user clicks on link.

Both of these options are not possible without context or ECA integration that I know of.

Does anyone know of a way to get these two actions with conditions working?
If it requires a custom module, is anyone willing to do it for a fee?

Thank you.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

@sandipta & uttam,

Thank you for the quick reply.

I hope the block issue gets resolved soon.

And regarding the Rules module patch you mention...
I was not using rules at all, I was using the Context Module.
Does the context module use the rules conditions or how does that rules module patch relate to context module?

πŸ‡ΊπŸ‡ΈUnited States jsidigital

jsidigital β†’ created an issue.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Thank you for the reply.

However, I cannot use /userpanel/* as a wildcard because I need the registration form to keep cleantalk.
Using /userpanel/* would remove cleantalk from all user related pages, including the registration form.
I need cleantalk on the registration page.

So am I able to use /userpanel/*/edit as a wildcard or does it have to be as you suggest?

Or can I add /userpanel/* as an exclusion but have an option to whitelist pages? This way I can exclude all /userpanel/* paths except /userpanel/register which would be whitelisted/included.

NOTE:
Drupal by default uses /user/, but I am using the Rename Admin Paths module and use /userpanel/ as my user paths there.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Confirming...
Patch #2 works for 1.0.0-beta2. Upgrade status module shows it as compatible with Drupal 10.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Also interested to know when a Drupal 10 version of this module will be released.
Thanks.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Agree with lhridley.

Any plans on releasing a Drupal 10 version soon since dev is already compatible?

Thanks.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

All good info...
However, I have not been able to find anything on how to Print a product variation IF...

I have a product variation type with a spotify field.
In the twig, I want to display it only if a value exists, if not, do not show.
Following other product type fields, this method works, however, it does not work on product variation types.

Here is my code:

{% if product.variation_field_spotify|render is not empty %}
  <div class="field-label">{{ 'Streaming'|t }}</div>
  <div class="product-spotify">{{ product.variation_field_spotify }}</div>
{% endif %}

When a product is missing this field, nothing should print, however I still get this:

  <div class="field-label">{{ 'Streaming'|t }}</div>
  <div class="product-spotify"> </div>

Clearly the 'if product.variation_field_spotify|render is not empty' does not work on product variation fields.
How would I do this then?

Thank you.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Hello Shailja179,
What do you mean that the private folder name/permission is correct?

Are you referring to the actual ftp private folder? This is correct because if I switch to regular generic file download, the file downloads. Only when I select file with counter that I get a 404 page error.

Not really sire what you mean. Hope you can explain in more detail?

Thank you.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

jsidigital β†’ created an issue.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

I found the problem.
I did make the changes as indicated, except for my config files which were causing the problem.
After I updated my config files after running drush updb, all error messages went away and was able to upgrade to 3.x.

Thank you.

πŸ‡ΊπŸ‡ΈUnited States jsidigital

Thank you for the quick reply.
I will look at the upgrade instructions again in more detail.

Question...
I do not have commerce_recurring or recurring_period enabled. The reason why commerce_license is enabled is because it is required for the commerce_file module.

With this in mind, do I still have to make changes to recurring_period even though I do not have that enabled? This is where my confusion comes from.

Thanks.

Production build 0.69.0 2024