Layout of quiz

All web design discussion, including Ultimate Quiz MOD support.

Moderator: CricketMX Forum Moderators

Post Reply
User avatar
freddie
Greenhorn
Greenhorn
Posts: 23
Joined: Mon Nov 27, 2006 8:39 pm
Location: Leuven, Belgium
Contact:

is it possible to give question and answers the same space ?

Image
advanced bbcode box mod - who can convert this mod to phpbb ???
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Yeah,

In fact, I think the .tpl file came with some of the earlier releases (1.2.0 alphas iirc).

Anyway, here it is, it should work, but let me know if there are any problems. Don't forget to backup your current copy of quiz_play_multiple_choice_body.tpl

OPEN quiz_play_multiple_choice_body.tpl

DELETE THE CONTENTS

REPLACE WITH

Code: Select all

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
		<tr>
			<th colspan="4" width="100%" class="thTop" nowrap="nowrap">&nbsp;{U_QUIZ_NAME}&nbsp;</th>
		</tr>
		
		<tr>
			<td class="row2" width="100%" align="center" valign="middle" height="30" colspan="4">
				<span class="genmed">
					{L_MULTIPLE_INFORMATION}
				</span>
			</td>
		</tr>
		
	<form action="{F_FORM}" method="post">
	<input type="hidden" name="id" value="{F_ID}">
	<input type="hidden" name="type" value="{F_TYPE}">
	<!-- BEGIN quiz_row -->
		<tr>
			<td class="row1" colspan="4" width="100%" align="center" valign="middle" height="100%">
				<span class="forumlink">
					{quiz_row.U_QUESTION}
				</span>
			</td>
		</tr>
		
		<tr>		
			<td class="row2" width="25%" align="left" valign="middle" height="100%">
				<span class="gen">
					&nbsp;&nbsp;<input type="radio" name="{quiz_row.U_QUESTION_ID}" value="{quiz_row.Q_ALTERNATE_ONE}" /> {quiz_row.Q_ALTERNATE_ONE}
				</span>
			</td>
			
			<td class="row2" width="25%" align="left" valign="middle" height="100%">
				<span class="gen">
					&nbsp;&nbsp;<input type="radio" name="{quiz_row.U_QUESTION_ID}" value="{quiz_row.Q_ALTERNATE_TWO}" /> {quiz_row.Q_ALTERNATE_TWO}
				</span>
			</td>
			
			<td class="row2" width="25%" align="left" valign="middle" height="100%">
				<span class="gen">
					&nbsp;&nbsp;<input type="radio" name="{quiz_row.U_QUESTION_ID}" value="{quiz_row.Q_ALTERNATE_THREE}" /> {quiz_row.Q_ALTERNATE_THREE}
				</span>
			</td>
			
			<td class="row2" width="25%" align="left" valign="middle" height="100%">
				<span class="gen">
					&nbsp;&nbsp;<input type="radio" name="{quiz_row.U_QUESTION_ID}" value="{quiz_row.Q_ALTERNATE_FOUR}" /> {quiz_row.Q_ALTERNATE_FOUR}
				</span>
			</td>
		</tr>
	<!-- END quiz_row -->

		<tr>
			<th colspan="4" class="catBottom" align="center" height="28">
				<input class="liteoption" type="submit" value="{L_SUBMIT}" />
			</th>
		</tr>
	</form>
</table> 
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
User avatar
freddie
Greenhorn
Greenhorn
Posts: 23
Joined: Mon Nov 27, 2006 8:39 pm
Location: Leuven, Belgium
Contact:

looks much better ! thx :)
advanced bbcode box mod - who can convert this mod to phpbb ???
User avatar
freddie
Greenhorn
Greenhorn
Posts: 23
Joined: Mon Nov 27, 2006 8:39 pm
Location: Leuven, Belgium
Contact:

but you forgot some things what caused my errors ;)

<input type="hidden" name="f_time" value="{F_TIME}"> and uqm before each {quiz_row.U_QUESTION_ID}

and

the move - modify - delete link under the quiz was also gone ;)

so the right code is:

Code: Select all

<table width="100%" border="0">
	<tr>
		<td width="50%" align="left" width="50%"><span class="genmed"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
		<td border="0" align="right" width="50%"><span class="genmed">&nbsp;{U_STATISTICS}&nbsp;</span></td>
	</tr>
</table> 

<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
      <tr>
         <th colspan="4" width="100%" class="thTop" nowrap="nowrap">&nbsp;{U_QUIZ_NAME}&nbsp;</th>
      </tr>
      
      <tr>
         <td class="row2" width="100%" align="center" valign="middle" height="30" colspan="4">
            <span class="genmed">
               {L_MULTIPLE_INFORMATION}
            </span>
         </td>
      </tr>
      
   <form action="{F_FORM}" method="post">
   <input type="hidden" name="id" value="{F_ID}">
   <input type="hidden" name="f_time" value="{F_TIME}">
   <input type="hidden" name="type" value="{F_TYPE}">
   <!-- BEGIN quiz_row -->
      <tr>
         <td class="row1" colspan="4" width="100%" align="center" valign="middle" height="100%">
            <span class="forumlink">
               {quiz_row.U_QUESTION}
            </span>
         </td>
      </tr>
      
      <tr>      
         <td class="row2" width="25%" align="left" valign="middle" height="100%">
            <span class="gen">
               &nbsp;&nbsp;<input type="radio" name="uqm{quiz_row.U_QUESTION_ID}" value="{quiz_row.Q_ALTERNATE_ONE}" /> {quiz_row.Q_ALTERNATE_ONE}
            </span>
         </td>
         
         <td class="row2" width="25%" align="left" valign="middle" height="100%">
            <span class="gen">
               &nbsp;&nbsp;<input type="radio" name="uqm{quiz_row.U_QUESTION_ID}" value="{quiz_row.Q_ALTERNATE_TWO}" /> {quiz_row.Q_ALTERNATE_TWO}
            </span>
         </td>
         
         <td class="row2" width="25%" align="left" valign="middle" height="100%">
            <span class="gen">
               &nbsp;&nbsp;<input type="radio" name="uqm{quiz_row.U_QUESTION_ID}" value="{quiz_row.Q_ALTERNATE_THREE}" /> {quiz_row.Q_ALTERNATE_THREE}
            </span>
         </td>
         
         <td class="row2" width="25%" align="left" valign="middle" height="100%">
            <span class="gen">
               &nbsp;&nbsp;<input type="radio" name="uqm{quiz_row.U_QUESTION_ID}" value="{quiz_row.Q_ALTERNATE_FOUR}" /> {quiz_row.Q_ALTERNATE_FOUR}
            </span>
         </td>
      </tr>
   <!-- END quiz_row -->

      <tr>
         <th colspan="4" class="catBottom" align="center" height="28">
            <input class="liteoption" type="submit" value="{L_SUBMIT}" />
         </th>
      </tr>
   </form>
</table>
<table width="100%" border="0">
	<tr>
		<td border="0"><span class="genmed">&nbsp;{L_MOD_LANGS}&nbsp;</span></td>
	</tr>
</table> 
<br />
<table width="100%" align="center" border="0">
	<tr>
		<td border="0" align="center">
			<span class="genmed">&nbsp;<a href="http://www.cmxmods.net/quiz.php">Ultimate Quiz MOD</a> &copy; <a href="http://www.online-scrabble.com">battye</a> 2004, 2005, 2006.&nbsp;
			</span>
		</td>
	</tr>
</table>
advanced bbcode box mod - who can convert this mod to phpbb ???
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

Ah, right. Thanks freddie :)
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
xzc
Frequent Poster
Frequent Poster
Posts: 30
Joined: Thu Jul 05, 2007 2:32 pm

yes, in another of my post, I also request similar things. Thanks, battye! will this be integrated into future release?
User avatar
battye
Site Admin
Site Admin
Posts: 14391
Joined: Sun Jan 11, 2004 8:26 am
Location: Australia
Contact:

It actually was integrated into some older releases (~1.2 alpha) so it won't be too hard to add back :)
CricketMX.com in 2022: Still the home of bat's, rat's and other farmyard animals!

"OK, life [as you chose to define it] repeats until there are no more lessons to be learned." - nrnoble (June 12, 2005)
"the new forum looks awesome, it's getting bigger & better" - p2p-sharing-rules (11 Jan, 2008)
"Looks like CMX is not only getting bigger...but, also getting better!!" - moongirl (14 Dec, 2007)
Post Reply