At the moment, the plugin doesn’t provide that option. But if you’re comfortable with editing plugin files, this can be achieved by simply commenting a few lines in 2 files.
I will include this option in the next plugin update.
If you’re comfortable with editing plugin files, here is how to do it.
Open wp-terms-popup/index.php
file, and comment out line 39 (add double slash in the beginning of line):
//include_once('terms-gateway.php');
If you are using shortcode to display your popup, also delete line 67 from wp-terms-popup/index.php
file:
include('terms.php');
and replace it with the following code:
if (is_user_logged_in()) {
include('terms.php');
}
And done.
I will include this option in the next plugin update, so you don’t have to worry about having to edit the file AGAIN each time the plugin is updated.
Thread Starter
Touda
(@touda)
Oh, thanks for the tip and the quick answer!
Any idea about the timing for that next update?
Thanks.
The plugin has just been updated 3 days ago, so the next update probably won’t happen in a month or so. It depends on how much free time I have in the coming weeks. The earliest would be late June.
If you can’t wait that long, and are not comfortable editing the plugin files, I can do it for you, just contact me, I’d be happy to help.
Thread Starter
Touda
(@touda)
No, it’s not a problem for us to edit the plugin, if we can be sure that next update won’t overwrite the hack and it will just include it, together with more improvements. I understand it will be the case?
Yes, in the next update, I will include an option for you to choose if you want popups to only be seen by logged in users.
So the hack is good for now. After the next update, you will have a radio button in the setting area which would allow you to display popups only to logged in users. That’s what I have in mind.
Thread Starter
Touda
(@touda)
It worked perfectly! (no shortcode use, so we had only to comment one line) Thanks!
But now I got another questions: doesn’t your plugin keep a record of which users clicked on YES and which on NO? If not, it’s of little use… Acceptation of terms must be recorded somehow to be useful for law requirements.