WP Survey And Quiz Tool
WPSQT Get the timer working (15 posts)

  1. Nidhi Sanghrajka
    Posted 4 years ago #

    The quiz creation gives the option of adding the time limit, but the timer is not visible when the quiz is started for the user. Can anybody please shed some light and give some solution?


  2. ramshengale
    Posted 4 years ago #

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

  3. Nidhi Sanghrajka
    Posted 4 years ago #

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

  4. ramshengale
    Posted 4 years ago #

    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.

  5. psychedelus
    Posted 3 years ago #

    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)?

  6. psychedelus
    Posted 3 years ago #

    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.");
    							}, 1000);</p>
    <p>						});

    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?

  7. svarry
    Posted 3 years ago #


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

    Thank you very much.

  8. psychedelus
    Posted 3 years ago #

    @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:

    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.

  9. abhishek saxena
    Posted 3 years ago #


    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.

    Abhishek saxena

  10. svarry
    Posted 3 years ago #

    @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.

  11. abhishek saxena
    Posted 3 years ago #

    @svarry: Below is the link for my website:

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


  12. svarry
    Posted 3 years ago #

    @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.

  13. abhishek saxena
    Posted 3 years ago #


    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.


  14. meenalok
    Posted 3 years ago #

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

  15. meenalok
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Survey And Quiz Tool
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic