Quizzard questions (permissions, links, export, styling)

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Quizzard questions (permissions, links, export, styling)

Post by jmcgin51 »

Good morning, all,

1. I'm having difficulty giving a "non-admin user" permissions to Administer Quizzes.  I've created a group ("quizmaster"), and assigned the desired users to that group.  The "quizmaster" group ONLY has permissions to Administer Quizzes.  However, when I log in as a "quizmaster" user, I don't have any options to administer quizzes.

Any ideas?  Is this a bug in the module?  Is there any easy way to correct it, or is it something the Quizzard developer will have to fix?

2. Also, is there a way to create links from the Quizzard tags, without creating a separate page for each quiz?  In other words, I'd like to have a page called "Quizzes".  On this page I would have links to Quiz1, Quiz2, and Quiz3.  All three would point to the same destination page, but the page would load the appropriate quiz, depending on which link was clicked.  Does this make sense?  Can this be done with the current Quizzard structure?

3. Does the "export" feature work?  Anytime I try it, I just get a blank browser page.

4. How on earth do I style this mod?  For example, by default the questions are in "normal" font, while the answer choices are bolded.  I want to reverse this, so that the question is bolded and the answer choices are "normal" font.  I can bold the question easily enough, but I can't figure out how to unbold the answer choices...    ?????

Thanks so much for your help.  I've been away for a while, and I like the CMSMS development that has happened while I've been gone!
Last edited by jmcgin51 on Wed Jun 06, 2007 4:45 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Quizzard questions (permissions, links, export, styling)

Post by jmcgin51 »

No Quizzard experts out there?  I've submitted this as a bug in the Forge, but there must be someone else beside the developer who has some ideas...

Thanks again!
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: Quizzard questions (permissions, links, export, styling)

Post by sjg »

1. I haven't seen this problem. I'll do some testing. OK, found this. It was a boneheaded bug on my part.
The quick fix is to edit Quizzard/Quizzard.module.php, and find line 83. Change that function from:

function VisibleToAdminUser()
{
        return $this->CheckPermission('Use Skeleton');
}


to:

function VisibleToAdminUser()
{
        return $this->CheckPermission('Administer Quizzes');
}


2. I think this would be difficult; you'd need to do some manipulation with smarty tags, so that based on some passed parameter, it uses a different module include tag. If you *really* want to do this, I can try to come up with a technique, but it won't be pretty :)

3. It works for me. Which version are you using, and which web browser? It should dump you a text file (perhaps your browser is saving it somewhere for you?)

4. The style is all CSS. If you edit the smarty template (Quizzard > Quiz Template), you could add specific classes to the questions and answers. On the results page, there is an embedded style in the template (Quizzard > Score Page Template) which you might want to remove/change.

Thanks,
___Samuel___
Last edited by sjg on Tue Jun 19, 2007 8:01 pm, edited 1 time in total.
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
Post Reply

Return to “Modules/Add-Ons”