Random Short-Answer Matching question -want to display in vertical form
Now,
In preview of Random Short-Answer Matching question
LOOK like as in Screen shot. (We can say Horizontal Form)
But,
I want to display in Vertical form i. e.
Question-
Ans(choose):
Question-
Ans(choose):
Question-
Ans(choose):
What can i do for that?
Pl. suggest appropriate changes
TIA
Re: Random Short-Answer Matching question -want to display in vertical form
Hi Ravi,
The only way to achieve what you want is to hack one moodle core file. I suppose you are using Moodle 1.9.x.
In file question/type/match/display.html simply add a table row to display the dropdown list in a new row instead of a column. See screenshot and the attached patch in my next message.
Joseph
PS.- I am very surprised at the contents of your quiz question. I suppose this is not a "real" question. For this type of questions I suggest using the Feedback or Questionnaire plugins.
Re: Random Short-Answer Matching question -want to display in vertical form
Here's the patch.
PS.- to forum moderators -> It would be nice to be able to attach more than one single file to a forum post.
Re: Random Short-Answer Matching question -want to display in vertical form
You had understood my problem perfectly.
But i want to use both the options (in the column as well as row).
But basically, ROW type for ----> Random short answer matching question.
Sorry to say but i am not technical person.
So i couldn't understand your remedy properly.
i went to question/type/match/display.html
open this file with notepad
&
i opened the file 'matchquestion01.txt'
Now what can i do for expected result?
Hope you can help me.
Thanks Very Much.
Warm Regards
Ravi
(sorry for improper English)
Re: Random Short-Answer Matching question -want to display in vertical form
Ravi,
"But i want to use both the options (in the column as well as row)."
Sorry, I do not understand what you mean by "both the options".
As for the patch, if you look at it, you will see that all you have to do is to add </tr><tr> in the appropriate place in file question/type/match/display.html. If you do not know how to apply a patch, or are afraid of hacking your moodle files, do ask a technical friend to help you.
Joseph
Re: Random Short-Answer Matching question -want to display in vertical form
I will try it.
Thanks again.
Re: Random Short-Answer Matching question -want to display in vertical form
Ravi,
if you want to use both core matching questions and Joseph's vertical versions you can also create and install new question types...
Attached zip file has a modified "Vertical matching" question type - unzip the package to your moodle root, login as administrator and click Notifications link ( or go to http://yourmoodlesite/admin/index.php ) and moodle should recognize the files from question/type/vmatch and lang/en_utf8/qtype_vmatch.php and update your database.
After that you should be able to use both core Matching questions and Vertical matching questions (Joseph's hack)
Re: Random Short-Answer Matching question -want to display in vertical form
Nice!!!,
its working,
Thanks to both of you.
Ravi
Re: Random Short-Answer Matching question -want to display in vertical form
Vertical matching is useful to us.
But if question is very long, then it can't adjust automatically in one line sometimes.
What happen, i can't understand.
suggest me appropriate setting.
TIA
Ravi
Mauno, I can't attach Screens hot in my post.
Only ? (Q. mark) is appear at upper left corner
Re: Random Short-Answer Matching question -want to display in vertical form
Ah, yes - it's pure css...
Try to add to one of your theme css files (or one of standard theme css files) to the bottom following two css tags:
.vmatch td {width:100%;}
.vmatch table.answer{width:100%;}
Otherwise this question type is using the same css as normal match questions.
Re: Random Short-Answer Matching question -want to display in vertical form
Or let's say that you want to keep questions in 100% width and answers in 83% (like the other matching question type) try
.vmatch td {width:100%;}
.vmatch table.answer{width:83%;}
That attached screenshot was a .jfif file (without extension) and moodle did not probably recognize such file type (image) - but I could open it ok after adding the .jfif extension to file name in my local PC.
Re: Random Short-Answer Matching question -want to display in vertical form
Thanks for immediate response.
But some doubts are as follows-
1) I can't locate exact css file.
i found number of css files in .....moodle/theme/standard .....screenshot attached
2)Just copy and paste......
.vmatch td {width:100%;}
.vmatch table.answer{width:83%;}
at the bottom of respective file. nothing else. Am i right?
3) But for example - i am not using 'Standard Theme'.
Will these changes work for another 'theme' too?
4) i am attaching screen shot. pl.suggest appropriate file.
Warm regards
Ravi
Re: Random Short-Answer Matching question -want to display in vertical form
This is a little complex issue - most moodle 1.9 themes do use some or all standard theme css files - for example if your custom theme has in theme config.php tags
$THEME->standardsheets = array('styles_layout', 'styles_color');
it will use styles_layout.css and styles_color.css from standard theme.
Or if your theme config.php has
$THEME->standardsheets = true;
it will use all standard theme css files.
If you add to bottom of standard theme styles_layout.css those css rules most themes should use that css.
In some rare cases theme designers may have set to theme config.php
$THEME->standardsheets = false;
and for those themes you need to add the same css separately to one of the css files (array of used css files is shown in all theme config.php files)
Re: Random Short-Answer Matching question -want to display in vertical form
Here you go Joseph:
PS. Your PS. to forum moderators still stands!
Re: Random Short-Answer Matching question -want to display in vertical form
Now i am using Moodle 2.0.3
Here also i want to use 'Vertical Matching' Question Type.
Is it possible,--
within standard Matching Question Type
we have option that
Matching display in HORIZONTAL or VERTICAL manner ?
----------------------------------------------------
Joseph plz. say something
Now i can add patch !!!
TIA
Ravi
Re: Random Short-Answer Matching question -want to display in vertical form
Now i am using Moodle 2.1
Here also i want to use 'Vertical Matching' Question Type.
Is it possible,--
within standard Matching Question Type
we have option that
Matching display in HORIZONTAL or VERTICAL manner ?
Pl. assist.
TIA
Ravi