Adrian Tobey
Forum Replies Created
-
I haven’t heard back from you so I’m going to close this ticket. If you still need help please respond.
Hi Ken,
I understand the usefulness of such a feature. We’ve added it to our feature requests board. There’s a lot of functionality in Groundhogg that is currently dependent on the
user_email
field, so changing it to a different field likegh_from_email
all would be not be exactly super straightforward, at least not quickly.
For now, a possible workaround might be a code snippet that you keep updated which hooks into the the PHPMailer function directly and swaps out the from email address at the last minute.For example…
<?php
/**
* Swap out the from email address for specific emails.
* This does not change the reply-to if set.
*
* @param $from_email
*
* @return mixed|string
*/
function swap_from_email_address( $from_email ) {
// make sure Groundhogg is active
if ( ! defined( 'GROUNDHOGG_VERSION' ) ) {
return $from_email;
}
// add additional mappings as needed
$email_mappings = [
'[email protected]' => '[email protected]',
'[email protected]' => '[email protected]',
];
// Check to see if the given from is in the email map
if ( \Groundhogg\isset_not_empty( $email_mappings, $from_email ) ) {
return $email_mappings[ $from_email ];
}
// if it's GMAIL or YAHOO or something.
if ( \Groundhogg\is_free_email_provider( $from_email ) ) {
// use the default from email instead
return \Groundhogg\get_default_from_email();
}
return $from_email;
}
add_filter( 'wp_mail_from', 'swap_from_email_address', 9 ); // run before other hooks- This reply was modified 1 month, 2 weeks ago by Adrian Tobey.
Hi!
Could you please be more specific? Search by email is working just fine for me.
Thanks for letting us know. I’ve passed it on to dev and I’ll update this ticket when it’s resolved. Thanks!
Hi!
I guess it depends on what you mean by “Lists.” For most segmentation in Groundhogg we use tags. So you can easily assign a tag depending on the role of the user if that’s your intention.
You can create saved searches (similar to dynamic lists) as well which could be based on tags and other criteria like custom fields.
Be aware that all of our WordPress User funnel integrations are part of our Advanced Features add-on. So in order to leverage user creation, or user created within a funnel you will have to either purchase that add-on or any of our plans as it’s included in all of them.
?? Merry Christmas!Regardless, our next version changes the following.
function count_unread() {
$ids = get_transient( 'gh_notification_ids' );
// expired, fetch from remote
if ( $ids === false ) {
$ids = wp_parse_id_list( wp_list_pluck( $this->fetch_remote_notices(), 'id' ) );
set_transient( 'gh_notification_ids', $ids, DAY_IN_SECONDS );
}
return count( array_diff( $ids, array_values( Notices::$read_notices ) ) );
}If the remote network request fails, an empty array will be stored in the transient. Only when the transient is explicitly false will Groundhogg attempt to retrieve notices from the remote network.
In your example, shouldn’t the act of setting WP_HTTP_BLOCK_EXTERNAL?to true prevent the remote network request though?
Hi, thanks for reaching out.
As a matter of fact, we do only try to check at most once per day, certainly not on every page load!
Our code looks as follows:
$ids = get_transient( 'gh_notification_ids' );
if ( empty( $ids ) || ! is_array( $ids ) ) {
$ids = wp_parse_id_list( wp_list_pluck( $this->fetch_remote_notices(), 'id' ) );
set_transient( 'gh_notification_ids', $ids, DAY_IN_SECONDS );
}
return count( array_diff( $ids, array_values( Notices::$read_notices ) ) );Basically, we store the notification IDs in a transient which is saved for 1 day.
If you are seeing the request on every page load it might be a result of transients not working on your site, which would affect more that Groundhogg.
Hi, thanks for reaching out!
- You are more than welcome to submit a feature request for an image field in the Groundhogg form builder.
While Groundhogg does not have this field yet, other form plugins do, and using any of our field mapping integrations it would be possible to map an image field in a 3rd party form builder to a custom field in Groundhogg. - If you were to get the image URL into a custom field, you could use the corresponding replacement code as the SRC in an image block. It wouldn’t display in the editor correctly, but it would appear normal in the preview.
- See above.
Hi! Thanks for reaching out.
Please email [email protected] directly for assistance with any billing issues.
We have this marked down as a pending feature request ??
Hi, thanks for reaching out! I’ve personally never seen that before.
MOD SECURITY is a seperate system from PHP, so I don’t believe there is any setting or adjustment, besides the structure of the cookie itself, that could impact whether it’s detected as an issue.
We have 1,000s of customers using MOD SEC with Groundhogg, but have yet to encounter this specific problem.
The content of the cookie is simple JSON data, and the system it’s paired with is pretty clamped down from a sanitization perspective given it’s public nature.
I believe the best course of action would be to mark it as a false positive if possible.Hi Paul
Setting the email to transactional will remove the unsubscribe option in an upcoming update.
Hi Carlos,
We have released an update to address this issue! Please update to the latest version and you will find you can create popups. You may have to do a hard refresh on the editor though CTRL + F5
HI There,
You can when you are using our Drag and Drop email builder which is a paid feature.
https://help.groundhogg.io/article/307-enable-the-advanced-email-editor