WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Nidhi Sanghrajka
    Member
    Posted 2 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?

    http://wordpress.org/extend/plugins/wp-survey-and-quiz-tool/

  2. ramshengale
    Member
    Posted 2 years ago #

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

  3. Nidhi Sanghrajka
    Member
    Posted 2 years ago #

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

  4. ramshengale
    Member
    Posted 2 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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.");
    									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?

  7. svarry
    Member
    Posted 1 year ago #

    Hello

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

    Thank you very much.

  8. psychedelus
    Member
    Posted 1 year 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:
    /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.

  9. abhishek saxena
    Member
    Posted 1 year ago #

    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

  10. svarry
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    @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

  12. svarry
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    @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

  14. meenalok
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic