Robert Gadon
Forum Replies Created
-
@joyously I’m following everything you’re saying above.
On my local dev site, the function
wp_get_environment_type()
returns the value ‘local’. As things stand now, I can live with that.However, I am unable to modify the value of the environmental variable in
/wp-config.php
, either addingdefine('WP_ENVIRONMENT_TYPE', 'development');
_before_if ( ! defined( 'ABSPATH' ) ) {
or after
require_once ABSPATH . 'wp-settings.php';
. [The latter gets the ball rolling to loadwp_get_environment_type()
. ]I don’t know if my experience here is particular to my local dev setup ( Local by WPEngine ) or not. Earlier this year, I spun up an instance of WP using Docker. I’ll have to go back to that site and see if I can override the global environmental variable in
/wp-config.php
or not.Could also be that
wp_get_environment_type()
has only been out a short while, and the developers for Local haven’t addressed the inability to update the global environmental variable.@joyously Well, you answered my first question; the value of the global variable WP_ENVIRONMENT_TYPE is managed by PHP, and not WordPress. That explains the use of
getenv( 'WP_ENVIRONMENT_TYPE' )
in the conditional check atwp-includes/load.php
L#178-183.As to your second point:
“You should be able to define the constant in wp-config.php with one of the valid values, or it will default to ‘production’.”
I am unable to set a constant for WP_ENVIRONMENT_TYPE in
/wp-config.php
to modify the value of the global environment variable ( for example, change ‘local’ to ‘development’ ). The Query Monitor plugin returns a PHP Error Notice with the following message:“Constant WP_ENVIRONMENT_TYPE already defined”
with reference to
/wp-config.php
and the line number where thedefine()
function is passed in. Rather than simply a case of ‘Well, works for me’, I wonder if others have experienced this same issue.- This reply was modified 4 years, 1 month ago by Robert Gadon.
- This reply was modified 4 years, 1 month ago by Robert Gadon.
Hello @bmael77:
I’m no longer part of the support team that inspect customer support requests. But I did inspect the URL that you posted above. I observe that there are 14 popups registered on the page that you requested help with. You can assist the Popup Maker support team by identifying _the specific popups_ you need assistance with. Reference the slug name and ID of those popups in your response. That will help the support team to identify which popups to focus on when resolving your problem.
I took a quick look in the browser console on the triggers that you set for each of your popups. It appears that you selected the ‘Click Open’ ( Cliquez sur ouvrir ) trigger. Since you are using a form submission to redirect visitors, I recommend that you use the ‘Form Submission’ trigger in whichever popups are intended for display on this page.
See these documents:
https://docs.wppopupmaker.com/article/523-trigger-form-submission
https://docs.wppopupmaker.com/article/377-form-submit-success-options-added-by-popup-maker
There’s another thing worth mentioning. If you only need one or two popups active on a particular page, target their activation by using the PopupMaker conditions settings for each popup. It will improve the performance of your web page by requiring less resources (HTML/CSS/JS) to load in the browser.
https://docs.wppopupmaker.com/article/351-popup-settings-box-targeting-option-settings
I hope this feedback helps you to resolve your problem.
Sincerely,
Robert
- This reply was modified 4 years, 4 months ago by Robert Gadon.
Hello @rasika2000:
The features that you are asking about are available as Popup Maker premium (paid) plugin extensions.
1) To hide the close button, you would need the Forced Interaction extension ( https://wppopupmaker.com/extensions/forced-interaction/ ).
2) To require that a user confirm their age before proceeding to your site content, you would need the Age Verification Modals extension ( https://wppopupmaker.com/extensions/age-verification-modals/ ).
An annual license for either plugin can be purchased individually, or as part of either the Start or Grow Plans ( https://wppopupmaker.com/pricing/ ).
I hope this answers your questions.
Hello @anton_th:
I inspected your site in both Chrome and Firefox. The popup is activated on the page that you linked to, and the links embedded in the page
>Klik hier om het eerste hoofdstuk gratis te downloaden
are showing the popup when clicked.
At least in the central USA, the popup is working as expected.
Hell @danishhaidri:
Sorry to hear that your site is not performing as quickly as before with our plugin activated. However, there could be a number of reasons to explain what you observed, including the behavior of other plugins, your theme, or demands on your server. ( You didn’t say whether you observed this behavior on a local, staging, or production server. ).
What’s required here is to isolate the behavior to identify the root or contributing cause. [The Popup Maker plugin is actually very performant and uses very little resources to run. ]
Please refer to the following documentation article to assist with troubleshooting:
https://docs.wppopupmaker.com/article/332-test-whether-a-plugin-or-theme-interferes-with-popup-maker
One other thing to note that can contribute to a site slowdown: Popup Maker does not recommend activating more than 3 – 5 popups on a single page. Users have reported problems on their site when they were activating 50 or even 100 popups on a single page load. THAT will slow down your site. It’s not the fault of the plugin; it’s the demand on the server to preload all those resources into the browser.
So if you’re activating a lot of popups on your site, but you only intend to display 1 or 2 on any given page, then change your targeting conditions.
Here’s a link to several documentation articles that will explain targeting conditions and how to manage them.
https://docs.wppopupmaker.com/article/140-conditions
https://docs.wppopupmaker.com/article/351-popup-settings-box-targeting-option-settings
https://docs.wppopupmaker.com/category/276-controlling-popups
- This reply was modified 5 years ago by Robert Gadon.
Hello @fxdesca78,
If your Videos extension license is still active, I suggest you submit your support request to https://wppopupmaker.com/support/. You will probably receive a faster response than by posting here.
Hello @perla11:
You wrote:
>…just wondering how does a popup normally close and not reappear?
It’s described in the documentation. Here are some useful links to get you started.
https://docs.wppopupmaker.com/article/350-popup-settings-box-triggers-option-settings
https://docs.wppopupmaker.com/article/358-popup-settings-box-cookies-option-settings
And if you haven’t viewed the orientation article for new users of Popup Maker, then read this:
https://docs.wppopupmaker.com/article/488-create-your-first-popup-summary-guide
And this article is a useful reference for some of the specialized terms used throughout the documentation:
https://docs.wppopupmaker.com/article/484-popup-maker-glossary-of-termsHello @perla11:
From the AJAX Login Modals plugin product page:
>AJAX Login Modals (ALM) technology taps into the WordPress User functionality and enables you to create Login, Register & Forgot Your Password Popups without any coding or setup. Simply edit, theme, and call your popup and it’s done!
Our of the box, you can’t do that with Popup Maker. With the plugin extension to Popup Maker you can.
>I’m wondering there must be some code to hide the popup from logged in users, would you know?
ALM uses the WordPress API to determine whether a user is logged in or not. There is another Popup Maker paid extension to detect whether a user is logged in (Advanced Targeting Conditions). But again, that requires a license. It also doesn’t fully address what you’re trying to do.
>Also, If I install the AJAX login modal plugin what do I gain by keeping popup maker?
The core Popup Maker plugin must be installed and activated for the ALM extension to work. It is not possible to run ALM without Popup Maker installed.
>In other words what does popup maker + AJAX login modal extension do more?
From the ALM product page:
1) Force User Login – Protect your sites content until users login or register. Combined with Popup Makers targeting conditions, you can lock down one page, the entire site or anywhere in between.
2) Force Login Actions – If you want to prevent users from adding items to cart, clicking a link or anything else, you can use a login modal to interrupt those actions until they have logged in.
3) Login / Registration / Password Recovery Modals – You can create one popup that contains all 3 with a great interface for switching between them, or place each in its own separate modal.
Contact https://wppopupmaker.com/support/ to request access to a free demo site where you test out the ALM extension for yourself before buying.
- This reply was modified 5 years ago by Robert Gadon.
Hello @solanum:
Please see this article for guidance: https://docs.wppopupmaker.com/article/455-popup-settings-box-close-option-settings
Refer to ‘Property Description’ >> ‘Click Overlay to Close’. By default, that feature is turned off. Select the checkbox to turn the feature on. It’s been available for at least the past year and half as I recall.
=====================================================
Okay, I read this thread a little more carefully. Do you want to click on the overlay (area outside the box) to close AND not use the overlay at the same time? I’m not sure that’s possible.
However, you can set the overlay to transparent ( no opacity, or no blockage of the content behind ) and still have it active. That setup allows you to still use the overlay layer to close a popup. Each Popup Maker theme has a different default opacity setting for the overlay layer, which you can change.
- This reply was modified 5 years ago by Robert Gadon.
- This reply was modified 5 years ago by Robert Gadon.
- This reply was modified 5 years ago by Robert Gadon.
- This reply was modified 5 years ago by Robert Gadon.
Hello @perla11:
I think my earlier response to you was slightly incorrect. Thinking a little more carefully, I now realize something about how you probably set up the form. At first, I suspect that you used the ‘manual javascript’ cookie setting method so that when a visitor submitted the form, the cookie would be set and prevent the form from showing again. That didn’t work, so you wrote in.
My error was to tell you to use the ‘On Popup Close’ method to control the popup after the popup form is submitted. But that won’t work either because the cookie must be set following the form submission which relies on an
onclick
button event (the form submit button).Popup Maker does have cookies that specifically integrate with form submission. Those cookies are for forms built with either Contact Form 7, Ninja Forms, or GravityForms. In your case, you are not using any of those WordPress form plugins.
But the bigger issue is that you want manage visitor access to your site using a login form. The efficient way to do that is to use AJAX (asynchronous javascript and XML). Using the free version of Popup Maker does not involve AJAX. Popup Maker provides a ‘ready-made’ solution that will solve your problem; the AJAX Login Modals plugin extension. Please refer to the product and documentation links in my previous post. You will need to purchase a license in order to install and activate the extension.
Hello @perla11,
I just inspected your site and saw that you’re using an AutoOpen trigger controlled by a cookie set using Manual JavaScript. While that cookie setting method is available within the plugin, the preferred way of setting a cookie is ‘On Popup Close’. Please refer to the following Popup Maker documentation article on cookies for details. This will simplify the process of setting up trigger & cookie for you going forward.
https://docs.wppopupmaker.com/article/358-popup-settings-box-cookies-option-settings
Popup Maker has already developed an ‘out-of-the-box’ solution for people in your situation. You want to require visitors to register on the site before they can access any further content. I presume you will also require those same people to sign back in when they return to the site at a future date. And if a person who registers forgets their password (or uses the wrong one), you’ll need to provide a solution for that use case as well.
The solution you need is the AJAX Login Modals plugin extension to Popup Maker. This plugin requires a paid, 1-year subscription. The value is that the plugin is performant (the code is solid), is well documented ( I rewrote the documentation myself ), and it entitles you to premium support via the Popup Maker support forum on https:///wppopupmaker.com/support.
Here are links to the product and documentation index pages.
https://wppopupmaker.com/extensions/ajax-login-modals/
https://docs.wppopupmaker.com/category/70-ajax-login-modals
I hope this helps you to resolve your problem.
Hello @mittalk:
If you’re really concerned about robots spamming the Popup Maker subscription form, you could add a Google reCAPTCHA. reCAPTCHA Version 2 allows you to display the ‘I am not a robot’ checkbox’, while Version 3 allows you run reCAPTCHA through a hidden form field. In the latter case, there is no visitor interaction with the form; reCAPTCHA runs in the background. Google collects data about the form which you can view from the reCAPTCHA admin page accessible via your Google account.
You won’t be able to add Google’s
<script>
tags directly in the Popup Maker content editor. WordPress’wp_kses()
function disables all<script>
tags added to any editor, regardless of post type. [You could overridewp_kses()
, but it’s not worth the risk to the rest of your site.]There are WordPress plugins that will allow you to install Google reCAPTCHA’s site and secret keys in your plugin admin, and call the Google reCAPTCHA JS API. I looked in the www.remarpro.com plugin repo and found a reCAPTCHA plugin with 100,000+ installs and added it to a local sandbox site (search on ‘Invisible reCAPTCHA’).
On activation, the plugin admin is found at Settings >> Invisible reCAPTCHA.Since my test site runs on a local server, I don’t have any data reported to Google to tell you about. Try it out and see if this solution is useful for you.
- This reply was modified 5 years ago by Robert Gadon.
- This reply was modified 5 years ago by Robert Gadon.
- This reply was modified 5 years ago by Robert Gadon.
Hello @sock2me:
Let’s break down what you want to do step-by-step.
1) Display GravityForm form inside a popup.
2) Following form submit (inside the popup), display another page inside a popup.
The use of GravityForms inside a Popup Maker (PUM) popup is well documented. Make sure to refer to the following PUM docs to set up a GF form correctly:
2) https://docs.wppopupmaker.com/article/377-form-submit-success-options-added-by-popup-maker // See section on GravityForms.
The second step (display a second page inside a popup following form submit) involves rendering ‘remote content’ (RC) into a popup. Let me refer you to a Popup Maker doc on that topic. It’s a simplified approach to rendering RC without the use of the Popup Maker RC plugin extension.
https://docs.wppopupmaker.com/article/370-add-a-single-post-page-or-custom-content-type-to-a-popup
Perhaps the simplest way to display that second popup is to activate the Popup Maker Advanced Targeting Condition premium (paid) plugin extension and use either the Cookie Exists or Cookie Is targeting condition. PUM would detect the cookie set by the GF form submit and then activate a second popup for display. You could use an AutoOpen trigger for the second popup once it’s activated.
See: https://docs.wppopupmaker.com/article/237-advanced-targeting-conditions-cookie-conditions
Popup Maker used to have a demo site you could test all this out on. It appears to be unavailable at the moment. Contact the Support Team at https://wppopupmaker.com/support/ and see if they can help with that.
Hello @pmluther:
If you have yet to do so, please consult the following Popup Maker documentation articles:
https://docs.wppopupmaker.com/article/377-form-submit-success-options-added-by-popup-maker // Refer to the ‘Gravity Forms’ section.
Follow the guidance carefully. Use the articles as a way to systematically check that you’ve followed the plugin’s recommended best practices for configuring PUM & GF. The articles might also help you to narrow down or better define the source of the problem.
- This reply was modified 5 years ago by Robert Gadon.
- This reply was modified 5 years ago by Robert Gadon.