Skip to content

Update membership-check.php to include timezone check#672

Merged
mauteri merged 6 commits intoGatherPress:mainfrom
pbrocks:gp-admin-alert-timezone
Jun 5, 2024
Merged

Update membership-check.php to include timezone check#672
mauteri merged 6 commits intoGatherPress:mainfrom
pbrocks:gp-admin-alert-timezone

Conversation

@pbrocks
Copy link
Copy Markdown
Collaborator

@pbrocks pbrocks commented Jun 4, 2024

Adding a second link to admin message for timezone

image

Taken to the setting for Timezone

timezone-check

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Jun 4, 2024

PR Summary

  • New Hyperlink Addition to Improve User Registration
    A new hyperlink has been integrated into a certain section of our website, specifically within a file named membership-check.php. This hyperlink directs users to both their registration settings and timezone settings, thereby making it easier for users to configure optimal site preferences. With this change, the site will additionally assess the status of user registration and timezone settings, to ensure optimal functionality of the service. This is aimed at improving user experience and maximizing the utility of our platform.

@@ -15,9 +15,12 @@
<?php
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename the file site-check.php since this incorporates more than membership now.

Change the option gatherpress_suppress_membership_notification to gatherpress_suppress_site_notification. We can update this change in GatherPress Alpha.

/* translators: %s: "enabling user registration here" (hyperlinked) */
esc_html__( 'To ensure GatherPress functions optimally, we recommend enabling user registration. You can do so by %s', 'gatherpress' ),
esc_html__( 'To ensure GatherPress functions optimally, we recommend enabling user registration and setting your site\'s timezone. You can do so by %s and %s', 'gatherpress' ),
'<a href=' . esc_url( admin_url( 'options-general.php#users_can_register' ) ) . '>'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^^ this will need to be fixed too.

} else {
Utility::render_template(
sprintf( '%s/includes/templates/admin/setup/membership-check.php', GATHERPRESS_CORE_PATH ),
sprintf( '%s/includes/templates/admin/setup/site-check.php', GATHERPRESS_CORE_PATH ),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you search/replace gatherpress_suppress_membership_notification and change to gatherpress_suppress_site_notification too? Thx!

Copy link
Copy Markdown
Contributor

@mauteri mauteri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! I'll tag 0.29.0 and then push a change to GatherPress Alpha and then merge this.

<?php
printf(
/* translators: 1: Enabling user registration 2: Setting time zone */
esc_html__( 'To ensure GatherPress functions optimally, we recommend enabling user registration and setting your site\'s timezone. You can do so by %1$s and %2$s', 'gatherpress' ),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this, can you add a period at the end?

You can do so by %1$s and %2$s.

@mauteri mauteri merged commit 7218df7 into GatherPress:main Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants