Login Form

#448 – assign score range matrix to more than one category

Posted in ‘BF Quiz’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Sunday, 09 November 2014 18:34 AEDT
sashido
Joomla! version: (3.3)

Hi Tim!

I have a question. I'm going to deal with quiet a number of quizzes. So I would like to set up a score range matrix for more than one category. Like

1. make a parent category for quizzez 1-10 which should be the same number and value of questions, and
2. assign the only one score range matrix for this parent category and not making an individual score range matrix for each of the 1-10 quizzes


Is that possible?

best regards,
Aleksandra
 
Tuesday, 18 November 2014 09:20 AEDT 10'
Tim
Everything Bundle, BF Quiz Plus 3 Years, BF Survey 12 Months
Hi Aleksandra,
Sorry for the delay.
Currently each score range will apply to only one category. You could create it for one, then copy the entries in the jos_bfquiz_plus_scorerange table in your database, but change the catid field.

Alternatively, you could try editing the query in the checkscorerange function in /components/com_bfquiz_plus/controller.php

//around line 2030
//get all score ranges matrix for this category
$query->clear();
$query->from($db->quoteName('#__bfquiz_plus_scorerange').' AS a');
$query->select('a.id, a.scoreStart, a.scoreEnd, a.redirectURL, a.resultText');
$query->where('a.catid = '.(int)$catid);

If you took away the last line, it would apply the same score range matrix to every category.

regards

Tim
Follow us on twitter http://twitter.com/tamlynsoftware
Wednesday, 24 December 2014 17:25 AEDT
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.
Go to top