Quiz Master

Quiz Master 1.1.0b

No permission to download
@Mike2020

*SUGGESTION*

1
To make add-on's design in a separate css file so that you can make a personal design

2
Make all the phrases so that you can make a translation to the desired language.
Now it is difficult to do.

3
Add answer as checkbox - to be able to select multiple answers

4
Add the ability to create a media question: audio / video.
Files for the media question to upload from your computer or specify its location on the server

5
Add the possibility of the creation a new question (or editing) to create a description for this question

6
Make able to set permissions for a specific quiz. To some quizzes from the general list could playing only to certain groups of users
 
Last edited:
The category image aligns incorrect and the stats bars rides over into the sidebar.
The solution to your problem is in the template discussion_list.css

This code:
PHP:
 .discussionList .stats
        {
            width: @discussionListStatsWidth;
        }

What I did:
- In the setup file addon-quizmaster.xml have been replaced SOME lines the following code:
PHP:
<dd class="stats">

on code:

PHP:
<dd class="stats_quiz">

and

PHP:
<div class="listBlock stats pairsJustified">

on
PHP:
<div class="listBlocks stats_quiz pairsJustified">



Later in the file extra.css was added the following code:
PHP:
/* Quiz master */
    .discussionListItem .stats_quiz dl
    {
        padding: 6px;
        line-height: 18px;
        margin-top: 5px;
        border-right: 1px solid #949390;
    }

Then I updated the quiz with addon-quizmaster.xml

The result on screenshots:
test-001.webp test-003.webp test-002.webp
 
I can share this file, but I translated many phrases in another language.

You should to see these:
2893 line
PHP:
  <template title="QuizMaster_leagues_RecentLeagueResults_list" version_id="1" version_string="1.0.0">
1 block for change
PHP:
<dl class="sectionHeaders">
        <dt class="posterAvatar"><a><span></span></a></dt>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_ResultDate}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Round}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Member}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Correct}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Incorrect}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Timeouts}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Seconds}
        </dd>
        <dd class="lastPost">{xen:phrase QuizMaster_Points}</dd>
    </dl>

and
PHP:
<li id="quiz-{$GetQuizLeagueResult.user_id}" class="discussionListItem">

    <div class="listBlock posterAvatar">
        <span class="avatarContainer">
        </span>
    </div>

    <div class="listBlock main stats_quiz">
        <dl class="major"><dt><xen:datetime time="{$GetQuizLeagueResult.result_date}" /></dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt>{$GetQuizLeagueResult.round}</dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt><a href="{xen:link QuizMaster/userdetails, $GetQuizLeagueResult}">{$GetQuizLeagueResult.username}</a></dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt>{$GetQuizLeagueResult.correct}</dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt>{$GetQuizLeagueResult.incorrect}</dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt>{$GetQuizLeagueResult.timeouts}</dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt>{$GetQuizLeagueResult.seconds}</dt> <dd></dd></dl>
    </div>

    <div class="listBlock lastPost">
     
            <dl class="lastPostInfo">
                <dt>{$GetQuizLeagueResult.points}</dt>
                <dd class="muted"></dd>
            </dl>
    </div>
</li>


And the same:
6057 line
PHP:
 <template title="QuizMaster_quizleagues_list" version_id="1" version_string="1.0.0">

3 blocks

I highly recommend to check first on a test forum
 
Last edited:
I can share this file, but I translated many phrases in another language.

You should to see these:
2893 line
PHP:
  <template title="QuizMaster_leagues_RecentLeagueResults_list" version_id="1" version_string="1.0.0">
1 block for change
PHP:
<dl class="sectionHeaders">
        <dt class="posterAvatar"><a><span></span></a></dt>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_ResultDate}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Round}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Member}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Correct}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Incorrect}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Timeouts}
        </dd>
        <dd class="stats_quiz">
            {xen:phrase QuizMaster_Seconds}
        </dd>
        <dd class="lastPost">{xen:phrase QuizMaster_Points}</dd>
    </dl>

and
PHP:
<li id="quiz-{$GetQuizLeagueResult.user_id}" class="discussionListItem">

    <div class="listBlock posterAvatar">
        <span class="avatarContainer">
        </span>
    </div>

    <div class="listBlock main stats_quiz">
        <dl class="major"><dt><xen:datetime time="{$GetQuizLeagueResult.result_date}" /></dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt>{$GetQuizLeagueResult.round}</dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt><a href="{xen:link QuizMaster/userdetails, $GetQuizLeagueResult}">{$GetQuizLeagueResult.username}</a></dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt>{$GetQuizLeagueResult.correct}</dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt>{$GetQuizLeagueResult.incorrect}</dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt>{$GetQuizLeagueResult.timeouts}</dt> <dd></dd></dl>
    </div>

    <div class="listBlock stats_quiz pairsJustified">
        <dl class="major"><dt>{$GetQuizLeagueResult.seconds}</dt> <dd></dd></dl>
    </div>

    <div class="listBlock lastPost">
    
            <dl class="lastPostInfo">
                <dt>{$GetQuizLeagueResult.points}</dt>
                <dd class="muted"></dd>
            </dl>
    </div>
</li>


And the same:
6057 line
PHP:
 <template title="QuizMaster_quizleagues_list" version_id="1" version_string="1.0.0">

3 blocks

I highly recommend to check first on a test forum
Thanks - I really don't have a test forum, will leave that alone for now.
 
@Mike2020
Bug
I create a test and do not upload the image for it.
As a result it turns out as in the screenshot.
I guess that necessary to make some default picture for such situations.
test-err-1.webp
test-err-2.webp
 
Has me a tad concerned that its more in a beta form then a release. Maybe I am wrong but appears to be
not quite ready. I decided to start my SMF version in Jan as I do not think this will be ready then, good concept.
 
He definitely has to work out some style issues, the basic function does work, I have received some server errors, it is in beta though.
 
@Mike2020

*SUGGESTION*

1
To make add-on's design in a separate css file so that you can make a personal design

2
Make all the phrases so that you can make a translation to the desired language.
Now it is difficult to do.

3
Add answer as checkbox - to be able to select multiple answers

4
Add the ability to create a media question: audio / video.
Files for the media question to upload from your computer or specify its location on the server

5
Add the possibility of the creation a new question (or editing) to create a description for this question

6
Make able to set permissions for a specific quiz. To some quizzes from the general list could playing only to certain groups of users
Also add the ability to have different levels in quizzes, if you pass level 1 you can take level 2 quiz then level 3 ect...
 
On testing on the software developers site, I noticed it wont resize well and over laps icons and graphics.
So smaller screens will end up with a glob on the right of over laps. Its not smooth transition.
 
On testing on the software developers site, I noticed it wont resize well and over laps icons and graphics.
So smaller screens will end up with a glob on the right of over laps. Its not smooth transition.
Its most likely not set up to be responsive.
 
That would make it probably not useable on a tablet, or tapatalk then. I have been using the SMF version which is exactly like this one some of the same built in questions even. So think I am wanting something well polished. Yea I get its new and has bugs unfortunately I have projects I wanted to include using a learning systems. I think this for now would irritate users he is due back he said in a few days maybe these things can be fixed that would be cool.
 
The solution to your problem is in the template discussion_list.css

This code:
PHP:
 .discussionList .stats
        {
            width: @discussionListStatsWidth;
        }

What I did:
- In the setup file addon-quizmaster.xml have been replaced SOME lines the following code:
PHP:
<dd class="stats">

on code:

PHP:
<dd class="stats_quiz">

and

PHP:
<div class="listBlock stats pairsJustified">

on
PHP:
<div class="listBlocks stats_quiz pairsJustified">



Later in the file extra.css was added the following code:
PHP:
/* Quiz master */
    .discussionListItem .stats_quiz dl
    {
        padding: 6px;
        line-height: 18px;
        margin-top: 5px;
        border-right: 1px solid #949390;
    }

Then I updated the quiz with addon-quizmaster.xml

The result on screenshots:
View attachment 92680 View attachment 92679 View attachment 92681

will add this in as its a good idea

@Mike2020
Bug
I create a test and do not upload the image for it.
As a result it turns out as in the screenshot.
I guess that necessary to make some default picture for such situations.
View attachment 92714
View attachment 92715

Will sort out a default image when adding quizzes and categories
 
Top Bottom