Micro-Donations

If you are successfully making use of Mad Blanks for Joomla!, or if I have given you useful support, please donate $1 or more.

I pass on 10% of donations I receive through this site to the Joomla! project, so by supporting me, you're also supporting Joomla!


Thank you,
-Chris


The Starfish Story





Mad Blanks Support Forum
September 08, 2010, 10:42:42 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: When searching the forum, be sure to search from the forum home page to search the entire forum instead of searching an individual board.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Time Limit Would Be A Great Idea  (Read 1645 times)
tansolutions
Newbie
*
Posts: 2


View Profile
« on: June 24, 2009, 01:54:44 AM »

Hi,

    First of all thank you for a wonderful extension. I will keep posting if I find any idea about extra features for improvements of this great extension.

     For now I would suggest you to put a timer limit function so that people can sit for a test for a given time period. It will be like an online examination system. May be an alternative to Moodle?  Tongue
« Last Edit: June 24, 2009, 02:06:28 AM by tansolutions » Logged
douxmaster
Newbie
*
Posts: 3


Require feature packs


View Profile WWW
« Reply #1 on: September 03, 2009, 06:44:38 AM »


     For now I would suggest you to put a timer limit function so that people can sit for a test for a given time period.   Tongue[/b][/color]
[/quote]

Time limit is already implemented in the CreateSingleRecord module. Just scroll down your screen to find out a cookie based time limit. Set your prefered cookie period for a user to be able to post a new record.
Logged

Best regards. Mc DEEM BEAN
www.douxla.6te.net.
abd
Newbie
*
Posts: 1


View Profile
« Reply #2 on: September 30, 2009, 08:48:21 AM »

you can use JavaScript to add a timer to your Quiz
after defined period of time, the form will autosubmit ...Easy one

but it's nice to be a feature in the Single Record ... so the user can use the back end administration to set something like the following:

do you want to add time limit for each question? yes no
what's the time period before submitting the answer : " "

limitation:
this feature require JavaScript to be enabled in the client browser

Cheers  Wink
Logged
chris
Administrator
Hero Member
*****
Posts: 1003


View Profile
« Reply #3 on: October 08, 2009, 02:59:39 PM »

For a JavaScript solution to having a timed quiz, try this:

In the Module Manager, find out the ID number of the copy of the Create Single Record module you are using for your quiz.

Then, when editing the Mad Blanks category for the quiz you want to have a timed submit for, find the setting labeled Instructions/Message to the user for this category; message appears at the TOP of the Create Single Record module; message can contain HTML (which is inside the Instructions to the website user for this category section of the page) and include the following:

Code:
<script language="javascript">setTimeout("document.mbcsrX.submit()", 5000);</script>

Replace X with the ID number of the Create Single Record module. So, if your module has ID 43, use this:

Code:
<script language="javascript">setTimeout("document.mbcsr43.submit()", 5000);</script>

The delay is given in milliseconds. So, 5000 milliseconds is 5 seconds.

If you want to include a count down until the form submits in 15 seconds, try this code:

Code:
<script language="javascript">setTimeout("document.mbcsr43.submit()", 15000);</script>

<p>Time left to submit: <span id="madblankstimer"></span></p>

<script language="javascript">
countdown = 15; // initial value in seconds
function dotimer() {
 countdown--;
 if (countdown > 0) {
  setTimeout("dotimer()", 1000);
 }
 document.getElementById('madblankstimer').innerHTML = countdown;
}
dotimer();
</script>


If you have the Create Single Record module parameter labeled Show the completed record after submission? set to one of the "show the input form again" options, you can set up a form that submits itself automatically over and over again.
Logged

I welcome micro-donations ($1-10) for answers that have helped you. Your small donation, taken together with others, means a great deal to me. Something is always better than nothing. I pass on 10% of donations I receive through this site to the Joomla! project, so by supporting me, you're also supporting Joomla!

Perhaps your time is short, you don't have the desire to learn all the ins and outs of Mad Blanks, or your requirements are complex. Would you like me to develop your Mad Blanks application? Get more information here.
chris
Administrator
Hero Member
*****
Posts: 1003


View Profile
« Reply #4 on: October 20, 2009, 12:10:33 PM »

See the linked post for my thoughts on how to implement a true time-limited quiz. I may implement this in a future release.
Logged

I welcome micro-donations ($1-10) for answers that have helped you. Your small donation, taken together with others, means a great deal to me. Something is always better than nothing. I pass on 10% of donations I receive through this site to the Joomla! project, so by supporting me, you're also supporting Joomla!

Perhaps your time is short, you don't have the desire to learn all the ins and outs of Mad Blanks, or your requirements are complex. Would you like me to develop your Mad Blanks application? Get more information here.
chris
Administrator
Hero Member
*****
Posts: 1003


View Profile
« Reply #5 on: February 06, 2010, 10:45:51 PM »

Note that the timeout tag is now available in Mad Blanks 1.4.0 Beta 1 or above to allow different messages to be displayed (or logged, etc.) in the Score Script depending on whether the quiz/survey was submitted before or after a time duration you specify.

For example, you can use the following in a Score Script:


[:comparison:{[:timeout:timeout{1 hour}:]}:==:{1}:{An hour or longer has passed since you started the survey.}:{Less than an hour has passed since you started the survey.}:]


Note that the amount of time is specified in plain English. For more details, see the Special tags reference section: these special tags are available to use in the Score Script when editing a Score Script by clicking on [+/-] Show/hide and use Control+F to search the page for timeout.

You can use the timeout tag in conjunction with a JavaScript countdown timer so your users know how much time they have.
« Last Edit: February 06, 2010, 11:04:29 PM by chris » Logged

I welcome micro-donations ($1-10) for answers that have helped you. Your small donation, taken together with others, means a great deal to me. Something is always better than nothing. I pass on 10% of donations I receive through this site to the Joomla! project, so by supporting me, you're also supporting Joomla!

Perhaps your time is short, you don't have the desire to learn all the ins and outs of Mad Blanks, or your requirements are complex. Would you like me to develop your Mad Blanks application? Get more information here.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

 
  Design by augs-burg.de & go-vista.de
This is the official website for Mad Blanks, a component written for Joomla!™
Mad Blanks, when used with Joomla!™, will allow you to give a quiz on your site. You can also use it to give a survey. Quizzes and surveys are popular applications on the Internet, including personality quizzes, name generators, and assessments.
This website and the featured software products herein written for Joomla!™ are the property of Chris Hallett, an independent programmer. Chris does not represent Open Source Matters, Inc. nor the Joomla!™ project.

www.madblanks.org | Mad Blanks - Quiz, survey, assessment, calculator, general purpose form | Privacy Policy | ©2010 Chris Hallett