

Thanks everyone for your patience.

Moderator: CricketMX Forum Moderators
IMPORTANT: To install the ACP module go to the phpBB3 ACP -> SYSTEM -> Module Management -> Click "Administration Control Panel" -> select ACP_QUIZ_INDEX_TITLE from the "Add module" list in the bottom right. Follow the instructions and refresh the ACP and the quiz tab should appear at the top.
darkonia wrote:thx a lot battye for the first release xD
// start addon point system
$sql = 'SELECT *
FROM ' . QUIZ_POINT_TABLE . "
WHERE id = '" . $db->sql_escape($id) . "'";
$results = $db->sql_query($sql);
$row = $db->sql_fetchrow($results);
{
$point = $row['point'];
$sql = 'UPDATE ' . USERS_TABLE . "
SET user_points = user_points + '" . $point . "'
WHERE '" . $user->data['user_points'] . "'";
$db->sql_query($sql);
// end point system
// Delete all temporary/progressive data and update the view count of the quiz
// We'll use the stats array as it looks nicer, and loosely related anyway
$statistical_sql[] = "DELETE FROM " . QUIZ_PROGRESSIVE_TABLE . " WHERE quiz_progress_id = $submit_quiz_progressive_id";
$statistical_sql[] = "UPDATE " . QUIZ_TABLE . " SET quiz_views = quiz_views + 1 WHERE quiz_id = $quiz_id";
$new_points = $number_of_correct_answers * 5; // change number 5 to whatever a correct answer is worth
$statistical_sql[] = "UPDATE " . USERS_TABLE . " SET user_points = user_points + $new_points WHERE user_id = " . $user->data['user_id'];
joebart72 wrote:I've also a problem with accents :
And all my tables are in UTF8_BIN...
I think navlinks in the html files would be helpful...
And 3 bugs :
1/ One of my members managed to post a quiz outside a category. So nobody can go into the quiz.
2/ One of my members managed to make a question with 4 answers but she has not selected the good reply. Se was able to submit the quiz.
3/ We are 4 to have been able to play three time the same quiz...
1/ One of my members managed to post a quiz outside a category. So nobody can go into the quiz.
2/ One of my members managed to make a question with 4 answers but she has not selected the good reply. Se was able to submit the quiz.
You haven't selected one or more radio boxes, meaning you still need to select a multiple choice and/or true/false answer, or you have not yet filled in the quiz name and category.
3/ We are 4 to have been able to play three time the same quiz...
htmlspecialchars_decode(smilies_pass(censor_text(
utf8_normalize_nfc(request_var(
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="linklist">
<li><a href="quiz.php">Retour au Quizz</a> • <a href="quiz.php?mode=submit">{L_SUBMIT_QUIZ}</a> • <a href="quiz.php?mode=stats">{L_QUIZ_STATISTICS}</a><!-- IF CAN_ACCESS_CP --> • <a href="{U_CP}">{L_QUIZ_CP_LOWER}</a><!-- ENDIF --></li>
</ul>
<span class="corners-bottom"><span></span></span></div>
</div>
Users browsing this forum: No registered users and 1 guest