C.A.T Posted October 4, 2020 Share Posted October 4, 2020 (edited) Hello all, Hopefully someone can assist me with this issue? All attempts to contact the author of Quizzi has failed. Quizzi (codecanyon-8878909-the-electronic-quiz-platform-quizzi.zip) purchased from Codecanyon is a PHP web server based quiz forum. It serves me well for Intranet and Webhost quiz forums at pubs and clubs, but unfortunately has a major downside as explained below. (1) all quiz questions must be either typed or cut'n'pasted each time and again when the reset is run, (2) the reset clears all previously asked questions from the MYSQL database, (3) the web browser auto-complete does help, but still requires either typed or cut'n'pasted questions each time. The only workaround I've found is to open multiple web browser tabs, cut'n'pasted the quiz questions in a new tab, well before the quiz begins. See snapshot q2a.jpg So, my questions for assistance is the following please. How can I edit the Quizzi code (either adding or removing PHP) to... Save the typed or cut'n'pasted quiz questions, and simply import text, or auto-complete, on the ASk panel again when the reset is run? OR, Import text, or auto-complete, on the ASk panel, using javascript that reads a CSV (Comma-separated values) file? OR, Import text, or auto-complete, on the ASk panel, using PHP that reads saved questions on the MYSQL database? The ASK panel PHP code. <?php ?> <form id="myForm" action="../../functions/_admin/ask.php" method="POST" accept-charset="UTF-8"> <table id="view" > <tr> <td style="background:url('../../libs/imgs/topbarbg.png');" colspan="5">Question<br /><textarea name="ques" id="ques"></textarea></td> </tr> <tr> <td><input style="padding:5px;width:50px;height:50px;font-size:30px;" type="number" name="points" value="5"/></td> <td><input type="radio" checked="yes" name="opt" class="opt" value="opt1" /><input type="text" name="opt1" id="opt1"/></td> <td><input type="radio" name="opt" class="opt" value="opt2" /><input type="text" name="opt2" id="opt2"/></td> <td><input type="radio" name="opt" class="opt" value="opt3" /><input type="text" name="opt3" id="opt3"/></td> <td><input type="radio" name="opt" class="opt" value="opt4" /><input type="text" name="opt4" id="opt4"/></td> </tr> <td colspan="5"> <div id="ack" class="response"></div> <input type="hidden" name="token" value="<?php echo $_SESSION['token'] ; ?>" /> <button id="submit" value="Ask!">Ask!</button> <script src="script.js" type="text/javascript" language="javascript"></script></td> </tr> <tr> <td style="background:url('../../libs/imgs/topbarbg.png');" colspan="5">Question<br /><textarea name="ques" id="ques"></textarea></td> </tr> <tr> <td><input style="padding:5px;width:50px;height:50px;font-size:30px;" type="number" name="points" value="5"/></td> <td><input type="radio" checked="yes" name="opt" class="opt" value="opt1" /><input type="text" name="opt1" id="opt1"/></td> <td><input type="radio" name="opt" class="opt" value="opt2" /><input type="text" name="opt2" id="opt2"/></td> <td><input type="radio" name="opt" class="opt" value="opt3" /><input type="text" name="opt3" id="opt3"/></td> <td><input type="radio" name="opt" class="opt" value="opt4" /><input type="text" name="opt4" id="opt4"/></td> </tr> <td colspan="5"> <div id="ack" class="response"></div> <input type="hidden" name="token" value="<?php echo $_SESSION['token'] ; ?>" /> <button id="submit" value="Ask!">Ask!</button> <script src="script.js" type="text/javascript" language="javascript"></script></td> </tr> <td style="background:url('../../libs/imgs/topbarbg.png');" colspan="5">Question<br /><textarea name="ques" id="ques"></textarea></td> </tr> <tr> <td><input style="padding:5px;width:50px;height:50px;font-size:30px;" type="number" name="points" value="5"/></td> <td><input type="radio" checked="yes" name="opt" class="opt" value="opt1" /><input type="text" name="opt1" id="opt1"/></td> <td><input type="radio" name="opt" class="opt" value="opt2" /><input type="text" name="opt2" id="opt2"/></td> <td><input type="radio" name="opt" class="opt" value="opt3" /><input type="text" name="opt3" id="opt3"/></td> <td><input type="radio" name="opt" class="opt" value="opt4" /><input type="text" name="opt4" id="opt4"/></td> </tr> <td colspan="5"> <div id="ack" class="response"></div> <input type="hidden" name="token" value="<?php echo $_SESSION['token'] ; ?>" /> <button id="submit" value="Ask!">Ask!</button> <script src="script.js" type="text/javascript" language="javascript"></script></td> </tr> <td style="background:url('../../libs/imgs/topbarbg.png');" colspan="5">Question<br /><textarea name="ques" id="ques"></textarea></td> </tr> <tr> <td><input style="padding:5px;width:50px;height:50px;font-size:30px;" type="number" name="points" value="5"/></td> <td><input type="radio" checked="yes" name="opt" class="opt" value="opt1" /><input type="text" name="opt1" id="opt1"/></td> <td><input type="radio" name="opt" class="opt" value="opt2" /><input type="text" name="opt2" id="opt2"/></td> <td><input type="radio" name="opt" class="opt" value="opt3" /><input type="text" name="opt3" id="opt3"/></td> <td><input type="radio" name="opt" class="opt" value="opt4" /><input type="text" name="opt4" id="opt4"/></td> </tr> <td colspan="5"> <div id="ack" class="response"></div> <input type="hidden" name="token" value="<?php echo $_SESSION['token'] ; ?>" /> <button id="submit" value="Ask!">Ask!</button> <script src="script.js" type="text/javascript" language="javascript"></script></td> </tr> </table> </form> askpanel.php.txt Edited October 4, 2020 by C.A.T Link to comment Share on other sites More sharing options...
C.A.T Posted October 25, 2020 Author Share Posted October 25, 2020 (edited) I've resolved the autocomplete issue using the code from https://www.w3schools.com/howto/howto_js_autocomplete.asp and merged with the Quizzi ask_panel form. See attached ask_panel.html.txt (rename as ask_panel.html) if someone else may require a similar autocomplete function in their form. Quizzi ask_panel form. <?php ?> <form id="myForm" action="../../functions/_admin/ask.php" method="POST" accept-charset="UTF-8"> <table id="view" > <tr> <td style="background:url('../../libs/imgs/topbarbg.png');" colspan="5">Question<br /><textarea name="ques" id="ques"></textarea></td> </tr> <tr> <td><input style="padding:5px;width:50px;height:50px;font-size:30px;" type="number" name="points" value="5"/></td> <td><input type="radio" checked="yes" name="opt" class="opt" value="opt1" /><input type="text" name="opt1" id="opt1"/></td> <td><input type="radio" name="opt" class="opt" value="opt2" /><input type="text" name="opt2" id="opt2"/></td> <td><input type="radio" name="opt" class="opt" value="opt3" /><input type="text" name="opt3" id="opt3"/></td> <td><input type="radio" name="opt" class="opt" value="opt4" /><input type="text" name="opt4" id="opt4"/></td> </tr> <td colspan="5"> <div id="ack" class="response"></div> <input type="hidden" name="token" value="<?php echo $_SESSION['token'] ; ?>" /> <button id="submit" value="Ask!">Ask!</button> <script src="script.js" type="text/javascript" language="javascript"></script></td> </tr> </table> </form> ask_panel.html.txt Edited October 25, 2020 by C.A.T Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now