Tuesday, April 28, 2009

How to display quiz from 'ARI Quiz' joomla component in content

I have recently needed a component able to organize quizzes for my Joomla project. After long investigation of all components that I managed to find, I chose ARI Quiz. This component suited my needs completely, except for one thing: I needed an option of adding quiz to the article. That's why I created a simple plugin for this purpose and I'd like to share it with Joomla community. I hope it can be useful for somebody else. You can download the plugin here.

PS: I have tested it with ARI Quiz 2.4.0+.

[Updated 05.22.09] I have good news. ARI Soft team created demo page for my plugin, you can see it here.

[Updated 31.05.09] 'ARI Quiz in content' v. 1.1.0 is available. Now it works as jQuery plugin, handles calculator events and contains some bugs fixes.

[Updated 07.07.09] Plugin v. 1.2.0 is available. Feature for loading jQuery library through Google JS API was added.

[Updated 08.02.10] 'ARI Quiz in content' v. 1.3.0. New parameter 'Remove quiz title' was added.

72 comments:

maanrijp said...

Super! This is the plugin I have been waiting for! Thank you very much.

greetings,

Maanrijp

Alex Bob said...

You are welcome :) If you have any idea how to improve it, you can share it here.

Alino said...

Hi,I have trouble installing the plugin in my joomla website. Can you tell the folders in which to FTP the files( for manual install) ?

thank you in advance,

Al

Alex Bob said...

Hi, Alino,
Could you describe problem which you have when trying to install the plugin?

Alino said...

Hi Alex Bob,

First I did it normally but error messages appeared stating that files couldnt be moved, so I changed the folder's permissions on my server and started all over again, then another message appeared stating that that some files existed already.In the Administrator->plugin manager I can see "ARI Quiz in content". I dont know if all the files have been installed correctly that is why I need to know what files go in what folders.

Thank you very much for your help,

Alino

Alex Bob said...

Hi,
May be 'plugins/system/' folder doesn't have needed permissions. You can try to set writable permissions for plugins/system/ folder, delete plugin (if you can't do it through Joomla interface, you can delete the following files manually from plugins/system directory: ariquizincontent.php, ariquizincontent.xml and ariquizincontent folder) and install plugin again.

Alino said...

Thank you very much Alex,
I will try this and let you know if it works.
Cheers,

Alino

Roby Totem said...

Hello friend, I installed your plugin on Ariquiz 2.3.0 and I must say that putting the code you've created (ariquizincontent quizId = "quiz_id" scrolling = "no") I can see in the quiz: just press the button Continue not understand why in the 'story appears all over the template on my site and not only the article with the quiz at the center consistent with the link of your demo plugin. What should I set? thanks

my screen shot

http://rapidshare.de/files/47580025/ariquiz.2.3.0_-_screen_shot.rar.html

Alex Bob said...

Hi, Roby, install the latest version of the component, I think it should help.

Roby Totem said...

Hi...sorry but i don't have the version 2.5.0 , i have only the 2.30 version...can you send me a demo version of the 2.5.0 if you have?

thanks...

Roby

Alex Bob said...

Hi,
I suppose any customer can download new version of ARI Quiz from developer's site.

Roby Totem said...

ok..for now i have resolved with this little script on the index.php

if($_REQUEST[task]=="question"||$_REQUEST[task]=="quiz_finished")
{
$_REQUEST[tmpl]="component";
}

Roby Totem said...

Another bug...if you not make questions...you have ever same problems...
in the file : components\com_ariquize file\ariquiz.php

i have make only this...and for now i have resolved..i hope this will be good for all.. ;o)

$_GET['tmpl'] = 'component';
$_REQUEST['tmpl'] = 'component';
$_POST['tmpl'] = 'component';

Alex Bob said...

I think that usage of the latest version of the component is more simple than do any hacks :)

Roby Totem said...

i have make a module unread...this modele contain all new article maked...if the user click on the new article, he see the article but this article not must deleted from the module of unred until the user have resolved the quiz (ARIQUIZ component)...
when the user make the quiz ok (Passed=1 on my phpAdmin) than the article must be removed form the list of news...and i must to say that user have make in ok that quiz and the "system" check first if the same user have already make that quiz and he can't more make this same quiz (if he have make the quiz correct!!!) ...
my problem is : if i give the user id ($user =& JFactory::getUser();) and i should find the id-article and the id-quiz : if i combine this 3 items i can make the select to remove this article from the news for ONLY this user...no for other user if don't have finish the quiz in corerct mode...undestand? sorry for my english !!!

have you an idea??

Henry said...

Hi Alex,

I have downloaded the plugin and installed it. Now, where do I get the component?
Henry

Alex Bob said...

Hi, Henry,

You can download ARI Quiz on developer's site http://www.ari-soft.com/Joomla-Components/ARI-Quiz/Detailed-product-flyer.html

Henry said...

Thx Alex. On Joomla.org the extension is listed as non-commercial, however the link you sent me request a payment of $75.

Alex Bob said...

Yes, my plugin under GPL license and it's free, but ARI Quiz isn't my component, it's component from ARI Soft and the component is commercial. My plugin only helps emded quiz from ARI Quiz to Joomla! articles. The component doesn't support this ability and I implemented this and shared for Joomla! community.

Henry said...

Oh, I see. Thx!

admin said...

I use ari quiz. After searching for quizzes software i found ari quiz, and i'm very glad with it.

Your plugin it's very interesting.

Is there a possibility to create a plugin to insert a question into content? This would be just great for my purposes.

Of course i'm not a programmer and i don't know how to do it.

I leave here the ideia.

Thanks for the great plugin.

Rmam

Alex Bob said...

Hi, admin,

Could you describe in more details what you mean "to insert a question into content"? My plugin shows quiz with questions in article.

admin said...

A quiz is made of several questions.
Ari quiz has a field (Note:)that is made available only after finishing the quiz, if full statistics is enabled.

It's not very usefull this field, because it's not dinamic. If i could creat a article with a certain question, then i coud interact with the user.

On my site, the student can comment each question. This way it's very easy to clear any doubt, and the following students can learn with the doubts of others.

I now that your plugin needs to use the quiz_id, but there is not question_id available. I already made this feature request, but if there is other way to it without this id, i don't know.

Thanks

Rmam.

Alex Bob said...

Sorry, but my plugin doesn't support this ability. I suppose for your needs you can create module which will show feedback textbox when user is passing quiz and read question id from javascript object which is available on question page.

Eric Giovannoni said...

Hi, first things first: thanks to share.
However, I have some concerns here.

First: Where's the quiz id? Do we have to guess?

Second: In spite of typing {scrolling="no"}, it appears on my site half template in a kind of wrapper.
I mean, appear the (guessed) quiz, but with its friends header and columns. Did I missed something?

Thanks your time
EG

Alex Bob said...

Hi, Eric,

You can find quiz id in quizzes data grid on the component backend. About layout issue, may be it's conflict with your template CSS file.

Fran said...

thanks for the plugin, but when i run it, my whole page shows in the content, whereas i only want the quiz to show. any ideas?

Alex Bob said...

Hi,

Which version of the component you use?

CSSensei said...

Hi do you know any way that i can show all my questions from a quiz to a single page?

Owner said...

Hi
Unfortunately I don't know how to do it, but you can ask this question on the component developer's page.

Jimbo said...

Hi there,

If you known, ARI Soft created ARI Quiz Lite component. It's a simple and FREE version of quiz extension for Joomla! CMS. I would like to know whether you are going to create the same plugin for ARI Quiz Lite? I need this functionality, but I'm not a programmer :(

WBW,
Jim

Owner said...

Hello, Jimbo,

Read my latest post, it's about the similar plugin for ARI Quiz Lite.

Björn Paulsson said...

Hi, I have a problem getting this to work. I think the reason is that the embedded code becomes:

/index.php?tmpl=component&option=com_ariquiz&task=quiz&quizId="

instead of the same thing but without the "amp;"s.

Does anoyone have an idea what could be wrong? Or how I can get rid of the amp; thing?

Björn Paulsson said...

Alright, I solved it by adding the component to the sef404 list.

But there is another problem. When I add a quiz to my content, it breaks the template. I have managed to create a workaround, by adding two closing div-tags at the end of the article.

Any ideas on what could be wrong with my implementation?

Owner said...

Hi, Björn,

Could you specify which template you use and if it's possible, provide link to your page.

Dr.M said...

Thank you so much for a great product.
I have a small problem that might be arising from the plugin and hope to find a solution here.

The problem is that in an article when using the ari quiz plugin in content the right and left modules are displayed within the content area instead of their normal positions, and when the quiz is removed the modules returns to their normal positions.
The funny thing is that the same article is in the front page and the positions of the modules are OK.

This the link to the site:

www.radiology2.com
and the problem page is in: cases > musculoskeletal > OSCE1

Any suggestions to fix this issue?

Thank You again.

Owner said...

Hi, Dr.M,

I don't see any problem on your site. Could you explain your problem?

Dr.M said...

Hi
The problem was solved i have sent you an email to the address found in the plugin xml file explaining what happened, i hope you have received the email. thank You.

Owner said...

Hi,

Thanks for your mail. I have fixed this bug and new version of the plugin is available.

Ciaran said...

Hi I was wondering if someone could help me. The id of one of my quizes is 2 so the code i place in my article is {ariquizincontent quiz id="2" scrolling="no"} Is this correct.

Thanks
Ciaran

Ciaran said...

Hi I really need some help. Im using the in content plugin along with ari quiz component.
My website is Music Tutorial website. It has a list of menu items on the left hand side guitar, tin whistle, percussion, etc... that play videos
I want to have the quiz under the video.
For example in Percussion Lesson 1 under the video I am call the quiz with id 2 to load.
{ariquizcontent quiz id="2" scrolling="yes"}

But when it loads it loads the entire default website template in to the background of jdoc component.

www.3lmusicfroschools.com
user: ciaran
pass: test

Go to....

Lessons > Percussion Lesson 1 (undervideo)

Thanks in advance.
Ciaran

Owner said...

Hi,

I suppose you use old version of ARI Quiz. Install new version and everything should work fine.

opentests said...

Hi!

Your plugin is super! However there are some defects.

1) I use pictures in the question text. Without a plugin they are displayed. At use of a plugin they are not displayed.

For example:
Path to the question text: img src = "images/stories/Eysenck_1/pic1.gif"
Path to drawing without a plugin: http://sitename/images/stories/Eysenck_1/pic1.gif
Path to drawing with a plugin: http://sitename/component/ariquiz/images/stories/Eysenck_1/pic1.gif

This problem repeats and at display of full statistics.

2) IE8 does not display correctly article background.

3) The description of question is formatted not as without a plugin.

Best regards.

Owner said...

Hi opentests,

I can try to help you, but I need a link where I can see this problems.

opentests said...

Hi!

Link is http://www.wineinspector.ru/

The third problem any more does not excite.

Owner said...

to opentests,

Download updated plugin and re-install it. It contains fix for the second issue. It looks like the first issue is problem with the component, contact ARI Quiz developer's about it.

opentests said...

Hi!

Thank you very much!!!

I have solved the first problem, inserting an absolute path for pictures.

There are still problems.

1) all width of article Is used not.

2) In different browsers display of full statistics very strongly differs. It can a template problem?!


It can be seen on the same site.

Best regards.

Owner said...

Hi opentests,

1. Open jquery.ari-quiz-in-content.js file, find line #82 and play with "width" parameter. Now it is set to "95%".

2. Add the next CSS rule to CSS template:

table.ariQuizResults {
font-size:75% !important;
}

I suppose it should help.

opentests said...

Thanks!

1) I have changed 95 % to 100 % in two files.
(jquery.ari-quiz-in-content.js and jquery.ari-quiz-in-content.min.js)

2)It has appeared to add better in.ariQuizResults TR (Opera and FireFox)

seo said...

Hello. I bought recently AriQuiz and installed your plugin. But when you try to insert a quiz into the material, I just insert description quizzes without a button "continue" and still cuts off part of the text.
How can I fix this?
I bought the components because of your plugin, but otherwise I could have used the free version AriQuiz

Owner said...

Hi seo,

Could you provide link to page with issue?

BSP said...

Thanks a lot. It saved my life.

Ver said...

Hi

I installed the plugin and I followed the instruction to include a test in an article, but the test does not appeart. Instead I see the code that I actually included in the article: {ariquizincontent quizId="1" scrolling="yes"}

What could be wrong? I'm just trying this on my localhost, so I may not be able to show you the actual article.

Thanks for any pointer

Owner said...

Hi Ver,

What version of ARI Quiz you use? Could you share screenshot of plugin settings page?

Ver said...

I'm using ari-quiz 2.9.1
Trying to attach screenshot, but I don't see any provision for attachment... could not c&p either..., but basically the list of plug-ins say
System-ARI Quiz In Content System 1.3.0 Feb2010 Hut32

Thanks for the prompt response

Ver said...

That was my mistake, the plugin was disabled. Thanks anyway.

opentests said...

Hi!

Google in the recommendations advises to unite following two files in one.

jquery-1.3.2.min.js
jquery.ari-quiz-in-content.min.js

Best regards.

Owner said...

Hi opentests,

Thank you for suggestion, but it makes no sense because the plugin can load these files separately.

opentests said...

Hi!

How to reduce gaps between the button and content of article from above and from below?

Ver said...

Thanks for making this available to us all. Much appreciated. Is there an option to directly include the quiz on the page without having to click a link?
Using the plugin now on Page A will yield to Link L that takes you to quiz Q, with that option, you would see quiz Q right on page A.

Thanks for taking the time.

Owner said...

Hi Ver,

The plugin doesn't support this feature.

opentests said...

Hi!

What about my question from May 9, 2010?

Owner said...

Hi opentests,

Could you provide link to your page?

opentests said...

Hi!

It is link for test.

http://www.opentests.ru/personality/character/decisiveness.html

Owner said...

To opentests,

You can edit [root_dir]/components/com_ariquiz/view/quiz.html.php file that remove extra space. This file contains
tags.

opentests said...

Hi!

I have set margin in a zero (a line 33). I have deleted br (lines 54 and 56). The big gap before the button is deleted.

But I could not delete gap after the button.

drunvalo said...

hi excellent plugin. its fine but when it loads the questions it flashes then doesnt show the questions ? any ideas ??

Owner said...

Hi drunvalo,

Where I can see this problem?

drunvalo said...

do you have an email an i can email you the details?

Martin said...

First, I need to thank you for the plug-in, just like those above. I have noticed that at the end of the quiz, the results screen does not refresh the page (as does a quiz linked directly to a menu does). So, for example, the module showing last results, which I have on my site, does not get refreshed to show the very last test I have taken - till I refresh the page manually. Is this a limitation of the in article setup?

Owner said...

Hi Martin,

The plugin loads a quiz into iframe. It's new window and all quiz actions happen in this window.

opentests said...
This post has been removed by the author.

Post a Comment