Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 89

Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
05/17/13 04:30 AM (12 years ago)

Customize standard quiz plugin

Is it as simple as commenting out everything in relation to 'Wrong Answer 3' if i want to change all my quizzes to a choice of 3 answers, rather than 4?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/17/13 05:28 AM (12 years ago)
Hi @Bonzo, almost. You'll need to do that in the project file and also modify the quiz's index.php file In index.php check out the lines on or around: 115 - //child item properties... 180 - //if adding a new child items 215 - //callOutTapLoadScreenWithItemId - Important, look how the JSON string is built.. 261 - //reset vars... 772 - <!-- add new child item --> Comment out the relevent lines for wrong answer 3 and that should be ok. On line 215 you'll have to change the string builder a bit to close it after wrong answer 2, just copy the code that's already there after wrong answer 3.
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
05/17/13 07:49 AM (12 years ago)
The NAD advanced quiz very 2 was submitted last night with this function built into the cp. Shouldn't be long before it shows up in the store.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
05/17/13 08:07 AM (12 years ago)
Great stuff! Will it be for Android too?
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
like
05/17/13 09:15 AM (12 years ago)
Eventually, but it's going to take a few months.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.