Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Plugin doesn't send the results on emails
(1 viewing) (1) Guest
"ARI Stream Quiz" WordPress plugin
Go to bottomPage: 1
TOPIC: Plugin doesn't send the results on emails
#66225
Plugin doesn't send the results on emails 4 Years, 9 Months ago Karma: 0
Hello, I use ARI Stream Quiz PRO version for a couple of months and recently I faced a problem with it: This plugin sometimes doesn't send the results on people's emails and the results are also not shown on your plugin's Result tab too. And I made an integration with my Mailerlite account and people's emails don't appear there too!

The only way to cure this problem is when I delete cache (I use WP Fastest Cache plugin). But deleting cache helps for about 1-2 days (maybe even less, I am not sure), then the problem reappears.

Sometimes it didn't send the results from both mobile phones and PC's. Sometimes it didn't send the results only from mobile phones. Now I tried to get the results from my logged in admin account in Google Chrome and it worked, but when I switched to incognito mode in Google Chrome, or just used other web browsers where I am not logged in - and it doesn't send the results again. So I deleted cache and it started to work everywhere again!

So I guess, that the problem is with cache.

Can you help me to solve this problem?

Here is an example where this problem occurs - link

And just in case, I use an extra CSS code and JS code that you gave me. I will put them here:

CSS code:

body .asq-theme.asq-theme-buzzfeed .button.button-start-quiz {background-color: #0173be;}
body .asq-theme.asq-theme-buzzfeed .button.button-green {background-color: #0173be;}

.quiz-1 .quiz-result-wrapper {display:none!important;}
.quiz-2 .quiz-result-wrapper {display:none!important;}
.quiz-5 .quiz-result-wrapper {display:none!important;}
.quiz-6 .quiz-result-wrapper {display:none!important;}

.asq-theme.asq-theme-buzzfeed .button.button-facebook {
color: #ffffff !important;
background: #3b5998 !important; }

.asq-theme.asq-theme-buzzfeed .button.button-twitter {
color: #ffffff !important;
background: #55acee !important; }

.asq-theme.asq-theme-buzzfeed .button.button-gplus {
color: #ffffff !important;
background: #dd4b39 !important; }

.asq-theme.asq-theme-buzzfeed .button.button-pinterest {
color: #ffffff !important;
background: #bd081c !important; }

.asq-theme.asq-theme-buzzfeed .button.button-linkedin {
color: #ffffff !important;
background: #0077b5 !important; }

.asq-theme.asq-theme-buzzfeed .button.button-vk {
color: #ffffff !important;
background: #507299 !important; }

.asq-theme.asq-theme-buzzfeed .button.button-email {
color: #ffffff !important;
background: #7292a8 !important; }



JS code:

jQuery(function($) {
setTimeout(function() {
var quizzes = jQuery('.ari-stream-quiz').ariStreamQuiz();
if (!quizzes) return;
if (!(quizzes instanceof Array)) quizzes = [quizzes];
$.each(quizzes, function(idx, quiz) {
var showUserDataForm = quiz.showUserDataForm;
quiz.showUserDataForm = function(disableScroll) {
var $el = $('#' + this.options.prefix + '_user_data'),
$emailEl = $('[data-key="email"]', $el);
$emailEl.attr('autocomplete', 'email');
$emailEl.on('keypress', function(e) {
if (e.which === 13) {
$el.find('.button-collect-data').click();
}
});
showUserDataForm.call(quiz, disableScroll);
}
});
}, 10);
});



I think that's all. Thanks in advance!
The administrator has disabled public write access.
 
#66230
Re:Plugin doesn't send the results on emails 4 Years, 9 Months ago Karma: 760
Hello,

According to your message it seems this problem with cache plugin. The quiz generates dynamic content and when quiz is completed, it sends a request via AJAX to trigger e-mail notification. When cache plugin is used, it can cache security token which is not valid after some time and as result AJAX request is not valid.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1