Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Huge problem with language
(1 viewing) (1) Guest
component
Go to bottomPage: 1
TOPIC: Huge problem with language
#59971
Huge problem with language 7 Years, 8 Months ago Karma: 0
Hi,

I have developed a custom module in order to implement a strange request in a multilanguage website.
The request was The following:
There 3 Quizzes with 12 questions each. They categorize each question of each Quiz as skill.
For example :
Quiz 1, Quiz 2, Quiz 3 - Question 1 = Skill 1
Quiz 1, Quiz 2, Quiz 3 - Question 2 = Skill 2
...
Quiz 1, Quiz 2, Quiz 3 - Question 12 = Skill 12

Then I should generate results per skill.

So I created question banks for each skill and I was getting the results filtering the banks.
So what I did is create Quiz categories (English, German, Italian, etc) and I was using the category as language filter.

Everything worked fine but then more languages came up.
ARI Quiz does not support language filtering. There is no language field in any table.
But the Quiz category is not in any of the Tables (ariquizstatistics, ariquizstatisticsinfo).

So what happens now is when getting the results from the database I get for all the languages

This is my query :
Code:

$query = "select t.`QuestionCategoryId`, sum(maxScore)\n"
    . "from (\n"
    . "SELECT a.`QuestionCategoryId`,max(c.score) maxScore,b.UserId,c.`BankQuestionId` FROM `tct_ariquizstatistics` c \n"
    . "join `tct_ariquizquestion` a on c.`BankQuestionId`=a.`QuestionId`\n"
    . "join `tct_ariquizstatisticsinfo` b on b.`StatisticsInfoId`=c.`StatisticsInfoId`\n"
    . "WHERE a.`Status` =1 and c.`Completed`=1 and b.UserId = " . $userId . "\n"
    . "GROUP BY b.UserId,a.`QuestionCategoryId`,c.`BankQuestionId`\n"
    . " ) t\n"
    . "GROUP BY t.`QuestionCategoryId`";



where I can use the category id that I already have ?

This is Urgent so please help.

Thank you
The administrator has disabled public write access.
 
#59972
Re:Huge problem with language 7 Years, 8 Months ago Karma: 760
Hello,

Mapping between quizzes and quiz categories is stored in #__ariquizquizcategory table.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#59973
Re:Huge problem with language 7 Years, 8 Months ago Karma: 0
Thank you for your quick answer, I will check it and I will let you know.
The administrator has disabled public write access.
 
#59974
Re:Huge problem with language 7 Years, 8 Months ago Karma: 0
Solved.

BTW would you please consider adding language field in your tables in future releases ?

Thank you
The administrator has disabled public write access.
 
#59975
Re:Huge problem with language 7 Years, 8 Months ago Karma: 760
Sure, we are going to add "Language" field to "ARI Quiz" v. 4.x.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1