Support » Plugin: WP Survey And Quiz Tool » [Plugin: WP Survey And Quiz Tool] WPSQT Get the timer working

Viewing 14 replies - 1 through 14 (of 14 total)
  • ramshengale

    (@ramshengale)

    I’m having the same problem. Please tell me if you got the timer working.

    Nidhi Sanghrajka

    (@nidhi-sanghrajka)

    I didnt find a solution so far. So i used a ready AJAX- Javascript timer..

    ramshengale

    (@ramshengale)

    I found the solution. The timer was not showing because of a plugin that I installed. After deactivating that plugin the timer is working perfectly.

    Try to have a look at the plugins and deactivate them one-by-one to see if that solves your problem.

    Thanks for the suggestion #ramershengale, unfortunately this did not work for me. I disabled all plugins on my site and the timer is still not showing. I guess this means that the issue is with the theme.

    Does anyone have any suggestions as to what could cause a conflict with the timer? Knowing this could greatly help in finding a fix for the issue. Could it be due to a change in the latest version of WordPress (3.4.2)?

    I’ve actually just noticed that in the source code there is a problem with the timer script. There are opening and closing paragraph tags at the end, which is what is causing the problem.

    <script type="text/javascript">
    						jQuery(document).ready( function(){
    							var timeSecs = 60;
    							var refreshId = setInterval(function() {
    								if (timeSecs != 0) {
    									timeSecs = timeSecs - 1;
    									var timeMins = timeSecs / 60;
    									timeMins = (timeMins<0?-1:+1)*Math.floor(Math.abs(timeMins)); // Gets rid of the decimal place
    									var timeSecsRem = timeSecs % 60;
    									if (timeMins > 0) {
    										jQuery(".timer").html("Time Left: " + timeMins + " mins and " + timeSecsRem + " seconds");
    									} else {
    										jQuery(".timer").html("Time Left: " + timeSecsRem + " seconds");
    									}
    								} else {
    									jQuery(".quiz").html("Unfortunately you have run out of time for this quiz.");
    									jQuery(".timer").hide();
    								}
    							}, 1000);</p>
    <p>						});
    					</script>

    Seems like WordPress may be doing this but just to confirm can anyone point me to the right file where this code is executed from?

    Hello

    Has anyone found a solution to make the timer work on wordpress 3.4.1 ?

    Thank you very much.

    @svarry, if the timer is not working for you it may be because of the same issue that I mentioned above. After speaking to the dev to find out what file this code was in I noticed two spaces after the “}, 1000);” part. Remove those and it should work.

    The file is located at:
    /wp-content/plugins/wp-survey-and-quiz-tool/lib/Wpsqt/Shortcodes.php

    The line breaks you will want to remove will be around line 295. See code example above, where those <p> tags are is where the spaces are.

    That code above was taken from the source of the page where the timer is meant to be on, so you can check the source of your page to see if it if the same thing that is breaking your timer.

    If not then it will most likely be a conflict with another plugin, in which case you’ll have to disable them one by one until you find the culprit.

    Hi,

    I have installed WPSQT plugin for showing quiz on my website.But it is not working properly. Although quiz is working fine but the “Take details” page is not opening on the start of the Quiz. Also it is giving wront text font.
    Website: http://www.turntechie.com

    Please let me know if anyone have some suggestions.

    Thanks
    Abhishek saxena

    @psychedelus thank you very much for the feedback. I did the necessary changes in the file and set the time but for some reason it just does not show up on the page :/. May be its a conflicting plugin I am dealing with here. Will work on that. Thanks once again.

    @abhishek : Please send the link to the quiz directly so that I can take a look. The link on the website (under database) for quiz is broken.

    @svarry: Below is the link for my website:
    http://turntechie.com/html-quiz/

    Thanks for your quick response. Let me know if you need something else.

    Thanks

    @abhishek did you create a from under WPSQT>quizzes>forms ? if you did then did you select then edit your quiz and make sure that the “Take contact details” radio button is selected yes. Let me know if you had trouble locating this.

    @svarry

    Thanks a lot for your quick response.Now “Take Contact details” is coming properly.
    I have a question When I submit the quiz it gives the wrong font(some part in small text and some in large). Can you tell me how can I fix this.

    One more thing I wanna discuss. I saw Chart feature at WPSQT>options—
    Can you tell me how to use this feature or some link that shows how to use this feature.

    Once again Thanks a lot for helping me.

    Regards,
    Abhishek

    Everything is working in my site in desktop but its timer and submission one time functions are not working while playing in mobile.

    This is my site: http://mantarmasala.com/quiz

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: WP Survey And Quiz Tool] WPSQT Get the timer working’ is closed to new replies.